]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix CONFIG_AP=y build without CONFIG_P2P=y
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 20 Jun 2011 05:58:32 +0000 (08:58 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 20 Jun 2011 05:58:32 +0000 (08:58 +0300)
wpa_supplicant/ctrl_iface.c

index f3a7cffe5e1641921bcbcc08f132508713ed9829..cbc6fef68dbb6631d8d51c8832259f05fcf030ea 100644 (file)
@@ -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;