cfg80211: put wext data into substructure
Johannes Berg
maintainerPATCH 1/1 cfg80211: put wext data into substructure
To make it more apparent in the code what is for wext only (and needs to be #ifdef'ed) put all the info for wext into a substruct in each wireless_dev.
Signed-off-by Johannes Berg <[email protected]>
--- include/net/cfg80211.h | 6 +++- net/wireless/core.c | 4 +-- net/wireless/ibss.c | 60 ++++++++++++++++++++++++------------------------- 3 files changed, 36 insertions(+), 34 deletions(-)
include/net/cfg80211.h +4 -2
@@ -1145,8 +1145,10 @@ struct wireless_dev {#ifdef CONFIG_WIRELESS_EXT /* wext data */ -struct cfg80211_ibss_params wext; -u8 wext_bssid[ETH_ALEN ]; +struct { +struct cfg80211_ibss_params ibss; +u8 bssid[ETH_ALEN ]; + } wext;#endif };
net/wireless/core.c +2 -2
@@ -470,9 +470,9 @@ static int cfg80211_netdev_notifier_call#ifdef CONFIG_WIRELESS_EXT if (dev->ieee80211_ptr->iftype !=NL80211_IFTYPE_ADHOC )break ; -if (!dev->ieee80211_ptr->wext.ssid_len) +if (!dev->ieee80211_ptr->wext.ibss.ssid_len)break ; -cfg80211_join_ibss (rdev, dev, &dev->ieee80211_ptr->wext); +cfg80211_join_ibss (rdev, dev, &dev->ieee80211_ptr->wext.ibss);break ;#endif case NETDEV_UNREGISTER :
net/wireless/ibss.c +30 -30
157 lines not on this page · raw message