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 <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
4e943900fb
commit
cbe8fa9c5e
@@ -470,9 +470,9 @@ static int cfg80211_netdev_notifier_call(struct notifier_block * nb,
|
||||
#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:
|
||||
|
Reference in New Issue
Block a user