aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/main.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-06-30 10:19:59 (GMT)
committerJouni Malinen <j@w1.fi>2013-06-30 10:19:59 (GMT)
commit9e6a321815f924e1e42896538d639e62d7786f6a (patch)
treedf887840f2d45aaf7661ddf6ee28f135da3746c8 /wpa_supplicant/main.c
parentd53d2596e4919bc2f7b6acfa6a9a9baba1d68360 (diff)
downloadhostap-9e6a321815f924e1e42896538d639e62d7786f6a.zip
hostap-9e6a321815f924e1e42896538d639e62d7786f6a.tar.gz
hostap-9e6a321815f924e1e42896538d639e62d7786f6a.tar.bz2
Fix non-P2P build after the P2P_DEVICE changes
Commit c68f6200a72f2b33304f583859b09e57757b9d2a added a call to a function that exists only for P2P builds. Fix that with #ifdef CONFIG_P2P. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/main.c')
-rw-r--r--wpa_supplicant/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/main.c b/wpa_supplicant/main.c
index d495ec1..39b837e 100644
--- a/wpa_supplicant/main.c
+++ b/wpa_supplicant/main.c
@@ -307,11 +307,13 @@ int main(int argc, char *argv[])
exitcode = -1;
break;
}
+#ifdef CONFIG_P2P
if (wpa_s->global->p2p == NULL &&
(wpa_s->drv_flags &
WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) &&
wpas_p2p_add_p2pdev_interface(wpa_s) < 0)
exitcode = -1;
+#endif /* CONFIG_P2P */
}
if (exitcode == 0)