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:

committed by
Rahul Choudhary

parent
d26a05fafd
commit
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
|
||||||
|
#ifdef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
|
||||||
bool cm_is_eht_allowed_for_current_security(struct scan_cache_entry *scan_entry)
|
bool cm_is_eht_allowed_for_current_security(struct scan_cache_entry *scan_entry)
|
||||||
{
|
{
|
||||||
const uint8_t *rsnxe, *rsnxe_caps;
|
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 true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int cm_calculate_eht_score(struct scan_cache_entry *entry,
|
static int cm_calculate_eht_score(struct scan_cache_entry *entry,
|
||||||
struct scoring_cfg *score_config,
|
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);
|
struct qdf_mac_addr *self_mac);
|
||||||
|
|
||||||
#ifdef WLAN_FEATURE_11BE
|
#ifdef WLAN_FEATURE_11BE
|
||||||
|
#ifdef WLAN_FEATURE_11BE_MLO_ADV_FEATURE
|
||||||
/**
|
/**
|
||||||
* cm_is_eht_allowed_for_current_security() - checks the current security, if
|
* cm_is_eht_allowed_for_current_security() - checks the current security, if
|
||||||
* eht allowed or not.
|
* 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(
|
bool cm_is_eht_allowed_for_current_security(
|
||||||
struct scan_cache_entry *scan_entry);
|
struct scan_cache_entry *scan_entry);
|
||||||
#else
|
#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(
|
static inline bool cm_is_eht_allowed_for_current_security(
|
||||||
struct scan_cache_entry *scan_entry)
|
struct scan_cache_entry *scan_entry)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user