Skip to contentSkip to conversation

ath10k: add new pdev parameters for fw 10.2

PATCH In review Peter Oh 2 participants 4 messages Nov 25, 2014 – Dec 2, 2014 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore

Peter Oh

author
#0 lore raw

PATCH 1/2 ath10k: add new pdev parameters for fw 10.2

New pdev paramters have been added to firmware 10.2, hence update wmi interfaces to sync with.

---
 drivers/net/wireless/ath/ath10k/wmi.h | 3 +++
 1 file changed, 3 insertions(+)
drivers/net/wireless/ath/ath10k/wmi.h +3 -0
index a38d788..8fa0192 100644
@@ -2707,6 +2707,9 @@ enum wmi_10x_pdev_param {
 	WMI_10X_PDEV_PARAM_SET_MCAST2UCAST_MODE,
 	WMI_10X_PDEV_PARAM_SET_MCAST2UCAST_BUFFER,
 	WMI_10X_PDEV_PARAM_REMOVE_MCAST2UCAST_BUFFER,
+	WMI_10X_PDEV_PEER_STA_PS_STATECHG_ENABLE,
+	WMI_10X_PDEV_PARAM_RTS_FIXED_RATE,
+	WMI_10X_PDEV_PARAM_CAL_PERIOD
 };
 
 struct wmi_pdev_set_param_cmd {
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 2/2 ath10k: add new wmi interface of NF cal period

Introduce a new wmi interface controls noise floor (NF) calibration period via debugfs as firmware has introduced it on v10.2.

It allows users to modify frequency of NF calibration in millisecond and changes RSSI reporting frequency consequently.
Short calibration period will trigger more frequent NF calibration, so that RSSI reported in receive frames is more realistic.

Till now calibration was done at 30 seconds.

---
 drivers/net/wireless/ath/ath10k/core.h  |  1 +
 drivers/net/wireless/ath/ath10k/debug.c | 64 +++++++++++++++++++++++++++++++++
 drivers/net/wireless/ath/ath10k/wmi.c   |  2 ++
 drivers/net/wireless/ath/ath10k/wmi.h   |  1 +
 4 files changed, 68 insertions(+)
drivers/net/wireless/ath/ath10k/core.h +1 -0
index 8f86bd3..5de988c 100644
@@ -320,6 +320,7 @@ struct ath10k_debug {
 	/* protected by conf_mutex */
 	u32 fw_dbglog_mask;
 	u32 pktlog_filter;
+	u32 fw_cal_period;
 
 	u8 htt_max_amsdu;
 	u8 htt_max_ampdu;
drivers/net/wireless/ath/ath10k/debug.c +64 -0

76 lines not on this page · raw message

drivers/net/wireless/ath/ath10k/wmi.c +2 -0
index c300a53..b144b39 100644
@@ -434,6 +434,7 @@ static struct wmi_pdev_param_map wmi_pdev_param_map = {
 	.fast_channel_reset = WMI_PDEV_PARAM_UNSUPPORTED,
 	.burst_dur = WMI_PDEV_PARAM_UNSUPPORTED,
 	.burst_enable = WMI_PDEV_PARAM_UNSUPPORTED,
+	.cal_period = WMI_PDEV_PARAM_UNSUPPORTED,
 };
 
 static struct wmi_pdev_param_map wmi_10x_pdev_param_map = {
@@ -486,6 +487,7 @@ static struct wmi_pdev_param_map wmi_10x_pdev_param_map = {
 	.fast_channel_reset = WMI_10X_PDEV_PARAM_FAST_CHANNEL_RESET,
 	.burst_dur = WMI_10X_PDEV_PARAM_BURST_DUR,
 	.burst_enable = WMI_10X_PDEV_PARAM_BURST_ENABLE,
+	.cal_period = WMI_10X_PDEV_PARAM_CAL_PERIOD,
 };
 
 /* firmware 10.2 specific mappings */
drivers/net/wireless/ath/ath10k/wmi.h +1 -0
index 8fa0192..fe35ba9 100644
@@ -2497,6 +2497,7 @@ struct wmi_pdev_param_map {
 	u32 fast_channel_reset;
 	u32 burst_dur;
 	u32 burst_enable;
+	u32 cal_period; /* valid period is 1 ~ 60000ms */
 };
 
 #define WMI_PDEV_PARAM_UNSUPPORTED 0
Signature · 1 line
1.9.1
#2 lore raw

Re: [PATCH 2/2] ath10k: add new wmi interface of NF cal period

Quoted 11 lines · Peter Oh

Introduce a new wmi interface controls noise floor (NF) calibration period via debugfs as firmware has introduced it on v10.2.

It allows users to modify frequency of NF calibration in millisecond and changes RSSI reporting frequency consequently.
Short calibration period will trigger more frequent NF calibration, so that RSSI reported in receive frames is more realistic.

Till now calibration was done at 30 seconds.

There was a trivial conflict in struct ath10k_debug, please double check my conflict resolution:

https://github.com/kvalo/ath/commit/1abcc1aa6046231a55a296ea78ab2f374f6f791b

Signature · 1 line
Kalle Valo
#3 lore raw

Re: [PATCH 2/2] ath10k: add new wmi interface of NF cal period

In reply to Peter Oh
Quoted 11 lines · Peter Oh

Introduce a new wmi interface controls noise floor (NF) calibration period via debugfs as firmware has introduced it on v10.2.

It allows users to modify frequency of NF calibration in millisecond and changes RSSI reporting frequency consequently.
Short calibration period will trigger more frequent NF calibration, so that RSSI reported in receive frames is more realistic.

Till now calibration was done at 30 seconds.

This doesn't handle firmware retstarts in any way, let me send v2 to fix that.

Signature · 1 line
Kalle Valo