qcacld-3.0: Update 2g vht20 cfg by target capability
Only when F/W indicates 2g vht20 supported and ini config gEnableVhtFor24GHzBand=1, 2g vht20 can be enabled. Steps: For chips wmi_service_ext_msg supported: 1. hdd_component_psoc_open->mlme_cfg_on_psoc_enable-> mlme_init_vht_cap_cfg, read and save ini cfg: gEnableVhtFor24GHzBand. 2. WMI_SERVICE_READY_EXT_EVENT indicates 2g vht20 capability by mac_phy_caps->vht_cap_info_2G. 3. init_deinit_populate_mac_phy_capability calls extract_mac_phy_cap_service_ready_ext_tlv to extract vht_cap_info_2G, and set to psoc->tgt_if_handle->info.mac_phy_cap. 4. hdd_update_tgt_cfg->hdd_update_vhtcap_2g-> wma_get_caps_for_phyidx_hwmode, get target capability, and combine ini cfg, update 2g vht20 cfg in mlme. For chips wmi_service_ext_msg unsupported: 1. hdd_component_psoc_open->mlme_cfg_on_psoc_enable-> mlme_init_vht_cap_cfg, read and save ini cfg: gEnableVhtFor24GHzBand. 2. WMI_SERVICE_READY_EVENT indicates 2g vht20 capability by hal_reg_capabilities-> wireless_modes REGDMN_MODE_11AC_VHT20_2G bit. 3. init_deinit_populate_phy_reg_cap calls wmi_extract_hal_reg_cap to extract hal_reg_capabilities, and set to regulatory component by ucfg_reg_set_hal_reg_cap, saved in wlan_regulatory_psoc_priv_obj->reg_cap. 4. hdd_update_tgt_cfg->hdd_update_vhtcap_2g, get and target capability and combine ini cfg, update 2g vht20 cfg in mlme. Change-Id: Id4f2edd129bb1eefec3e39b4246c5f52b2b4124a CRs-Fixed: 2384842
This commit is contained in:
@@ -2314,12 +2314,9 @@ ucfg_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value)
|
||||
}
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_vht_for_24ghz() - Enables/disables vht for 24ghz
|
||||
* ucfg_mlme_get_vht_for_24ghz() - Get mlme cfg of vht for 24ghz
|
||||
* @psoc: psoc context
|
||||
* @value: data to be set
|
||||
*
|
||||
* Inline UCFG API to be used by HDD/OSIF callers to get the
|
||||
* ignore_peer_ht_opmode flag value
|
||||
* @value: data to get
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
|
||||
*/
|
||||
@@ -2334,9 +2331,6 @@ ucfg_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
|
||||
* @psoc: psoc context
|
||||
* @value: data to be set
|
||||
*
|
||||
* Inline UCFG API to be used by HDD/OSIF callers to set the
|
||||
* ignore_peer_ht_opmode flag value
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
|
||||
*/
|
||||
static inline QDF_STATUS
|
||||
@@ -2346,13 +2340,10 @@ ucfg_mlme_set_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool value)
|
||||
}
|
||||
|
||||
/**
|
||||
* ucfg_mlme_get_vendor_vht_for_24ghz() - Enables/disables vendor vht for 24ghz
|
||||
* ucfg_mlme_get_vendor_vht_for_24ghz() - Get mlme cfg of vendor vht for 24ghz
|
||||
* @psoc: psoc context
|
||||
* @value: data to be set
|
||||
*
|
||||
* Inline UCFG API to be used by HDD/OSIF callers to get the
|
||||
* ignore_peer_ht_opmode flag value
|
||||
*
|
||||
* Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
|
||||
*/
|
||||
static inline QDF_STATUS
|
||||
|
Reference in New Issue
Block a user