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 <cernekee@google.com>
This commit is contained in:
Kevin Cernekee 2015-06-19 17:22:30 -07:00 committed by Jouni Malinen
parent a1407217b1
commit ded14ce95d

View 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, .set_ap_wps_ie = wpa_driver_set_ap_wps_p2p_ie,
#endif /* ANDROID_P2P */ #endif /* ANDROID_P2P */
#ifdef ANDROID #ifdef ANDROID
#ifndef ANDROID_LIB_STUB
.driver_cmd = wpa_driver_nl80211_driver_cmd, .driver_cmd = wpa_driver_nl80211_driver_cmd,
#endif /* !ANDROID_LIB_STUB */
#endif /* ANDROID */ #endif /* ANDROID */
.vendor_cmd = nl80211_vendor_cmd, .vendor_cmd = nl80211_vendor_cmd,
.set_qos_map = nl80211_set_qos_map, .set_qos_map = nl80211_set_qos_map,