wext: allow returning NULL stats
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 1 Jul 2009 19:26:42 +0000 (21:26 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 10 Jul 2009 19:01:48 +0000 (15:01 -0400)
commitdf2b35b65b7142bac2c7add3a1dedde3a373aff3
tree7c06b2d0b4c3e7e29f975808eff9e12d87bca8b0
parentc0acf38e0ba42f93d8d56a6db2e2116ea1b23961
wext: allow returning NULL stats

Currently, wext drivers cannot return NULL for stats even though
that would make the ioctl return -EOPNOTSUPP because that would
mean they are no longer listed in /proc/net/wireless. This patch
changes the wext core's behaviour to list them if they have any
wireless_handlers, but only show their stats when available, so
that drivers can start returning NULL if stats are currently not
available, reducing confusion for e.g. IBSS.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/wext.c