Skip to content

Commit

Permalink
mac80211: disable HT advertising unless AP supports it
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
jmberg-intel committed Nov 23, 2012
1 parent a8243b7 commit 03ae834
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 03ae834

Please sign in to comment.