[PATCH 1/1] hostapd: Use attribute NL80211_ATTR_BSSID to trigger scan for specifc BSSID

Jouni Malinen j at w1.fi
Sat Dec 9 01:51:45 PST 2023

On Fri, Dec 08, 2023 at 09:50:23PM +0530, Vinayak Yadawad wrote:
> With changes to optimize scan for specific BSSID, there arises a
> scenario where in nl80211_trigger_scan is called with a scan
> randomization enabled. A combination of NL80211_ATTR_MAC and
> scan randomization results in invalid error for the scan request.
> In order to fix the issue we use attribute NL80211_ATTR_BSSID
> instead of NL80211_ATTR_MAC.

Thanks, applied. Though, I left the NL80211_ATTR_MAC addition in place
for now for the cases where MAC address randomization is not used so
that wpa_supplicant remains compatible with older kernel versions that
did not yet support NL80211_ATTR_BSSID.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list