On Tue, Apr 7, 2009 at 12:09 PM, Johannes Berg<johannes@xxxxxxxxxxxxxxxx> wrote:> 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. That's what was there or what I added in my patches. Luis��.n��������+%������w��{.n�����{���zW����ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f