Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66f247de authored by Alok Kumar's avatar Alok Kumar Committed by nshrivas
Browse files

qcacld-3.0: Configure pktlog buffer size from INI

Configure buffer size for packet log through INI

Change-Id: I8102aefbd154da9f8db7e9065ccb6d7da2d27e5e
CRs-Fixed: 2611411
parent fa348d69
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
/*
 * 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
Original line number Diff line number Diff line
/*
 * 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
Original line number Diff line number Diff line
@@ -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;