qcacld-3.0: Avoid CH_WIDTH_320MHZ dependency on 11BE define

CH_WIDTH_320MHZ definition is in 11BE define currently and it's
causing duplicate code in 11BE supported/unsupported cases.
Definition need not be in 11BE define as it doesn't cause any
impact on memory.

Change-Id: I9fa391474f513755000368cc2e41e004446353d0
CRs-Fixed: 3246578
This commit is contained in:
Srinivas Dasari
2022-06-28 15:51:09 +05:30
committed by Madan Koyyalamudi
parent f5b8996acc
commit 8f06292a0b
9 changed files with 4 additions and 54 deletions

View File

@@ -1617,7 +1617,6 @@ static inline uint16_t he_mcs_12_13_support(void)
}
#endif
#ifdef WLAN_FEATURE_11BE
static bool is_mcs13_ch_width(enum phy_ch_width ch_width)
{
if ((ch_width == CH_WIDTH_320MHZ) ||
@@ -1627,16 +1626,6 @@ static bool is_mcs13_ch_width(enum phy_ch_width ch_width)
return false;
}
#else
static bool is_mcs13_ch_width(enum phy_ch_width ch_width)
{
if ((ch_width == CH_WIDTH_160MHZ) ||
(ch_width == CH_WIDTH_80P80MHZ))
return true;
return false;
}
#endif
/**
* sap_update_mcs_rate() - Update SAP MCS rate