From ceb34f250af7a7082f18c1e0451dc7fbc0f000f3 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 27 May 2011 19:06:05 +0300 Subject: [PATCH] Remove compiler warning for non-P2P builds --- wpa_supplicant/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 8604d163f..f3a7cffe5 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -292,7 +292,9 @@ static int wpa_supplicant_ctrl_iface_wps_pbc(struct wpa_supplicant *wpa_s, char *cmd) { u8 bssid[ETH_ALEN], *_bssid = bssid; +#ifdef CONFIG_P2P u8 p2p_dev_addr[ETH_ALEN], *_p2p_dev_addr = NULL; +#endif /* CONFIG_P2P */ if (cmd == NULL || os_strcmp(cmd, "any") == 0) { _bssid = NULL;