aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2011-09-29 13:53:55 (GMT)
committerJouni Malinen <j@w1.fi>2011-09-29 13:53:55 (GMT)
commit303f60d39b29ae6d73e74051dd7db9b460615fad (patch)
tree2c67650460b1dec9d25269a61be11c3c55e3d0c3 /wpa_supplicant/p2p_supplicant.h
parent0c96fd6d03d97bb5371a107600898046d638ca3f (diff)
downloadhostap-303f60d39b29ae6d73e74051dd7db9b460615fad.zip
hostap-303f60d39b29ae6d73e74051dd7db9b460615fad.tar.gz
hostap-303f60d39b29ae6d73e74051dd7db9b460615fad.tar.bz2
P2P: Do not request station mode scans during P2P operations
The P2P search mechanism depends on the same scan functionality that is used for station mode scans. If these operations are being used at the same time, scan result processing is not handled properly. Avoid unexpected behavior by delaying station mode scan requests if a P2P operation is in progress. Among other things, this allows the station mode connection attempt to be continued after a P2P find or group formation has been completed if the interface is available (i.e., when the P2P group uses a separate virtual interface).
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
-rw-r--r--wpa_supplicant/p2p_supplicant.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index ad74217..9a13f9f 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -127,5 +127,6 @@ int wpas_p2p_unauthorize(struct wpa_supplicant *wpa_s, const char *addr);
int wpas_p2p_disconnect(struct wpa_supplicant *wpa_s);
void wpas_p2p_wps_failed(struct wpa_supplicant *wpa_s,
struct wps_event_fail *fail);
+int wpas_p2p_in_progress(struct wpa_supplicant *wpa_s);
#endif /* P2P_SUPPLICANT_H */