mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Reported-by: Hugh Dickins <[email protected]> Tested-by: Hugh Dickins <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
8503bd8c7d
commit
8f1546cadf
3 changed files with 7 additions and 8 deletions
|
|
@ -470,7 +470,7 @@ static iw_handler get_handler(struct net_device *dev, unsigned int cmd)
|
|||
/*
|
||||
* Get statistics out of the driver
|
||||
*/
|
||||
static struct iw_statistics *get_wireless_stats(struct net_device *dev)
|
||||
struct iw_statistics *get_wireless_stats(struct net_device *dev)
|
||||
{
|
||||
/* New location */
|
||||
if ((dev->wireless_handlers != NULL) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue