diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index ba61b679db04..a51c4a592a2a 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -2935,13 +2935,6 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, */ hdd_reset_scan_reject_params(hdd_ctx, roam_status, roam_result); - /* - * Enable roaming on other STA iface except this one. - * Firmware dosent support connection on one STA iface while - * roaming on other STA iface - */ - wlan_hdd_enable_roaming(adapter, RSO_CONNECT_START); - /* HDD has initiated disconnect, do not send connect result indication * to kernel as it will be handled by __cfg80211_disconnect. */ @@ -2969,6 +2962,13 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, eConnectionState_Associated); } + /* + * Enable roaming on other STA iface except this one. + * Firmware dosent support connection on one STA iface while + * roaming on other STA iface + */ + wlan_hdd_enable_roaming(adapter, RSO_CONNECT_START); + /* Save the connection info from CSR... */ hdd_conn_save_connect_info(adapter, roam_info, eCSR_BSS_TYPE_INFRASTRUCTURE); @@ -3656,6 +3656,13 @@ hdd_association_completion_handler(struct hdd_adapter *adapter, /* do we need to change the HW mode on final failure */ policy_mgr_check_n_start_opportunistic_timer( hdd_ctx->psoc); + + /* + * Enable roaming on other STA iface except this one. + * Firmware dosent support connection on one STA iface + * while roaming on other STA iface + */ + wlan_hdd_enable_roaming(adapter, RSO_CONNECT_START); } /*