From: Johannes Berg Date: Mon, 28 Sep 2009 13:26:43 +0000 (+0200) Subject: wext: add back wireless/ dir in sysfs for cfg80211 interfaces X-Git-Tag: v2.6.32-rc3~63^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f1546cadf7ac5e9a40d54089a1c7302264ec49b;p=pandora-kernel.git wext: add back wireless/ dir in sysfs for cfg80211 interfaces The move away from having drivers assign wireless handlers, in favour of making cfg80211 assign them, broke the sysfs registration (the wireless/ dir went missing) because the handlers are now assigned only after registration, which is too late. Fix this by special-casing cfg80211-based devices, all of which are required to have an ieee80211_ptr, in the sysfs code, and also using get_wireless_stats() to have the same values reported as in procfs. Signed-off-by: Johannes Berg Reported-by: Hugh Dickins Tested-by: Hugh Dickins Signed-off-by: John W. Linville --- Reading git-diff-tree failed