wpa_s AP mode: propagate scan event
When wpa_s scans in AP mode, it doesn't propagate the scan event to the AP code, so that code can get stuck if it uses the callbacks there. Simply call them where appropriate. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
046ef4aa67
commit
c202f19c68
1 changed files with 4 additions and 0 deletions
|
@ -903,6 +903,10 @@ static int _wpa_supplicant_event_scan_results(struct wpa_supplicant *wpa_s,
|
||||||
|
|
||||||
if (ap) {
|
if (ap) {
|
||||||
wpa_dbg(wpa_s, MSG_DEBUG, "Ignore scan results in AP mode");
|
wpa_dbg(wpa_s, MSG_DEBUG, "Ignore scan results in AP mode");
|
||||||
|
#ifdef CONFIG_AP
|
||||||
|
if (wpa_s->ap_iface->scan_cb)
|
||||||
|
wpa_s->ap_iface->scan_cb(wpa_s->ap_iface);
|
||||||
|
#endif /* CONFIG_AP */
|
||||||
wpa_scan_results_free(scan_res);
|
wpa_scan_results_free(scan_res);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue