From: Jouni Malinen Date: Sun, 15 Mar 2020 19:21:35 +0000 (+0200) Subject: nl80211: Allow scanning in wpa_supplicant AP mode X-Git-Tag: hostap_2_10~1618 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e30180a30bb388cda65d8deec9dbbb990072447;p=thirdparty%2Fhostap.git 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 --- diff --git a/src/drivers/driver_nl80211_scan.c b/src/drivers/driver_nl80211_scan.c index 413d6f757..04f6bb879 100644 --- a/src/drivers/driver_nl80211_scan.c +++ b/src/drivers/driver_nl80211_scan.c @@ -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;