diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-11-22 14:34:05 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-11-23 08:43:27 +0100 |
commit | 03ae834faac9831181ae471543d9f640b75c652b (patch) | |
tree | 399899a02d568e3b982fd6e25a521cd7fe3eb7a0 /net/mac80211 | |
parent | a8243b72459be78240e5e07f987c625f8d976c14 (diff) |
mac80211: disable HT advertising unless AP supports it
If the AP doesn't support HT, or more importantly if
it does but we have to disable it because its IEs are
broken, don't advertise HT support in our association
request. Otherwise, we configure our channel to be a
20 MHz non-HT channel but the AP might still think we
support HT, or even 40 MHz.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/mlme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 42b2c3fc470c..6d49d6c4ffc1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3267,6 +3267,7 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata, sdata->needed_rx_chains = min(chains, local->rx_chains); } else { sdata->needed_rx_chains = 1; + sdata->u.mgd.flags |= IEEE80211_STA_DISABLE_HT; } /* will change later if needed */ |