qcacmn: Move HE downgrade logic under MLO_ADV_FEATURE macro
Move HE downgrade logic under MLO_ADV_FEATURE macro Change-Id: Ib89a974f21332368f7deddf58a180f8d9f1bf118 CRs-Fixed: 3581460
This commit is contained in:

committad av
Rahul Choudhary

förälder
d26a05fafd
incheckning
dd3ebd6336
@@ -1443,6 +1443,7 @@ cm_get_band_score(uint32_t freq, struct scoring_cfg *score_config)
|
||||
}
|
||||
|
||||
#ifdef WLAN_FEATURE_11BE
|
||||
#ifdef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
|
||||
bool cm_is_eht_allowed_for_current_security(struct scan_cache_entry *scan_entry)
|
||||
{
|
||||
const uint8_t *rsnxe, *rsnxe_caps;
|
||||
@@ -1474,6 +1475,7 @@ bool cm_is_eht_allowed_for_current_security(struct scan_cache_entry *scan_entry)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
static int cm_calculate_eht_score(struct scan_cache_entry *entry,
|
||||
struct scoring_cfg *score_config,
|
||||
|
@@ -340,6 +340,7 @@ void wlan_cm_calculate_bss_score(struct wlan_objmgr_pdev *pdev,
|
||||
struct qdf_mac_addr *self_mac);
|
||||
|
||||
#ifdef WLAN_FEATURE_11BE
|
||||
#ifdef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
|
||||
/**
|
||||
* cm_is_eht_allowed_for_current_security() - checks the current security, if
|
||||
* eht allowed or not.
|
||||
@@ -350,6 +351,13 @@ void wlan_cm_calculate_bss_score(struct wlan_objmgr_pdev *pdev,
|
||||
bool cm_is_eht_allowed_for_current_security(
|
||||
struct scan_cache_entry *scan_entry);
|
||||
#else
|
||||
static inline bool cm_is_eht_allowed_for_current_security(
|
||||
struct scan_cache_entry *scan_entry)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
static inline bool cm_is_eht_allowed_for_current_security(
|
||||
struct scan_cache_entry *scan_entry)
|
||||
{
|
||||
|
Referens i nytt ärende
Block a user