From 6663d16f6d8ca9b535155f70a4517aee4dfef31f Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Mon, 10 Jul 2017 03:29:36 -0400 Subject: [PATCH] qcacld-3.0: do SAP internal restart based on INI On MDM platform, scm or wlan_services will take care the Hostapd restart when get LTE coex event. To make it configurable to avoid duplication of restart SAP. Change-Id: Idfb0b6967643d85315df23264a38fc68863a9fea CRs-Fixed: 2073634 --- core/hdd/src/wlan_hdd_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 9aea858f5a..0b0aa28abd 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -7156,7 +7156,12 @@ void hdd_unsafe_channel_restart_sap(hdd_context_t *hdd_ctxt) hdd_debug("sending coex indication"); wlan_hdd_send_svc_nlink_msg(hdd_ctxt->radio_index, WLAN_SVC_LTE_COEX_IND, NULL, 0); - hdd_switch_sap_channel(adapter_temp, restart_chan); + hdd_debug("driver to start sap: %d", + hdd_ctxt->config->sap_internal_restart); + if (hdd_ctxt->config->sap_internal_restart) + hdd_switch_sap_channel(adapter_temp, restart_chan); + else + return; } next_adapater: