ath11k: make sure to also report the RX bandwidth inside radiotap
authorJohn Crispin <john@phrozen.org>
Tue, 17 Dec 2019 20:20:57 +0000 (21:20 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 10:49:40 +0000 (12:49 +0200)
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.

Signed-off-by: John Crispin <john@phrozen.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath11k/dp_rx.c

index 3a3dc7680622216d160300405558d52676d60ad0..b08da839b7d98a8d85d26998624f6bdac459f2fc 100644 (file)
@@ -2067,7 +2067,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;