From: Jouni Malinen Date: Mon, 20 Jun 2011 05:58:32 +0000 (+0300) Subject: Fix CONFIG_AP=y build without CONFIG_P2P=y X-Git-Tag: hostap-1-bp~368 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=634ce80246346299cc3d1767904a79570f61e6df;p=thirdparty%2Fhostap.git Fix CONFIG_AP=y build without CONFIG_P2P=y --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index f3a7cffe5..cbc6fef68 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -293,8 +293,11 @@ static int wpa_supplicant_ctrl_iface_wps_pbc(struct wpa_supplicant *wpa_s, { u8 bssid[ETH_ALEN], *_bssid = bssid; #ifdef CONFIG_P2P - u8 p2p_dev_addr[ETH_ALEN], *_p2p_dev_addr = NULL; + u8 p2p_dev_addr[ETH_ALEN]; #endif /* CONFIG_P2P */ +#ifdef CONFIG_AP + u8 *_p2p_dev_addr = NULL; +#endif /* CONFIG_AP */ if (cmd == NULL || os_strcmp(cmd, "any") == 0) { _bssid = NULL;