qcacmn: Handle compilation for 6.5-rc3 kernel backport

Changes to fix the compilation error seen with kernel
version 6.5-rc3 backports. WEP KEYS support is removed
in this kernel, hence handle the same.

CRs-Fixed: 3623998
Change-Id: Ibf8423351eb4645f8d8a4a94bbe249fe96971287
This commit is contained in:
Shwetha G K
2023-10-10 11:01:03 +05:30
committed by Ravindra Konda
parent bc1b9702dd
commit b62dd89f57

View File

@@ -39,7 +39,8 @@
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0) && \
LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0) && \
!defined(CFG80211_CRYPTO_WEP_KEYS_REMOVED)
static QDF_STATUS
osif_cm_update_wep_seq_info(struct wlan_cm_connect_req *connect_req,
const struct cfg80211_connect_params *req)
@@ -68,6 +69,7 @@ osif_cm_update_wep_seq_info(struct wlan_cm_connect_req *connect_req,
}
#endif
#if !defined(CFG80211_CRYPTO_WEP_KEYS_REMOVED)
static QDF_STATUS
osif_cm_set_wep_key_params(struct wlan_cm_connect_req *connect_req,
const struct cfg80211_connect_params *req)
@@ -88,6 +90,14 @@ osif_cm_set_wep_key_params(struct wlan_cm_connect_req *connect_req,
return osif_cm_update_wep_seq_info(connect_req, req);
}
#else
static QDF_STATUS
osif_cm_set_wep_key_params(struct wlan_cm_connect_req *connect_req,
const struct cfg80211_connect_params *req)
{
return QDF_STATUS_SUCCESS;
}
#endif
static void osif_cm_set_auth_type(struct wlan_cm_connect_req *connect_req,
const struct cfg80211_connect_params *req)