aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 1e45891ca219..d23c5a705a68 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -1073,32 +1073,6 @@ void ieee80211_set_wmm_default(struct ieee80211_sub_if_data *sdata,
1073 } 1073 }
1074} 1074}
1075 1075
1076void ieee80211_sta_def_wmm_params(struct ieee80211_sub_if_data *sdata,
1077 const size_t supp_rates_len,
1078 const u8 *supp_rates)
1079{
1080 struct ieee80211_chanctx_conf *chanctx_conf;
1081 int i, have_higher_than_11mbit = 0;
1082
1083 /* cf. IEEE 802.11 9.2.12 */
1084 for (i = 0; i < supp_rates_len; i++)
1085 if ((supp_rates[i] & 0x7f) * 5 > 110)
1086 have_higher_than_11mbit = 1;
1087
1088 rcu_read_lock();
1089 chanctx_conf = rcu_dereference(sdata->vif.chanctx_conf);
1090
1091 if (chanctx_conf &&
1092 chanctx_conf->def.chan->band == IEEE80211_BAND_2GHZ &&
1093 have_higher_than_11mbit)
1094 sdata->flags |= IEEE80211_SDATA_OPERATING_GMODE;
1095 else
1096 sdata->flags &= ~IEEE80211_SDATA_OPERATING_GMODE;
1097 rcu_read_unlock();
1098
1099 ieee80211_set_wmm_default(sdata, true);
1100}
1101
1102void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata, 1076void ieee80211_send_auth(struct ieee80211_sub_if_data *sdata,
1103 u16 transaction, u16 auth_alg, u16 status, 1077 u16 transaction, u16 auth_alg, u16 status,
1104 const u8 *extra, size_t extra_len, const u8 *da, 1078 const u8 *extra, size_t extra_len, const u8 *da,