Browse Source

qcacld-3.0: Configure pktlog buffer size from INI

Configure buffer size for packet log through INI

Change-Id: I8102aefbd154da9f8db7e9065ccb6d7da2d27e5e
CRs-Fixed: 2611411
Alok Kumar 5 years ago
parent
commit
66f247de8c
4 changed files with 9 additions and 2 deletions
  1. 2 0
      core/cds/src/cds_api.c
  2. 2 1
      core/dp/ol/inc/ol_cfg.h
  3. 2 1
      core/dp/txrx/ol_cfg.c
  4. 3 0
      core/dp/txrx/ol_txrx.c

+ 2 - 0
core/cds/src/cds_api.c

@@ -392,6 +392,8 @@ static void cds_cdp_cfg_attach(struct wlan_objmgr_psoc *psoc)
 		cfg_get(psoc, CFG_DP_FLOW_STEERING_ENABLED);
 	cdp_cfg.disable_intra_bss_fwd =
 		cfg_get(psoc, CFG_DP_AP_STA_SECURITY_SEPERATION);
+	cdp_cfg.pktlog_buffer_size =
+		cfg_get(psoc, CFG_DP_PKTLOG_BUFFER_SIZE);
 
 	cds_cdp_update_del_ack_params(psoc, &cdp_cfg);
 

+ 2 - 1
core/dp/ol/inc/ol_cfg.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2020 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
@@ -133,6 +133,7 @@ struct txrx_pdev_cfg_t {
 	uint16_t bundle_timer_value;
 	uint16_t bundle_size;
 #endif
+	uint8_t pktlog_buffer_size;
 };
 
 /**

+ 2 - 1
core/dp/txrx/ol_cfg.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2011-2020 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
@@ -208,6 +208,7 @@ struct cdp_cfg *ol_pdev_cfg_attach(qdf_device_t osdev, void *pcfg_param)
 		cfg_param->enable_data_stall_detection;
 	cfg_ctx->enable_flow_steering = cfg_param->enable_flow_steering;
 	cfg_ctx->disable_intra_bss_fwd = cfg_param->disable_intra_bss_fwd;
+	cfg_ctx->pktlog_buffer_size = cfg_param->pktlog_buffer_size;
 
 	ol_cfg_update_del_ack_params(cfg_ctx, cfg_param);
 

+ 3 - 0
core/dp/txrx/ol_txrx.c

@@ -5775,6 +5775,9 @@ static uint32_t ol_txrx_get_cfg(struct cdp_soc_t *soc_hdl, enum cdp_dp_cfg cfg)
 	case cfg_dp_disable_intra_bss_fwd:
 		value = cfg_ctx->disable_intra_bss_fwd;
 		break;
+	case cfg_dp_pktlog_buffer_size:
+		value = cfg_ctx->pktlog_buffer_size;
+		break;
 	default:
 		value =  0;
 		break;