Skip to contentSkip to conversation

ath11k: make sure to also report the RX bandwidth inside radiotap

PATCH RESEND In review John Crispin 2 participants 3 messages Dec 17, 2019 – Jan 26, 2020 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ath11k: make sure to also report the RX bandwidth inside radiotap

Add IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN to the list of known fields. Not doing so will result in wireshark not calculating the bitrate correctly.

---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +2 -1
index 09edf0f05039..c4692cee3af4 100644
@@ -2348,7 +2348,8 @@ static void ath11k_dp_rx_deliver_msdu(struct ath11k *ar, struct napi_struct *nap
 				      struct sk_buff *msdu)
 {
 	static const struct ieee80211_radiotap_he known = {
-		.data1 = cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA1_DATA_MCS_KNOWN),
+		.data1 = cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA1_DATA_MCS_KNOWN |
+				     IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN),
 		.data2 = cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_GI_KNOWN),
 	};
 	struct ieee80211_rx_status *status;
Signature · 1 line
2.20.1
#1 lore raw
Quoted 6 lines · John Crispin

Add IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN to the list of known fields. Not doing so will result in wireshark not calculating the bitrate correctly.

Patch applied to ath-next branch of ath.git, thanks.

93634c61056e ath11k: make sure to also report the RX bandwidth inside radiotap

Signature · 8 lines
https://patchwork.kernel.org/patch/11298569/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#2 lore raw
In reply to John Crispin
Quoted 6 lines · John Crispin

Add IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN to the list of known fields. Not doing so will result in wireshark not calculating the bitrate correctly.

Patch applied to ath-next branch of ath.git, thanks.

93634c61056e ath11k: make sure to also report the RX bandwidth inside radiotap

Signature · 3 lines
https://patchwork.kernel.org/patch/11298569/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches