]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Android: Fix nl80211 build if BOARD_*_PRIVATE_LIB is unspecified
authorKevin Cernekee <cernekee@google.com>
Sat, 20 Jun 2015 00:22:30 +0000 (17:22 -0700)
committerJouni Malinen <j@w1.fi>
Fri, 26 Jun 2015 19:46:49 +0000 (22:46 +0300)
wpa_supplicant has stub functions if the external p2p symbols are
unavailable, but the build still fails if the
wpa_driver_nl80211_driver_cmd symbol is missing.  Fix this by leaving the
function pointer NULL.  This is safe because wpa_drv_driver_cmd() performs
a NULL check.

Signed-off-by: Kevin Cernekee <cernekee@google.com>
src/drivers/driver_nl80211.c

index 20f53218fa9a91a38bd95db699504bb210e5cd8b..f74422baea9672421409a599cbb65844b8c1168f 100644 (file)
@@ -8509,7 +8509,9 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = {
        .set_ap_wps_ie = wpa_driver_set_ap_wps_p2p_ie,
 #endif /* ANDROID_P2P */
 #ifdef ANDROID
+#ifndef ANDROID_LIB_STUB
        .driver_cmd = wpa_driver_nl80211_driver_cmd,
+#endif /* !ANDROID_LIB_STUB */
 #endif /* ANDROID */
        .vendor_cmd = nl80211_vendor_cmd,
        .set_qos_map = nl80211_set_qos_map,