qcacld-3.0: Check band capability as well to decide wifi standard
Currently host does not consider band capability when it decides supported wifi standard info. This results in incorrect supported wifi standard info. For example if dot11 mode ini is set to auto and 6 GHz is disabled from band capability and if host does not support 11BE, in this case if host does not consider band capability it reports supported wifi standard as wifi 6E, but ideally it should not report wifi 6E as it wifi 6E mandates 6 GHz support. To address above issue, consider band capability as well to decide supported wifi standard. Change-Id: Iae7804a73d8ba36ec855fdc4c00ca3106e43b350 CRs-Fixed: 3282169
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f9bf5e7610
commit
598a31450c
@@ -4521,11 +4521,23 @@ enum csr_cfgdot11mode sme_phy_mode_to_dot11mode(enum wlan_phymode phy_mode);
|
||||
* Return: Max EHT channel width supported by FW (eg. 80, 160, 320)
|
||||
*/
|
||||
uint32_t sme_get_eht_ch_width(void);
|
||||
|
||||
/**
|
||||
* sme_is_11be_capable() - Check if 11 be is supported or not
|
||||
*
|
||||
* Return: True if 11be is supported
|
||||
*/
|
||||
bool sme_is_11be_capable(void);
|
||||
#else /* !WLAN_FEATURE_11BE */
|
||||
static inline uint32_t sme_get_eht_ch_width(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline bool sme_is_11be_capable(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif /* WLAN_FEATURE_11BE */
|
||||
|
||||
/**
|
||||
|
@@ -16199,15 +16199,10 @@ QDF_STATUS sme_switch_channel(mac_handle_t mac_handle,
|
||||
#ifdef WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE
|
||||
|
||||
#ifdef WLAN_FEATURE_11BE
|
||||
static inline bool sme_is_11be_capable(void)
|
||||
bool sme_is_11be_capable(void)
|
||||
{
|
||||
return sme_is_feature_supported_by_fw(DOT11BE);
|
||||
}
|
||||
#else
|
||||
static inline bool sme_is_11be_capable(void)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
QDF_STATUS sme_send_set_mac_addr(struct qdf_mac_addr mac_addr,
|
||||
|
Reference in New Issue
Block a user