[PATCH 3/3] hostapd: Update ht_capab HT20/40 upon channel switch

Peer, Ilan ilan.peer at intel.com
Wed Mar 19 04:33:18 EDT 2014


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 |=
> HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET;
> +	else
> +		hapd->iconf->ht_capab &=
> ~HT_CAP_INFO_SUPP_CHANNEL_WIDTH_SET;
> +

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).

Regards,

Ilan.


More information about the HostAP mailing list