diff options
Diffstat (limited to 'net/wireless/ibss.c')
-rw-r--r-- | net/wireless/ibss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c index ccc8865dfadb..9b9551e4a6f9 100644 --- a/net/wireless/ibss.c +++ b/net/wireless/ibss.c | |||
@@ -252,7 +252,7 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev, | |||
252 | 252 | ||
253 | /* try to find an IBSS channel if none requested ... */ | 253 | /* try to find an IBSS channel if none requested ... */ |
254 | if (!wdev->wext.ibss.chandef.chan) { | 254 | if (!wdev->wext.ibss.chandef.chan) { |
255 | wdev->wext.ibss.chandef._type = NL80211_CHAN_NO_HT; | 255 | wdev->wext.ibss.chandef.width = NL80211_CHAN_WIDTH_20_NOHT; |
256 | 256 | ||
257 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | 257 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { |
258 | struct ieee80211_supported_band *sband; | 258 | struct ieee80211_supported_band *sband; |
@@ -352,7 +352,7 @@ int cfg80211_ibss_wext_siwfreq(struct net_device *dev, | |||
352 | 352 | ||
353 | if (chan) { | 353 | if (chan) { |
354 | wdev->wext.ibss.chandef.chan = chan; | 354 | wdev->wext.ibss.chandef.chan = chan; |
355 | wdev->wext.ibss.chandef._type = NL80211_CHAN_NO_HT; | 355 | wdev->wext.ibss.chandef.width = NL80211_CHAN_WIDTH_20_NOHT; |
356 | wdev->wext.ibss.channel_fixed = true; | 356 | wdev->wext.ibss.channel_fixed = true; |
357 | } else { | 357 | } else { |
358 | /* cfg80211_ibss_wext_join will pick one if needed */ | 358 | /* cfg80211_ibss_wext_join will pick one if needed */ |