From 97f2838162bc8c3ac9f4317a3323f415e1c7bc0a Mon Sep 17 00:00:00 2001 From: Arun Khandavalli Date: Fri, 9 Sep 2016 17:36:50 +0530 Subject: [PATCH] qcacld-3.0: set/clear interface opened flag for softap adapter In softap case DEVICE_IFACE_OPENED flag is not set/cleared when the interface is opened/stopped(hdd_hostapd_open/hdd_hostapd_stop). During the STA+SAP concurrency when the STA is turned off, during the interface down it check's if any interfaces are opened, if no interfaces are opened it starts the timer to close the modules. Since the interface opened flag is not set for softap case the timer is getting kickstarted and resulting in closing the modules even when the SOFTAP is running. To migitate the issue, set/clear the DEVICE_IFACE_OPENED in the adapter even for SOFTAP. Change-Id: I9e3f1391d92473d8a189d9fee6523ec3a7554c96 CRs-Fixed: 1065130 --- core/hdd/src/wlan_hdd_hostapd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 07eb75f08ccd..c85a8e0c5657 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -246,6 +246,7 @@ static int __hdd_hostapd_open(struct net_device *dev) goto done; } + set_bit(DEVICE_IFACE_OPENED, &pAdapter->event_flags); /* Enable all Tx queues */ hdd_notice("Enabling queues"); wlan_hdd_netif_queue_control(pAdapter, @@ -287,6 +288,7 @@ static int __hdd_hostapd_stop(struct net_device *dev) ENTER_DEV(dev); + clear_bit(DEVICE_IFACE_OPENED, &adapter->event_flags); /* Stop all tx queues */ hdd_notice("Disabling queues"); wlan_hdd_netif_queue_control(adapter, WLAN_NETIF_TX_DISABLE_N_CARRIER,