aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-03-18 14:31:09 (GMT)
committerJouni Malinen <j@w1.fi>2013-03-18 15:32:31 (GMT)
commitf85f545e71f2202f1bc7ab65235249320c05ec56 (patch)
tree378e56113ffad075a0fa9d5e454ccc2bc1b93d47 /wpa_supplicant/p2p_supplicant.h
parent565110cd554801fa301c55010b3e9e14f43d7973 (diff)
downloadhostap-f85f545e71f2202f1bc7ab65235249320c05ec56.zip
hostap-f85f545e71f2202f1bc7ab65235249320c05ec56.tar.gz
hostap-f85f545e71f2202f1bc7ab65235249320c05ec56.tar.bz2
P2P: Use common function for re-starting P2P scan after station scan
Make the implementation more consistent and cleaner by using a single function for addressing all the cases where completion of a station mode scan operation allows a P2P operation (search) to be re-started. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
-rw-r--r--wpa_supplicant/p2p_supplicant.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index 5f0bfd2..0a7212c 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -150,4 +150,12 @@ int wpas_p2p_get_ht40_mode(struct wpa_supplicant *wpa_s,
struct hostapd_hw_modes *mode, u8 channel);
unsigned int wpas_p2p_search_delay(struct wpa_supplicant *wpa_s);
+#ifdef CONFIG_P2P
+void wpas_p2p_continue_after_scan(struct wpa_supplicant *wpa_s);
+#else /* CONFIG_P2P */
+static inline void wpas_p2p_continue_after_scan(struct wpa_supplicant *wpa_s)
+{
+}
+#endif /* CONFIG_P2P */
+
#endif /* P2P_SUPPLICANT_H */