qcacmn: Define driver backport flags for eht cap in kernel

Define new driver internal flag which determines the kernel
support for eht flags in station_parameters structure.

Change-Id: If5518f97912edbd74cb6b38c832641a7999c974e
CRs-Fixed: 3484143
このコミットが含まれているのは:
Vinod Kumar Pirla
2023-05-01 02:42:30 -07:00
committed by Rahul Choudhary
コミット f999b39075

ファイルの表示

@@ -308,4 +308,44 @@
#define WLAN_MLD_AP_STA_CONNECT_UPSTREAM_SUPPORT 1
#endif
/*
* WLAN_LINK_STA_PARAMS_PRESENT
* WLAN_EHT_CAPABILITY_PRESENT
*
* To deterministically identify where EHT fields are present (whether in
* link_sta_params or station_parameters), enable either
* WLAN_LINK_STA_PARAMS_PRESENT or WLAN_EHT_CAPABILITY_PRESENT but not both.
*
* Incase EHT fields are present in link_sta_parameters only define
* WLAN_LINK_STA_PARAMS_PRESENT flag.
*
* If WLAN_LINK_STA_PARAMS_PRESENT is not defined, then EHT cap can be present
* in station_parameters structure, in such case WLAN_EHT_CAPABILITY_PRESENT
* flag will be defined.
*
* If both flags are not enabled then kernel is not EHT capable.
*
* WLAN_LINK_STA_PARAMS_PRESENT
* 577e5b8 wifi: cfg80211: add API to add/modify/remove a link station
* b95eb7f wifi: cfg80211/mac80211: separate link params from station params
*
* The changes are backported to ACK from below commits.
* https://android-review.googlesource.com/c/kernel/common/+/2227406
* https://android-review.googlesource.com/c/kernel/common/+/2227407
*
* WLAN_EHT_CAPABILITY_PRESENT
* ea05fd3 cfg80211: Support configuration of station EHT capabilities
*
* The changes are backported to ACK from below commit.
* https://android-review.googlesource.com/c/kernel/common/+/1996268
*
*/
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 0, 0) || \
(defined CFG80211_LINK_STA_PARAMS_PRESENT))
#define WLAN_LINK_STA_PARAMS_PRESENT 1
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0) || \
(defined NL80211_EHT_MIN_CAPABILITY_LEN))
#define WLAN_EHT_CAPABILITY_PRESENT 1
#endif
#endif