[PATCH] AP: Do not reply to probe request with DS IE mismatch

Jouni Malinen j at w1.fi
Sun Feb 8 16:05:22 EST 2015

On Thu, Feb 05, 2015 at 08:37:04PM -0500, Ilan Peer wrote:
> Do not reply to a probe request with a DS IE in which the channel
> is different than the operating channel of the AP, as the sending
> station is not found on the AP's operating channel.

Thanks, applied.

> +	if (elems.ds_params && elems.ds_params_len == 1) {
> +		u8 chan;
> +
> +		if (ieee80211_freq_to_chan(hapd->iface->freq,
> +					   &chan) == NUM_HOSTAPD_MODES) {

I changed that to use hapd->iconf->channel to avoid unnecessary
operations. In addition, I made this apply only on 2.4 GHz band just to
make sure there are no interop issues on 5 GHz where this element is not
supposed to be included in Probe Request frames.
Jouni Malinen                                            PGP id EFC895FA

More information about the HostAP mailing list