]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Make wpas_p2p_notif_pbc_overlap() static
authorJouni Malinen <quic_jouni@quicinc.com>
Fri, 20 Jan 2023 16:02:26 +0000 (18:02 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 20 Jan 2023 16:02:26 +0000 (18:02 +0200)
Commit ace0fbdb69b4 ("P2P: Fix segfault when PBC overlap is detected")
removed the external calls to this function, but did not mark it static.
Mark it static now to clarify expected uses through the
wpas_p2p_pbc_overlap_cb() timer handler.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h

index 6cf5a485f00e8b46fda10363a42d10400f54ba32..894b6ba26d0edd505ed6012dc1f67a7fe4e1139c 100644 (file)
@@ -8319,7 +8319,7 @@ static void wpas_p2p_cross_connect_setup(struct wpa_supplicant *wpa_s)
 }
 
 
-int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s)
+static int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s)
 {
        if (wpa_s->p2p_group_interface != P2P_GROUP_INTERFACE_CLIENT &&
            !wpa_s->p2p_in_provisioning)
index 11cc9c390eabd46436ddd846588742feb61d3dcc..907ac8ccad718d4cb25603bf4012f5e835dd2382 100644 (file)
@@ -206,7 +206,6 @@ void wpas_p2p_cancel_remain_on_channel_cb(struct wpa_supplicant *wpa_s,
 void wpas_p2p_interface_unavailable(struct wpa_supplicant *wpa_s);
 void wpas_p2p_notif_connected(struct wpa_supplicant *wpa_s);
 void wpas_p2p_notif_disconnected(struct wpa_supplicant *wpa_s);
-int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s);
 int wpas_p2p_4way_hs_failed(struct wpa_supplicant *wpa_s);
 void wpas_p2p_ap_setup_failed(struct wpa_supplicant *wpa_s);
 bool wpas_p2p_retry_limit_exceeded(struct wpa_supplicant *wpa_s);
@@ -304,11 +303,6 @@ static inline void wpas_p2p_notif_disconnected(struct wpa_supplicant *wpa_s)
 {
 }
 
-static inline int wpas_p2p_notif_pbc_overlap(struct wpa_supplicant *wpa_s)
-{
-       return 0;
-}
-
 static inline int wpas_p2p_4way_hs_failed(struct wpa_supplicant *wpa_s)
 {
        return 0;