qcacld-3.0: clear rate info in mlme priv for non-support rates

When update rate info to vdev mlme_priv, if in current assocrsp
there is no extend rate or mcs rate, need to clear such info.
otherwise such info is still last connection information.
the link rate will display wrongly, test step as:
1 connect with 11g AP
2 config AP to 11b, then connect manually
3 link speed will be wrong on sta side

if extend rate or mcs rate is not present, clear ext_opr_rate_set
and mcs_rate_set.

Change-Id: I8ff1b5804dbbe463d6949d0431079174446c64ad
CRs-Fixed: 3356077
This commit is contained in:
Jingxiang Ge
2022-12-14 21:49:51 +08:00
committed by Madan Koyyalamudi
parent f67a8ebc9a
commit bf0462e93e
3 changed files with 62 additions and 0 deletions

View File

@@ -3613,6 +3613,14 @@ qdf_size_t mlme_get_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
QDF_STATUS mlme_set_ext_opr_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
qdf_size_t len);
/**
* mlme_clear_ext_opr_rate() - clear extended operational rate
* @vdev: vdev pointer
*
* Return: QDF_SUCCESS if success
*/
QDF_STATUS mlme_clear_ext_opr_rate(struct wlan_objmgr_vdev *vdev);
/**
* mlme_get_mcs_rate() - get MCS based rate
* @vdev: vdev pointer
@@ -3635,6 +3643,14 @@ qdf_size_t mlme_get_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *dst,
QDF_STATUS mlme_set_mcs_rate(struct wlan_objmgr_vdev *vdev, uint8_t *src,
qdf_size_t len);
/**
* mlme_clear_mcs_rate() - clear MCS based rate
* @vdev: vdev pointer
*
* Return: QDF_SUCCESS if success
*/
QDF_STATUS mlme_clear_mcs_rate(struct wlan_objmgr_vdev *vdev);
/**
* wlan_mlme_is_sta_mon_conc_supported() - Check if STA + Monitor mode
* concurrency is supported