path: root/wpa_supplicant/scan.h
diff options
authorJouni Malinen <jouni@qca.qualcomm.com>2013-03-18 15:11:15 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-18 15:32:31 (GMT)
commit407be00b6ca299e04c34f385df5e538c912fc0ec (patch)
treeef5c8888a068e5d083f2b14ef8f6ca83e7d411ba /wpa_supplicant/scan.h
parentcfd31b5026a403ae67f88c74b036207be05b3107 (diff)
P2P: Postpone P2P scan only if station mode scan is pending
sta_scan_pending was supposed to be accurate enough for determining whether a P2P scan needs to be postponed. However, it has turned out that there were cases where sta_scan_pending was not cleared properly. While the known cases have now been addressed, it is possible that some other cases may still exist. To avoid issues with P2P operationg getting stuck, verify more carefully that there is a real pending station mode scan (either in progress or scheduled to be requested). Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/scan.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/scan.h b/wpa_supplicant/scan.h
index 5ecfa00..e892479 100644
--- a/wpa_supplicant/scan.h
+++ b/wpa_supplicant/scan.h
@@ -35,5 +35,6 @@ int wpa_supplicant_filter_bssid_match(struct wpa_supplicant *wpa_s,
void wpa_supplicant_update_scan_int(struct wpa_supplicant *wpa_s, int sec);
void scan_only_handler(struct wpa_supplicant *wpa_s,
struct wpa_scan_results *scan_res);
+int wpas_scan_scheduled(struct wpa_supplicant *wpa_s);
#endif /* SCAN_H */