[PATCH 3/3] hostapd: Update ht_capab HT20/40 upon channel switch
Wed Mar 19 02:02:14 PDT 2014
On 19 March 2014 09:33, Peer, Ilan <ilan.peer at intel.com> wrote:
> Hi Michal,
>> The HT Capabilities IE wasn't updated when HT width was changed. This could
>> possibly confuse clients.
>> Signed-off-by: Michal Kazior <michal.kazior at tieto.com>
>> src/ap/drv_callbacks.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>> diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index
>> 9ed7601..3c6a376 100644
>> --- a/src/ap/drv_callbacks.c
>> +++ b/src/ap/drv_callbacks.c
>> @@ -478,6 +478,11 @@ void hostapd_event_ch_switch(struct hostapd_data
>> *hapd, int freq, int ht,
>> hapd->iconf->vht_oper_centr_freq_seg0_idx = seg0_idx;
>> hapd->iconf->vht_oper_centr_freq_seg1_idx = seg1_idx;
>> + if (offset)
>> + hapd->iconf->ht_capab |=
>> + else
>> + hapd->iconf->ht_capab &=
> Same as in previous patch. In addition such a change only changes the internal interface configuration but does change the actual beacon (which was already configured as part of the csa flow).
I'm confused with the sentence.
For requested CSA we recalculate beacon IEs. Actually now that I think
about it.. is this properly updated when constructing after_csa beacon
for CSA request itself? Hmm..
For an unsolicited CS the beacon isn't updated (as with ieee80211ac
update in patch 1/3) -- but it should be.
More information about the Hostap