diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 849ee48b7c26..cd8a5ca30aaa 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -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; } } diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index fc1f4df94c68..3fe1a9916b16 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -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"); diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index b538e02f5808..879e0e2a0d59 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -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, }; /**