From: Johannes Berg Date: Wed, 1 Jul 2009 19:26:42 +0000 (+0200) Subject: wext: allow returning NULL stats X-Git-Tag: v2.6.32-rc1~703^2~732 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2b35b65b7142bac2c7add3a1dedde3a373aff3;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed