qcacld-3.0: Resolve compile issue for Fillmore

Add macro check about CFG80211_LINK_STA_PARAMS_PRESENT for
function wlan_cfg80211_tdls_extract_eht_params.

Change-Id: I1982d97f06e333936ea45828f5082d322664a2c0
CRs-Fixed: 3479244
This commit is contained in:
Paul Zhang
2023-04-26 10:10:16 +08:00
gecommit door Madan Koyyalamudi
bovenliggende e5c943d4b4
commit 790a506ad9

Bestand weergeven

@@ -435,6 +435,7 @@ wlan_cfg80211_tdls_extract_he_params(struct tdls_update_peer_params *req_info,
#endif
#ifdef WLAN_FEATURE_11BE
#ifdef CFG80211_LINK_STA_PARAMS_PRESENT
static void
wlan_cfg80211_tdls_extract_eht_params(struct tdls_update_peer_params *req_info,
struct station_parameters *params)
@@ -452,6 +453,22 @@ wlan_cfg80211_tdls_extract_eht_params(struct tdls_update_peer_params *req_info,
}
#else
static void
wlan_cfg80211_tdls_extract_eht_params(struct tdls_update_peer_params *req_info,
struct station_parameters *params)
{
if (params->eht_capa) {
osif_debug("eht capa is present");
req_info->ehtcap_present = 1;
req_info->eht_cap_len = params->eht_capa_len;
qdf_mem_copy(&req_info->eht_cap, params->eht_capa,
sizeof(struct ehtcap));
} else {
req_info->ehtcap_present = 0;
}
}
#endif
#else
static void
wlan_cfg80211_tdls_extract_eht_params(struct tdls_update_peer_params *req_info,
struct station_parameters *params)
{