qcacld-3.0: Clear connection info of both ml and assoc link when disconnect

When wlan0 connect, connect info as bssid are saved to both ML adapter and
assoc link adapter.
When wlan0 disconnect, connect info as bssid isn't cleared in both adapter.

When 2nd sta connected same bssid, in __wlan_hdd_cfg80211_get_station old
wlan0 adapter is got by hdd_get_adapter_by_bssid, but it is disconnected,
so no right rssi reported.

Change-Id: I5dd2b6dcdd063509ee42088270cc85f2466e3b67
CRs-Fixed: 3317428
This commit is contained in:
Jianmin Zhu
2022-10-20 23:23:46 +08:00
committed by Madan Koyyalamudi
parent 8e68427efd
commit 5fb29aca2e
3 changed files with 27 additions and 8 deletions

View File

@@ -128,6 +128,15 @@ void hdd_adapter_set_ml_adapter(struct hdd_adapter *adapter);
* Return: adapter or NULL
*/
struct hdd_adapter *hdd_get_ml_adater(struct hdd_context *hdd_ctx);
/**
* hdd_get_assoc_link_adapter() - get assoc link adapter
* @ml_adapter: ML adapter
*
* This function returns assoc link adapter
* Return: adapter or NULL
*/
struct hdd_adapter *hdd_get_assoc_link_adapter(struct hdd_adapter *ml_adapter);
#else
static inline
QDF_STATUS hdd_wlan_unregister_mlo_interfaces(struct hdd_adapter *adapter,
@@ -158,5 +167,11 @@ struct hdd_adapter *hdd_get_ml_adater(struct hdd_context *hdd_ctx)
{
return NULL;
}
static inline
struct hdd_adapter *hdd_get_assoc_link_adapter(struct hdd_adapter *ml_adapter)
{
return NULL;
}
#endif
#endif