iwlwifi: mvm: report RU offset is known
authorJohannes Berg <johannes.berg@intel.com>
Wed, 23 May 2018 08:56:55 +0000 (10:56 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 28 Sep 2018 05:57:22 +0000 (08:57 +0300)
We already report the RU offset, so we'd better also
report that we know the value.

Fixes: e5721e3f770f ("iwlwifi: mvm: add radiotap data for HE")
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 4400e69a39b6ca229f627d530906b8537c51399d..89b4b882ef80c9499482841d8f2794db17cde611 100644 (file)
@@ -1102,7 +1102,8 @@ static void iwl_mvm_rx_he(struct iwl_mvm *mvm, struct sk_buff *skb,
                        le16_encode_bits(offs,
                                         IEEE80211_RADIOTAP_HE_DATA2_RU_OFFSET);
                he->data2 |=
-                       cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_KNOWN);
+                       cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_KNOWN |
+                                   IEEE80211_RADIOTAP_HE_DATA2_RU_OFFSET_KNOWN);
                if (he_phy_data & IWL_RX_HE_PHY_RU_ALLOC_SEC80)
                        he->data2 |=
                                cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_SEC);