qcacld-3.0: Reset the connection_in_progress flag in case of SSR

Currently, the connection_in_progress flag in hdd_ctx is not reset
as part of SSR this can lead to scan reject after SSR.

Change-Id: Icc7889eb3140f02dd100d05e812d5573ebcae63c
CRs-Fixed: 2516937
This commit is contained in:
Bala Venkatesh 2019-09-03 17:45:45 +05:30 committed by nshrivas
parent dd405695cd
commit 235615809c
3 changed files with 5 additions and 0 deletions

View File

@ -15362,6 +15362,8 @@ bool hdd_is_connection_in_progress(uint8_t *out_vdev_id,
}
if (hdd_ctx->connection_in_progress) {
hdd_debug("AP/GO: connection is in progress");
*out_reason = SAP_CONNECTION_IN_PROGRESS;
*out_vdev_id = adapter->vdev_id;
return true;
}
}

View File

@ -1235,6 +1235,7 @@ QDF_STATUS hdd_wlan_shutdown(void)
}
hdd_bus_bw_compute_timer_stop(hdd_ctx);
hdd_set_connection_in_progress(false);
policy_mgr_clear_concurrent_session_count(hdd_ctx->psoc);
hdd_debug("Invoking packetdump deregistration API");

View File

@ -5513,6 +5513,7 @@ struct sme_rcpi_req {
* @REASSOC_IN_PROGRESS: reassociation is in progress
* @EAPOL_IN_PROGRESS: STA/P2P-CLI is in middle of EAPOL/WPS exchange
* @SAP_EAPOL_IN_PROGRESS: SAP/P2P-GO is in middle of EAPOL/WPS exchange
* @SAP_CONNECTION_IN_PROGRESS: SAP/P2P-GO is in middle of connection.
*/
enum scan_reject_states {
SCAN_REJECT_DEFAULT = 0,
@ -5520,6 +5521,7 @@ enum scan_reject_states {
REASSOC_IN_PROGRESS,
EAPOL_IN_PROGRESS,
SAP_EAPOL_IN_PROGRESS,
SAP_CONNECTION_IN_PROGRESS,
};
/**