mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
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:
parent
fab94f16e6
commit
9e30180a30
@ -236,6 +236,11 @@ nl80211_scan_common(struct i802_bss *bss, u8 cmd,
|
|||||||
params->filter_ssids = NULL;
|
params->filter_ssids = NULL;
|
||||||
drv->num_filter_ssids = params->num_filter_ssids;
|
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) {
|
if (params->only_new_results) {
|
||||||
wpa_printf(MSG_DEBUG, "nl80211: Add NL80211_SCAN_FLAG_FLUSH");
|
wpa_printf(MSG_DEBUG, "nl80211: Add NL80211_SCAN_FLAG_FLUSH");
|
||||||
scan_flags |= NL80211_SCAN_FLAG_FLUSH;
|
scan_flags |= NL80211_SCAN_FLAG_FLUSH;
|
||||||
|
Loading…
Reference in New Issue
Block a user