qcacld-3.0: Refine wma_get_caps_for_phyidx_hwmode

The current function doesn't handle "hw_mode" parameter.
And if band is specified the function needs to find the
correct "phy cap" in mac_phy_cap list.
The "supported_bands" can be a bit mask of
(WLAN_2G_CAPABILITY | WLAN_5G_CAPABILITY), use "&" to find
the phy cap of requested band.
Remove unused API wma_get_phyid_for_given_band.

Change-Id: I4b120d681b820e2a6e2b82f33d67fbcf6136af09
CRs-Fixed: 2571400
This commit is contained in:
Liangwei Dong
2019-11-21 17:30:35 +08:00
committed by nshrivas
parent cb6c24411d
commit d4a91a6f12
3 changed files with 57 additions and 77 deletions

View File

@@ -876,7 +876,7 @@ QDF_STATUS wlan_mlme_configure_chain_mask(struct wlan_objmgr_psoc *psoc,
{
int ret_val;
uint8_t ch_msk_val;
struct wma_caps_per_phy non_dbs_phy_cap;
struct wma_caps_per_phy non_dbs_phy_cap = {0};
struct wlan_mlme_psoc_ext_obj *mlme_obj = mlme_get_psoc_ext_obj(psoc);
QDF_STATUS status;
bool enable2x2, as_enabled, enable_bt_chain_sep;