aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/ibss.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/wireless/ibss.c')
-rw-r--r--net/wireless/ibss.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/wireless/ibss.c b/net/wireless/ibss.c
index 4c55fab9b4e4..4a4dda53bdf1 100644
--- a/net/wireless/ibss.c
+++ b/net/wireless/ibss.c
@@ -104,7 +104,7 @@ static int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev,
104 struct ieee80211_supported_band *sband = 104 struct ieee80211_supported_band *sband =
105 rdev->wiphy.bands[params->chandef.chan->band]; 105 rdev->wiphy.bands[params->chandef.chan->band];
106 int j; 106 int j;
107 u32 flag = params->chandef.chan->band == IEEE80211_BAND_5GHZ ? 107 u32 flag = params->chandef.chan->band == NL80211_BAND_5GHZ ?
108 IEEE80211_RATE_MANDATORY_A : 108 IEEE80211_RATE_MANDATORY_A :
109 IEEE80211_RATE_MANDATORY_B; 109 IEEE80211_RATE_MANDATORY_B;
110 110
@@ -236,7 +236,7 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
236 struct wireless_dev *wdev) 236 struct wireless_dev *wdev)
237{ 237{
238 struct cfg80211_cached_keys *ck = NULL; 238 struct cfg80211_cached_keys *ck = NULL;
239 enum ieee80211_band band; 239 enum nl80211_band band;
240 int i, err; 240 int i, err;
241 241
242 ASSERT_WDEV_LOCK(wdev); 242 ASSERT_WDEV_LOCK(wdev);
@@ -248,7 +248,7 @@ int cfg80211_ibss_wext_join(struct cfg80211_registered_device *rdev,
248 if (!wdev->wext.ibss.chandef.chan) { 248 if (!wdev->wext.ibss.chandef.chan) {
249 struct ieee80211_channel *new_chan = NULL; 249 struct ieee80211_channel *new_chan = NULL;
250 250
251 for (band = 0; band < IEEE80211_NUM_BANDS; band++) { 251 for (band = 0; band < NUM_NL80211_BANDS; band++) {
252 struct ieee80211_supported_band *sband; 252 struct ieee80211_supported_band *sband;
253 struct ieee80211_channel *chan; 253 struct ieee80211_channel *chan;
254 254