qcacld-3.0: Add link entry to policy_mgr upon legacy to MLO roam

Currently, link entry is not added to connection_list of
policy_mgr in case of legacy to MLO roaming. This causes
policy_mgr to miss track of the MLO link.
Check if the connection entry is present in the policy mgr
for the link vdev id and add an entry if it's not present.

Change-Id: Ib19f3616a3384670f1faef20c39476a2bcac2588
CRs-Fixed: 3274435
Dieser Commit ist enthalten in:
Srinivas Dasari
2022-08-24 06:57:41 -07:00
committet von Madan Koyyalamudi
Ursprung 1a68a41dfa
Commit 284ee6b50b
2 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen

Datei anzeigen

@@ -1010,8 +1010,6 @@ QDF_STATUS cm_fw_roam_complete(struct cnx_mgr *cm_ctx, void *data)
goto end;
}
/* Check if FW as indicated this link as disabled */
cm_get_and_disable_link_from_roam_ind(psoc, vdev_id, roam_synch_data);
/*
* Following operations need to be done once roam sync
* completion is sent to FW, hence called here:
@@ -1020,7 +1018,13 @@ QDF_STATUS cm_fw_roam_complete(struct cnx_mgr *cm_ctx, void *data)
* 2) Force SCC switch if needed
*/
/* first update connection info from wma interface */
policy_mgr_update_connection_info(psoc, vdev_id);
status = policy_mgr_update_connection_info(psoc, vdev_id);
if (status == QDF_STATUS_NOT_INITIALIZED)
policy_mgr_incr_active_session(psoc, QDF_STA_MODE, vdev_id);
/* Check if FW as indicated this link as disabled */
cm_get_and_disable_link_from_roam_ind(psoc, vdev_id, roam_synch_data);
/* then update remaining parameters from roam sync ctx */
if (roam_synch_data->hw_mode_trans_present)
policy_mgr_hw_mode_transition_cb(