Re: [PATCH 3/3] AP: Consider regulatory limitation when filling WMM IE

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

 



On Wed, Apr 03, 2019 at 07:07:53PM +0300, Andrei Otcheretianski wrote:
> In case the current channel has WMM limitation,
> take it into account when filling the WMM IE.
> Also check if the new WMM IE is different from the previous one and
> if so change the parameter_set_count to imply stations to look into it.

Thanks, applied full patch set with some cleanup and fixes. In
particular,

> diff --git a/src/ap/wmm.c b/src/ap/wmm.c
> +static void wmm_calc_regulatory_limit(struct hostapd_data *hapd,
> +				      struct hostapd_wmm_ac_params *acp)
> +{
> +	struct hostapd_hw_modes *mode = hapd->iface->current_mode;

mode could be NULL here..

> +	for (c = 0; c < mode->num_channels; c++) {

.. and that would crash the process due to NULL pointer dereference.
This was easy to find with hwsim test cases, so I'd recommend running
those for proposed changes to avoid having to wait for me to hit the
issue when I run the tests before pushing out the commits..

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



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

  Powered by Linux