Search Linux Wireless

Re: [PATCH v2 3/5] mac80211: check if HT40+/- is allowed before sending assoc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2009-04-07 at 09:23 -0700, Luis R. Rodriguez wrote:

> > This patch is not sufficient -- you also need to modify
> > ieee80211_send_assoc. Otherwise we end up telling the AP that we support
> > HT40, but tuning the hardware to HT20.
> 
> Like this?
> 
>                 switch (ht_info->ht_param & IEEE80211_HT_PARAM_CHA_SEC_OFFSET) {
>                 case IEEE80211_HT_PARAM_CHA_SEC_ABOVE:
>                         if (flags & IEEE80211_CHAN_NO_HT40PLUS) {
>                                 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
>                                 cap &= ~IEEE80211_HT_CAP_SGI_40;
>                         }
>                         break;
>                 case IEEE80211_HT_PARAM_CHA_SEC_BELOW:
>                         if (flags & IEEE80211_CHAN_NO_HT40MINUS) {
>                                 cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
>                                 cap &= ~IEEE80211_HT_CAP_SGI_40;
>                         }

Yeah, that looks ok.

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux