OSDN Git Service

iwlwifi: mvm: move he RX handling to a separate function
authorSara Sharon <sara.sharon@intel.com>
Mon, 9 Apr 2018 08:20:09 +0000 (11:20 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Aug 2018 08:38:22 +0000 (11:38 +0300)
The HE code is bloating the RX handling, and makes it too big.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c

index 968f1c3..a5e3a47 100644 (file)
@@ -1028,7 +1028,7 @@ static void iwl_mvm_rx_he(struct iwl_mvm *mvm, struct sk_buff *skb,
                if (he_phy_data & IWL_RX_HE_PHY_RU_ALLOC_SEC80)
                        he->data2 |=
                                cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA2_PRISEC_80_SEC);
-       } else if (he) {
+       } else {
                he->data1 |=
                        cpu_to_le16(IEEE80211_RADIOTAP_HE_DATA1_BW_RU_ALLOC_KNOWN);
        }