[RFC 1/4] P2P: make wpas_dev_found static

Johannes Berg johannes
Thu Dec 2 11:47:40 PST 2010


From: Johannes Berg <johannes.berg at intel.com>

There's no need for it to be visible outside
of the P2P supplicant.

Signed-off-by: Johannes Berg <johannes.berg at intel.com>
---
 wpa_supplicant/p2p_supplicant.c |    6 +++---
 wpa_supplicant/p2p_supplicant.h |    3 ---
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 248d9f1..8d56e2b 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -1103,9 +1103,9 @@ void wpas_go_neg_req_rx(void *ctx, const u8 *src, u16 dev_passwd_id)
 }
 
 
-void wpas_dev_found(void *ctx, const u8 *addr, const u8 *dev_addr,
-		    const u8 *pri_dev_type, const char *dev_name,
-		    u16 config_methods, u8 dev_capab, u8 group_capab)
+static void wpas_dev_found(void *ctx, const u8 *addr, const u8 *dev_addr,
+			   const u8 *pri_dev_type, const char *dev_name,
+			   u16 config_methods, u8 dev_capab, u8 group_capab)
 {
 	struct wpa_supplicant *wpa_s = ctx;
 	char devtype[WPS_DEV_TYPE_BUFSIZE];
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index 7f59453..8573e31 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -62,9 +62,6 @@ void wpas_p2p_rx_action(struct wpa_supplicant *wpa_s, const u8 *da,
 			u8 category, const u8 *data, size_t len, int freq);
 void wpas_p2p_scan_ie(struct wpa_supplicant *wpa_s, struct wpabuf *ies);
 void wpas_p2p_group_deinit(struct wpa_supplicant *wpa_s);
-void wpas_dev_found(void *ctx, const u8 *addr, const u8 *dev_addr,
-		    const u8 *pri_dev_type, const char *dev_name,
-		    u16 config_methods, u8 dev_capab, u8 group_capab);
 void wpas_go_neg_completed(void *ctx, struct p2p_go_neg_results *res);
 void wpas_go_neg_req_rx(void *ctx, const u8 *src, u16 dev_passwd_id);
 void wpas_prov_disc_req(void *ctx, const u8 *peer, u16 config_methods,
-- 
1.7.2.3




More information about the Hostap mailing list