summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2016-04-12 09:56:15 -0400
committerJohannes Berg <johannes.berg@intel.com>2016-04-12 09:56:15 -0400
commit57fbcce37be7c1d2622b56587c10ade00e96afa3 (patch)
tree0f9bee1250af3046fa46049736b615b81e60f56e /net/mac80211/mlme.c
parent35eb8f7b1a37013d7a38466ae58c39fbd2c57faa (diff)
cfg80211: remove enum ieee80211_band
This enum is already perfectly aliased to enum nl80211_band, and the only reason for it is that we get IEEE80211_NUM_BANDS out of it. There's no really good reason to not declare the number of bands in nl80211 though, so do that and remove the cfg80211 one. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index d3c75ac8a029..885f4ca0888d 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -661,7 +661,7 @@ static void ieee80211_send_assoc(struct ieee80211_sub_if_data *sdata)
661 661
662 capab = WLAN_CAPABILITY_ESS; 662 capab = WLAN_CAPABILITY_ESS;
663 663
664 if (sband->band == IEEE80211_BAND_2GHZ) { 664 if (sband->band == NL80211_BAND_2GHZ) {
665 capab |= WLAN_CAPABILITY_SHORT_SLOT_TIME; 665 capab |= WLAN_CAPABILITY_SHORT_SLOT_TIME;
666 capab |= WLAN_CAPABILITY_SHORT_PREAMBLE; 666 capab |= WLAN_CAPABILITY_SHORT_PREAMBLE;
667 } 667 }
@@ -1100,7 +1100,7 @@ ieee80211_sta_process_chanswitch(struct ieee80211_sub_if_data *sdata,
1100 struct cfg80211_bss *cbss = ifmgd->associated; 1100 struct cfg80211_bss *cbss = ifmgd->associated;
1101 struct ieee80211_chanctx_conf *conf; 1101 struct ieee80211_chanctx_conf *conf;
1102 struct ieee80211_chanctx *chanctx; 1102 struct ieee80211_chanctx *chanctx;
1103 enum ieee80211_band current_band; 1103 enum nl80211_band current_band;
1104 struct ieee80211_csa_ie csa_ie; 1104 struct ieee80211_csa_ie csa_ie;
1105 struct ieee80211_channel_switch ch_switch; 1105 struct ieee80211_channel_switch ch_switch;
1106 int res; 1106 int res;
@@ -1257,11 +1257,11 @@ ieee80211_find_80211h_pwr_constr(struct ieee80211_sub_if_data *sdata,
1257 default: 1257 default:
1258 WARN_ON_ONCE(1); 1258 WARN_ON_ONCE(1);
1259 /* fall through */ 1259 /* fall through */
1260 case IEEE80211_BAND_2GHZ: 1260 case NL80211_BAND_2GHZ:
1261 case IEEE80211_BAND_60GHZ: 1261 case NL80211_BAND_60GHZ:
1262 chan_increment = 1; 1262 chan_increment = 1;
1263 break; 1263 break;
1264 case IEEE80211_BAND_5GHZ: 1264 case NL80211_BAND_5GHZ:
1265 chan_increment = 4; 1265 chan_increment = 4;
1266 break; 1266 break;
1267 } 1267 }
@@ -1861,7 +1861,7 @@ static u32 ieee80211_handle_bss_capability(struct ieee80211_sub_if_data *sdata,
1861 } 1861 }
1862 1862
1863 use_short_slot = !!(capab & WLAN_CAPABILITY_SHORT_SLOT_TIME); 1863 use_short_slot = !!(capab & WLAN_CAPABILITY_SHORT_SLOT_TIME);
1864 if (ieee80211_get_sdata_band(sdata) == IEEE80211_BAND_5GHZ) 1864 if (ieee80211_get_sdata_band(sdata) == NL80211_BAND_5GHZ)
1865 use_short_slot = true; 1865 use_short_slot = true;
1866 1866
1867 if (use_protection != bss_conf->use_cts_prot) { 1867 if (use_protection != bss_conf->use_cts_prot) {
@@ -4375,7 +4375,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
4375 sdata->vif.bss_conf.basic_rates = basic_rates; 4375 sdata->vif.bss_conf.basic_rates = basic_rates;
4376 4376
4377 /* cf. IEEE 802.11 9.2.12 */ 4377 /* cf. IEEE 802.11 9.2.12 */
4378 if (cbss->channel->band == IEEE80211_BAND_2GHZ && 4378 if (cbss->channel->band == NL80211_BAND_2GHZ &&
4379 have_higher_than_11mbit) 4379 have_higher_than_11mbit)
4380 sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE; 4380 sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE;
4381 else 4381 else