Forráskód Böngészése

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
Arun Khandavalli 8 éve
szülő
commit
97f2838162
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 2 - 0
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,