Skip to contentSkip to conversation

ath10k : Fix channel survey dump

PATCH In review Venkateswara Naralasetty 4 participants 4 messages Jul 31, 2018 – Aug 1, 2018 Qualcomm Atheros ATH10K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ath10k : Fix channel survey dump

Channel active/busy time are showing incorrect(less than previous or sometimes zero) for successive survey dump command.

example:
Survey data from wlan0

	frequency:                      5180 MHz [in use]
	channel active time:            54995 ms
	channel busy time:              432 ms
	channel receive time:           0 ms
	channel transmit time:          59 ms
Survey data from wlan0
	frequency:                      5180 MHz [in use]
	channel active time:            32592 ms
	channel busy time:              254 ms
	channel receive time:           0 ms
	channel transmit time:          0 ms

This patch fix this issue by assigning 'wmi_bss_survey_req_type' as 'WMI_BSS_SURVEY_REQ_TYPE_READ' which accumulate survey data in FW and send survey data to driver upon the driver request. Wrap around is taken care by FW.

hardware used : QCA9984
firmware ver : ver 10.4-3.5.3-00057

---
v2:
* updated commit log.

 drivers/net/wireless/ath/ath10k/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/mac.c +1 -1
index f068e2b..db93ab1 100644
@@ -6837,7 +6837,7 @@ ath10k_mac_update_bss_chan_survey(struct ath10k *ar,
 				  struct ieee80211_channel *channel)
 {
 	int ret;
-	enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR;
+	enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ;
 
 	lockdep_assert_held(&ar->conf_mutex);
 
Signature · 7 lines
2.7.4


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#1 lore raw
Quoted 17 lines · Venkateswara Naralasetty

Channel active/busy time are showing incorrect(less than previous or sometimes zero) for successive survey dump command.

example:
Survey data from wlan0

	frequency:                      5180 MHz [in use]
	channel active time:            54995 ms
	channel busy time:              432 ms
	channel receive time:           0 ms
	channel transmit time:          59 ms
Survey data from wlan0
	frequency:                      5180 MHz [in use]
	channel active time:            32592 ms
	channel busy time:              254 ms
	channel receive time:           0 ms
	channel transmit time:          0 ms
Quoted 7 lines

This patch fix this issue by assigning 'wmi_bss_survey_req_type' as 'WMI_BSS_SURVEY_REQ_TYPE_READ' which accumulate survey data in FW and send survey data to driver upon the driver request. Wrap around is taken care by FW.

hardware used : QCA9984
firmware ver : ver 10.4-3.5.3-00057

Have you tested this on other firmwares? I am pretty sure that at least some of them, probably 10.2, will have issues.

Maybe you could make this change specific to certain firmware that is known to work with the change?

Thanks,
Ben

Quoted 23 lines

---
v2:
* updated commit log.

 drivers/net/wireless/ath/ath10k/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/mac.c +1 -1
index f068e2b..db93ab1 100644
@@ -6837,7 +6837,7 @@ ath10k_mac_update_bss_chan_survey(struct ath10k *ar,
 				  struct ieee80211_channel *channel)
 {
 	int ret;
-	enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR;
+	enum wmi_bss_survey_req_type type = WMI_BSS_SURVEY_REQ_TYPE_READ;
 
 	lockdep_assert_held(&ar->conf_mutex);
 
Signature · 8 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com


_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k
#2 lore raw
Quoted 23 lines · Ben Greear
Quoted 22 lines · Venkateswara Naralasetty

Channel active/busy time are showing incorrect(less than previous or sometimes zero) for successive survey dump command.

example:
Survey data from wlan0

      frequency:                      5180 MHz [in use]
      channel active time:            54995 ms
      channel busy time:              432 ms
      channel receive time:           0 ms
      channel transmit time:          59 ms
Survey data from wlan0
      frequency:                      5180 MHz [in use]
      channel active time:            32592 ms
      channel busy time:              254 ms
      channel receive time:           0 ms
      channel transmit time:          0 ms

This patch fix this issue by assigning 'wmi_bss_survey_req_type' as 'WMI_BSS_SURVEY_REQ_TYPE_READ' which accumulate survey data in FW and send survey data to driver upon the driver request. Wrap around is taken care by FW.

Quoted 10 lines
Quoted 2 lines

hardware used : QCA9984
firmware ver : ver 10.4-3.5.3-00057

Have you tested this on other firmwares? I am pretty sure that at least some of them, probably 10.2, will have issues.

Maybe you could make this change specific to certain firmware that is known to work with the change?

There are bigger problems with it than that; even with firmwares that behave correctly,
this changes the behavior that a lot of upper-layer software depends upon, and will likely
make anything that actually uses the channel survey data misbehave.

It is therefore a breaking change for any device that actually implements ACS.

-J.

#3 lore raw
In reply to Ben Greear
Quoted 32 lines

-----Original Message-----
From: ath10k <[email protected]> On Behalf Of Ben Greear
Sent: Tuesday, July 31, 2018 11:08 PM
To: Venkateswara Naralasetty <[email protected]>; [email protected]
Cc: [email protected]
Subject: Re: [PATCHv2] ath10k : Fix channel survey dump

Quoted 17 lines · Venkateswara Naralasetty

Channel active/busy time are showing incorrect(less than previous or sometimes zero) for successive survey dump command.

example:
Survey data from wlan0

	frequency:                      5180 MHz [in use]
	channel active time:            54995 ms
	channel busy time:              432 ms
	channel receive time:           0 ms
	channel transmit time:          59 ms
Survey data from wlan0
	frequency:                      5180 MHz [in use]
	channel active time:            32592 ms
	channel busy time:              254 ms
	channel receive time:           0 ms
	channel transmit time:          0 ms
Quoted 2 lines

This patch fix this issue by assigning 'wmi_bss_survey_req_type' as 'WMI_BSS_SURVEY_REQ_TYPE_READ' which accumulate survey data in

FW

Quoted 9 lines
Quoted 5 lines

and send survey data to driver upon the driver request. Wrap around is taken care by FW.

hardware used : QCA9984
firmware ver : ver 10.4-3.5.3-00057

Have you tested this on other firmwares? I am pretty sure that at least some of them, probably 10.2, will have issues.

I have tested this change with firmware version 10.2.4-1.0-00036 (hw used QCA988x) as well it's working fine for me without any issues.

Quoted 39 lines

Maybe you could make this change specific to certain firmware that is known to work with the change?

Thanks,
Ben

drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_update_bss_chan_survey(struct

Quoted 15 lines

---
v2:
* updated commit log.

 drivers/net/wireless/ath/ath10k/mac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath10k/mac.c +0 -0
index f068e2b..db93ab1 100644
@@ -6837,7 +6837,7 @@ ath10k_mac_update_bss_chan_survey(struct

ath10k *ar,

drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_update_bss_chan_survey(struct · line 6839

Quoted 3 lines
drivers/net/wireless/ath/ath10k/mac.c +0 -1
 				  struct ieee80211_channel *channel)  {
 	int ret;
-	enum wmi_bss_survey_req_type type =

WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR;

drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_update_bss_chan_survey(struct · line 6839

Quoted 1 line
drivers/net/wireless/ath/ath10k/mac.c +1 -0
+	enum wmi_bss_survey_req_type type =

WMI_BSS_SURVEY_REQ_TYPE_READ;

drivers/net/wireless/ath/ath10k/mac.c ath10k_mac_update_bss_chan_survey(struct ath10k *ar,

Quoted 4 lines
drivers/net/wireless/ath/ath10k/mac.c +0 -0
 	lockdep_assert_held(&ar->conf_mutex);
 
 

--
Ben Greear <[email protected]>
Candela Technologies Inc http://www.candelatech.com

Quoted 4 lines

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k

_______________________________________________
ath10k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath10k