|
@@ -457,8 +457,8 @@ static void ieee80211_rx_bss_info(struct ieee80211_sub_if_data *sdata,
|
|
|
* fall back to HT20 if we don't use or use
|
|
|
* the other extension channel
|
|
|
*/
|
|
|
- if ((channel_type == NL80211_CHAN_HT40MINUS ||
|
|
|
- channel_type == NL80211_CHAN_HT40PLUS) &&
|
|
|
+ if (!(channel_type == NL80211_CHAN_HT40MINUS ||
|
|
|
+ channel_type == NL80211_CHAN_HT40PLUS) ||
|
|
|
channel_type != sdata->u.ibss.channel_type)
|
|
|
sta_ht_cap_new.cap &=
|
|
|
~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
|