]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
iwlwifi: mvm: simplify bufferable MMPDU check
authorJohannes Berg <johannes.berg@intel.com>
Tue, 20 Jun 2017 09:22:07 +0000 (11:22 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 1 Aug 2017 09:41:45 +0000 (12:41 +0300)
There's no need to spell out the cases when we can just
use ieee80211_is_bufferable_mmpdu().

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

index a2e0acc23adc1c2546884df5357078e1c3c45942..b8373923cfa9171cc073628430efa4de3f6cf122 100644 (file)
@@ -816,9 +816,7 @@ static void iwl_mvm_mac_tx(struct ieee80211_hw *hw,
        /* treat non-bufferable MMPDUs as broadcast if sta is sleeping */
        if (unlikely(info->flags & IEEE80211_TX_CTL_NO_PS_BUFFER &&
                     ieee80211_is_mgmt(hdr->frame_control) &&
-                    !ieee80211_is_deauth(hdr->frame_control) &&
-                    !ieee80211_is_disassoc(hdr->frame_control) &&
-                    !ieee80211_is_action(hdr->frame_control)))
+                    !ieee80211_is_bufferable_mmpdu(hdr->frame_control)))
                sta = NULL;
 
        if (sta) {