瀏覽代碼

qcacld-3.0: Dont close the CDS modules in FTM mode

Driver in FTM mode can operate even if the wlan interface isn't up.
If an user or an application tries to do IFF_UP and then IFF_DOWN
on the wlan0 interface, interface change timer kicks-in and starts
closing the modules. After which every command FTM commands
starts failing since the CDS modules are closed.

In order to mitigate don't run the interface change timer if
the driver mode is FTM.

Change-Id: I6b65a9956e33aeb619d2f1748f369c00ca75acab
CRs-Fixed: 2078323
Arun Khandavalli 7 年之前
父節點
當前提交
ba479c4ca8
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      core/hdd/src/wlan_hdd_main.c

+ 5 - 0
core/hdd/src/wlan_hdd_main.c

@@ -4522,6 +4522,11 @@ bool hdd_check_for_opened_interfaces(hdd_context_t *hdd_ctx)
 	QDF_STATUS status;
 	bool close_modules = true;
 
+	if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) {
+		hdd_info("FTM mode, don't close the module");
+		return false;
+	}
+
 	status = hdd_get_front_adapter(hdd_ctx, &adapter_node);
 	while ((NULL != adapter_node) && (QDF_STATUS_SUCCESS == status)) {
 		if (test_bit(DEVICE_IFACE_OPENED,