diff --git a/umac/scan/core/src/wlan_scan_manager.c b/umac/scan/core/src/wlan_scan_manager.c index 4bbf82e9de48..99a1b7c08848 100644 --- a/umac/scan/core/src/wlan_scan_manager.c +++ b/umac/scan/core/src/wlan_scan_manager.c @@ -745,7 +745,8 @@ scm_scan_event_handler(struct scheduler_msg *msg) switch (event->type) { case SCAN_EVENT_TYPE_COMPLETED: - scm_11d_decide_country_code(vdev); + if (event->reason == SCAN_REASON_COMPLETED) + scm_11d_decide_country_code(vdev); /* fall through to release the command */ case SCAN_EVENT_TYPE_START_FAILED: case SCAN_EVENT_TYPE_DEQUEUED: