Fix non-P2P build after the P2P_DEVICE changes
Commit c68f6200a7
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>
This commit is contained in:
parent
d53d2596e4
commit
9e6a321815
1 changed files with 2 additions and 0 deletions
|
@ -307,11 +307,13 @@ int main(int argc, char *argv[])
|
||||||
exitcode = -1;
|
exitcode = -1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#ifdef CONFIG_P2P
|
||||||
if (wpa_s->global->p2p == NULL &&
|
if (wpa_s->global->p2p == NULL &&
|
||||||
(wpa_s->drv_flags &
|
(wpa_s->drv_flags &
|
||||||
WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) &&
|
WPA_DRIVER_FLAGS_DEDICATED_P2P_DEVICE) &&
|
||||||
wpas_p2p_add_p2pdev_interface(wpa_s) < 0)
|
wpas_p2p_add_p2pdev_interface(wpa_s) < 0)
|
||||||
exitcode = -1;
|
exitcode = -1;
|
||||||
|
#endif /* CONFIG_P2P */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitcode == 0)
|
if (exitcode == 0)
|
||||||
|
|
Loading…
Reference in a new issue