浏览代码

qcacld-3.0: Export CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV

In order to support four STA default interfaces
to be created and up after driver loaded, it
requires setting bmiss_offload_max_vdev=4 to
Hastings fw. So export this variable to be
configurable and can be modified if in need.

Change-Id: I25db5dd72de7d45c6be682891abba711edaf20dd
CRs-Fixed: 3030148
Chaoli Zhou 3 年之前
父节点
当前提交
c87f453be0
共有 3 个文件被更改,包括 10 次插入2 次删除
  1. 4 0
      Kbuild
  2. 3 1
      core/mac/inc/wlan_tgt_def_config.h
  3. 3 1
      core/mac/inc/wlan_tgt_def_config_hl.h

+ 4 - 0
Kbuild

@@ -3864,6 +3864,10 @@ ifdef CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX
 ccflags-y += -DCFG_HTC_MAX_MSG_PER_BUNDLE_TX=$(CONFIG_HTC_MAX_MSG_PER_BUNDLE_TX)
 endif
 
+ifdef CONFIG_CFG_BMISS_OFFLOAD_MAX_VDEV
+ccflags-y += -DCFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_BMISS_OFFLOAD_MAX_VDEV)
+endif
+
 ifdef CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV
 ccflags-y += -DCFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV=$(CONFIG_CFG_ROAM_OFFLOAD_MAX_VDEV)
 endif

+ 3 - 1
core/mac/inc/wlan_tgt_def_config.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2014-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011, 2014-2021 The Linux Foundation. All rights reserved.
  *
  *
  *
@@ -126,7 +126,9 @@
 #define CFG_TGT_DEFAULT_SCAN_MAX_REQS   0x4
 
 /* maximum number of VDEV that could use BMISS offload */
+#ifndef CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV
 #define CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV   0x3
+#endif
 
 /* maximum number of VDEV offload Roaming to support */
 #ifndef CFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV

+ 3 - 1
core/mac/inc/wlan_tgt_def_config_hl.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -167,7 +167,9 @@
 #define CFG_TGT_DEFAULT_SCAN_MAX_HANDLERS   0x4
 
 /* maximum number of VDEV that could use BMISS offload */
+#ifndef CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV
 #define CFG_TGT_DEFAULT_BMISS_OFFLOAD_MAX_VDEV   0x2
+#endif
 
 /* maximum number of VDEV offload Roaming to support */
 #ifndef CFG_TGT_DEFAULT_ROAM_OFFLOAD_MAX_VDEV