From 41f3478d2e5ebf3fe12203311f66c0ad67ccb8b7 Mon Sep 17 00:00:00 2001 From: Ganesh Kondabattini Date: Thu, 14 Sep 2017 21:14:29 +0530 Subject: [PATCH] qcacld-3.0: Restart SAP on channel switch Check if SAP restart is required when STA is changing the channel as part of CSA handling. CRs-Fixed: 2115904 Change-Id: Ie8c798c0964def5c3d5db6dbe55a3de3ff8a3381 --- core/hdd/src/wlan_hdd_assoc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/hdd/src/wlan_hdd_assoc.c b/core/hdd/src/wlan_hdd_assoc.c index 6d8b40fc3426..d56dbfd86abb 100644 --- a/core/hdd/src/wlan_hdd_assoc.c +++ b/core/hdd/src/wlan_hdd_assoc.c @@ -4364,6 +4364,9 @@ static void hdd_roam_channel_switch_handler(struct hdd_adapter *adapter, if (QDF_IS_STATUS_ERROR(status)) hdd_err("channel change notification failed"); + hdd_debug("check for SAP restart"); + policy_mgr_check_concurrent_intf_and_restart_sap(hdd_ctx->hdd_psoc); + status = policy_mgr_set_hw_mode_on_channel_switch(hdd_ctx->hdd_psoc, adapter->sessionId); if (QDF_IS_STATUS_ERROR(status))