nl80211: Allow scanning in wpa_supplicant AP mode

If the driver supports this, request cfg80211 to allow the explicitly
requested scan to go through in AP mode.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2020-03-15 21:21:35 +02:00
parent fab94f16e6
commit 9e30180a30

View file

@ -236,6 +236,11 @@ nl80211_scan_common(struct i802_bss *bss, u8 cmd,
params->filter_ssids = NULL;
drv->num_filter_ssids = params->num_filter_ssids;
if (!drv->hostapd && is_ap_interface(drv->nlmode)) {
wpa_printf(MSG_DEBUG, "nl80211: Add NL80211_SCAN_FLAG_AP");
scan_flags |= NL80211_SCAN_FLAG_AP;
}
if (params->only_new_results) {
wpa_printf(MSG_DEBUG, "nl80211: Add NL80211_SCAN_FLAG_FLUSH");
scan_flags |= NL80211_SCAN_FLAG_FLUSH;