diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 721c2e6630..49c7405f2a 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -16058,6 +16058,8 @@ static bool hdd_is_wpaie_present(const uint8_t *ie, uint8_t ie_len) return false; } +#ifdef CONFIG_CRYPTO_COMPONENT + /** * hdd_populate_crypto_auth_type() - populate auth type for crypto * @vdev: pointed to vdev obmgr @@ -16156,6 +16158,36 @@ static void hdd_populate_crypto_params(struct wlan_objmgr_vdev *vdev, WLAN_CRYPTO_PARAM_MCAST_CIPHER); } +#else + +static inline +void hdd_populate_crypto_auth_type(struct wlan_objmgr_vdev *vdev, + enum nl80211_auth_type auth_type) +{ +} + +static inline +void hdd_populate_crypto_akm_type(struct wlan_objmgr_vdev *vdev, + u32 key_mgmt) +{ +} + +static inline +void hdd_populate_crypto_cipher_type(u32 cipher, + struct wlan_objmgr_vdev *vdev, + wlan_crypto_param_type + cipher_param_type) +{ +} + +static inline +void hdd_populate_crypto_params(struct wlan_objmgr_vdev *vdev, + struct cfg80211_connect_params *req) +{ +} + +#endif + /** * wlan_hdd_cfg80211_set_privacy() - set security parameters during connection * @adapter: Pointer to adapter