]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iwlwifi: mvm: add TXOP to HE radiotap data
authorJohannes Berg <johannes.berg@intel.com>
Thu, 14 Jun 2018 12:54:38 +0000 (14:54 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 6 Oct 2018 07:25:47 +0000 (10:25 +0300)
We have this data available, so add it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index 647fa905ebba491c39fee2b00077b0f2ef9e5d5a..52709130cb0bf90edfad23d682fccd2b4a6eef19 100644 (file)
@@ -1010,6 +1010,11 @@ static void iwl_mvm_decode_he_phy_data(struct iwl_mvm *mvm,
                                                he_phy_data),
                                      IEEE80211_RADIOTAP_HE_DATA3_BSS_COLOR);
 
+       he->data2 |= cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_TXOP_KNOWN);
+       he->data6 |= le16_encode_bits(FIELD_GET(IWL_RX_HE_PHY_TXOP_DUR_MASK,
+                                               he_phy_data),
+                                     IEEE80211_RADIOTAP_HE_DATA6_TXOP);
+
        if (he_mu) {
                bool sigb_data;