summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBala Venkatesh <bjavvaji@codeaurora.org>2018-03-26 18:09:40 +0530
committernshrivas <nshrivas@codeaurora.org>2018-03-28 13:15:07 -0700
commitd5d404a028fd553fde2ec681c4a107502efa2fb6 (patch)
treea192bc860f99a627fde86fbf47230ec6275d00b9
parentd0acba59d1a38ebfccbb93cdabd4e489b11f90d4 (diff)
qcacld-3.0: Check for SAP restart after channel switch
Race condition in STA connection and Channel switch of Softap can result in MCC for STA+SAP scenario. Even though Force SCC is enabled. As part of STA connection in association handler SAP restart is checked. If Channel Switch for SAP interface is in progress at the same time. Then depending on SAP Channel MCC can be resulted. Check for SAP restart in the function hdd_hostapd_sap_event_cb. Change-Id: Ic4ba8790d604f184eb8030e4fe06c5e76f9a62bd CRs-Fixed: 2205482
-rw-r--r--core/hdd/src/wlan_hdd_hostapd.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c
index 2fcda104e697..5b9c00d6a54b 100644
--- a/core/hdd/src/wlan_hdd_hostapd.c
+++ b/core/hdd/src/wlan_hdd_hostapd.c
@@ -1607,6 +1607,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
tSap_StationDisassocCompleteEvent *disassoc_comp;
hdd_station_info_t *stainfo;
cds_context_type *cds_ctx;
+ hdd_adapter_t *sta_adapter;
dev = (struct net_device *)usrDataForCallback;
if (!dev) {
@@ -1841,6 +1842,12 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
we_custom_event_generic = we_custom_start_event;
cds_dump_concurrency_info();
+ sta_adapter = hdd_get_adapter(pHddCtx, QDF_STA_MODE);
+ if (sta_adapter != NULL) {
+ hdd_debug("check for SAP restart");
+ cds_check_concurrent_intf_and_restart_sap(sta_adapter);
+ }
+
if (cds_is_hw_mode_change_after_vdev_up()) {
hdd_debug("check for possible hw mode change");
status = cds_set_hw_mode_on_channel_switch(