瀏覽代碼

qcacld-3.0: Change CFG_STA_BSS_MAX_IDLE_PERIOD to configurable

The item "bss_max_idle_period" is not an ini item and we can only
use it's default value 0. It's not convenient to set it a value
that user required. So set it to an ini item.

Change-Id: Ie514992448cde192ffd6f1402a4477fabbbae741
CRs-Fixed: 3591728
Guisen Yang 1 年之前
父節點
當前提交
897bca02be
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      components/mlme/core/src/wlan_mlme_main.c
  2. 1 1
      components/mlme/dispatcher/inc/cfg_mlme_sta.h

+ 1 - 1
components/mlme/core/src/wlan_mlme_main.c

@@ -2648,7 +2648,7 @@ static void mlme_init_sta_cfg(struct wlan_objmgr_psoc *psoc,
 	sta->sta_keep_alive_period =
 		cfg_get(psoc, CFG_INFRA_STA_KEEP_ALIVE_PERIOD);
 	sta->bss_max_idle_period =
-		(uint32_t)cfg_default(CFG_STA_BSS_MAX_IDLE_PERIOD);
+		cfg_get(psoc, CFG_STA_BSS_MAX_IDLE_PERIOD);
 	sta->tgt_gtx_usr_cfg =
 		cfg_get(psoc, CFG_TGT_GTX_USR_CFG);
 	sta->pmkid_modes =

+ 1 - 1
components/mlme/dispatcher/inc/cfg_mlme_sta.h

@@ -99,7 +99,7 @@
  * Usage: Internal
  *
  */
-#define CFG_STA_BSS_MAX_IDLE_PERIOD CFG_UINT( \
+#define CFG_STA_BSS_MAX_IDLE_PERIOD CFG_INI_UINT( \
 	"bss_max_idle_period", \
 	0, \
 	100, \