]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mt76: mt7615: fix PS buffering of action frames
authorFelix Fietkau <nbd@nbd.name>
Thu, 11 Jul 2019 19:32:00 +0000 (21:32 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 5 Sep 2019 15:42:29 +0000 (17:42 +0200)
Bufferable management frames need to be put in the data queue, otherwise
they will not be buffered when the receiver is asleep.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7615/mac.c

index 6c21b2df69c45c2fe184182317831ed4059c8a8b..fc98dabed594ff866256b629b73da4c0829e67b2 100644 (file)
@@ -334,7 +334,7 @@ int mt7615_mac_write_txwi(struct mt7615_dev *dev, __le32 *txwi,
        fc_type = (le16_to_cpu(fc) & IEEE80211_FCTL_FTYPE) >> 2;
        fc_stype = (le16_to_cpu(fc) & IEEE80211_FCTL_STYPE) >> 4;
 
-       if (ieee80211_is_data(fc)) {
+       if (ieee80211_is_data(fc) || ieee80211_is_bufferable_mmpdu(fc)) {
                q_idx = skb_get_queue_mapping(skb);
                p_fmt = MT_TX_TYPE_CT;
        } else if (ieee80211_is_beacon(fc)) {