|
@@ -674,14 +674,7 @@ QDF_STATUS csr_neighbor_roam_indicate_disconnect(struct mac_context *mac,
|
|
|
*/
|
|
|
csr_roam_free_connect_profile(pPrevProfile);
|
|
|
csr_roam_copy_connect_profile(mac, sessionId, pPrevProfile);
|
|
|
- /*
|
|
|
- * clear the roaming parameters that are per connection.
|
|
|
- * For a new connection, they have to be programmed again.
|
|
|
- */
|
|
|
- if (!csr_neighbor_middle_of_roaming(mac, sessionId)) {
|
|
|
- csr_roam_reset_roam_params(mac);
|
|
|
- csr_roam_restore_default_config(mac, sessionId);
|
|
|
- }
|
|
|
+
|
|
|
if (pSession) {
|
|
|
roam_session = &mac->roam.roamSession[sessionId];
|
|
|
if (pSession->pCurRoamProfile && (QDF_STA_MODE !=
|
|
@@ -768,6 +761,16 @@ QDF_STATUS csr_neighbor_roam_indicate_disconnect(struct mac_context *mac,
|
|
|
pNeighborRoamInfo->uOsRequestedHandoff = 0;
|
|
|
break;
|
|
|
}
|
|
|
+
|
|
|
+ /*
|
|
|
+ * clear the roaming parameters that are per connection.
|
|
|
+ * For a new connection, they have to be programmed again.
|
|
|
+ */
|
|
|
+ if (!csr_neighbor_middle_of_roaming(mac, sessionId)) {
|
|
|
+ csr_roam_reset_roam_params(mac);
|
|
|
+ csr_roam_restore_default_config(mac, sessionId);
|
|
|
+ }
|
|
|
+
|
|
|
/*Inform the Firmware to STOP Scanning as the host has a disconnect. */
|
|
|
if (csr_roam_is_sta_mode(mac, sessionId))
|
|
|
csr_post_roam_state_change(mac, sessionId, ROAM_DEINIT,
|