diff options
Diffstat (limited to 'net/mac80211/scan.c')
-rw-r--r-- | net/mac80211/scan.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c index 41aa728e5468..f9648ef9e31f 100644 --- a/net/mac80211/scan.c +++ b/net/mac80211/scan.c | |||
@@ -272,7 +272,7 @@ static bool ieee80211_prep_hw_scan(struct ieee80211_local *local) | |||
272 | n_chans = req->n_channels; | 272 | n_chans = req->n_channels; |
273 | } else { | 273 | } else { |
274 | do { | 274 | do { |
275 | if (local->hw_scan_band == IEEE80211_NUM_BANDS) | 275 | if (local->hw_scan_band == NUM_NL80211_BANDS) |
276 | return false; | 276 | return false; |
277 | 277 | ||
278 | n_chans = 0; | 278 | n_chans = 0; |
@@ -485,7 +485,7 @@ static void ieee80211_scan_state_send_probe(struct ieee80211_local *local, | |||
485 | int i; | 485 | int i; |
486 | struct ieee80211_sub_if_data *sdata; | 486 | struct ieee80211_sub_if_data *sdata; |
487 | struct cfg80211_scan_request *scan_req; | 487 | struct cfg80211_scan_request *scan_req; |
488 | enum ieee80211_band band = local->hw.conf.chandef.chan->band; | 488 | enum nl80211_band band = local->hw.conf.chandef.chan->band; |
489 | u32 tx_flags; | 489 | u32 tx_flags; |
490 | 490 | ||
491 | scan_req = rcu_dereference_protected(local->scan_req, | 491 | scan_req = rcu_dereference_protected(local->scan_req, |
@@ -953,7 +953,7 @@ int ieee80211_request_ibss_scan(struct ieee80211_sub_if_data *sdata, | |||
953 | { | 953 | { |
954 | struct ieee80211_local *local = sdata->local; | 954 | struct ieee80211_local *local = sdata->local; |
955 | int ret = -EBUSY, i, n_ch = 0; | 955 | int ret = -EBUSY, i, n_ch = 0; |
956 | enum ieee80211_band band; | 956 | enum nl80211_band band; |
957 | 957 | ||
958 | mutex_lock(&local->mtx); | 958 | mutex_lock(&local->mtx); |
959 | 959 | ||
@@ -965,7 +965,7 @@ int ieee80211_request_ibss_scan(struct ieee80211_sub_if_data *sdata, | |||
965 | if (!channels) { | 965 | if (!channels) { |
966 | int max_n; | 966 | int max_n; |
967 | 967 | ||
968 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | 968 | for (band = 0; band < NUM_NL80211_BANDS; band++) { |
969 | if (!local->hw.wiphy->bands[band]) | 969 | if (!local->hw.wiphy->bands[band]) |
970 | continue; | 970 | continue; |
971 | 971 | ||
@@ -1085,7 +1085,7 @@ int __ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata, | |||
1085 | struct ieee80211_scan_ies sched_scan_ies = {}; | 1085 | struct ieee80211_scan_ies sched_scan_ies = {}; |
1086 | struct cfg80211_chan_def chandef; | 1086 | struct cfg80211_chan_def chandef; |
1087 | int ret, i, iebufsz, num_bands = 0; | 1087 | int ret, i, iebufsz, num_bands = 0; |
1088 | u32 rate_masks[IEEE80211_NUM_BANDS] = {}; | 1088 | u32 rate_masks[NUM_NL80211_BANDS] = {}; |
1089 | u8 bands_used = 0; | 1089 | u8 bands_used = 0; |
1090 | u8 *ie; | 1090 | u8 *ie; |
1091 | size_t len; | 1091 | size_t len; |
@@ -1097,7 +1097,7 @@ int __ieee80211_request_sched_scan_start(struct ieee80211_sub_if_data *sdata, | |||
1097 | if (!local->ops->sched_scan_start) | 1097 | if (!local->ops->sched_scan_start) |
1098 | return -ENOTSUPP; | 1098 | return -ENOTSUPP; |
1099 | 1099 | ||
1100 | for (i = 0; i < IEEE80211_NUM_BANDS; i++) { | 1100 | for (i = 0; i < NUM_NL80211_BANDS; i++) { |
1101 | if (local->hw.wiphy->bands[i]) { | 1101 | if (local->hw.wiphy->bands[i]) { |
1102 | bands_used |= BIT(i); | 1102 | bands_used |= BIT(i); |
1103 | rate_masks[i] = (u32) -1; | 1103 | rate_masks[i] = (u32) -1; |