qcacld-3.0: Ignore legacy rate set if it is HE connection

Do not configure legacy rate to FW if it is HE connection, otherwise
FW does not work.

Change-Id: I31d167ee79b7b58cabad29e65cf6834a7151093d
CRs-Fixed: 2472811
This commit is contained in:
bings
2019-06-20 17:39:39 +08:00
committed by nshrivas
parent 0d9e67d8f8
commit 672207d673
5 changed files with 75 additions and 15 deletions

View File

@@ -3432,3 +3432,20 @@ wlan_mlme_get_4way_hs_offload(struct wlan_objmgr_psoc *psoc, bool *value)
return QDF_STATUS_SUCCESS;
}
QDF_STATUS mlme_get_peer_phymode(struct wlan_objmgr_psoc *psoc, uint8_t *mac,
enum wlan_phymode *peer_phymode)
{
struct wlan_objmgr_peer *peer;
peer = wlan_objmgr_get_peer_by_mac(psoc, mac, WLAN_MLME_NB_ID);
if (!peer) {
mlme_legacy_err("peer object is null");
return QDF_STATUS_E_NULL_VALUE;
}
*peer_phymode = wlan_peer_get_phymode(peer);
wlan_objmgr_peer_release_ref(peer, WLAN_MLME_NB_ID);
return QDF_STATUS_SUCCESS;
}