From: Kevin Cernekee Date: Sat, 20 Jun 2015 00:22:30 +0000 (-0700) Subject: Android: Fix nl80211 build if BOARD_*_PRIVATE_LIB is unspecified X-Git-Tag: hostap_2_5~514 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ded14ce95d5922fc7a2d25dfb3a7c4b667747edf;p=thirdparty%2Fhostap.git Android: Fix nl80211 build if BOARD_*_PRIVATE_LIB is unspecified 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 --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 20f53218f..f74422bae 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -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,