From f06ed811cda67ab2ed9932c3e87ba03229e75f4e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 17 Jun 2016 14:44:12 +0200 Subject: [PATCH] mt76x2: handle peer in dynamic SMPS mode Signed-off-by: Felix Fietkau --- mt76x2_mac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mt76x2_mac.c b/mt76x2_mac.c index 852a0479..346d4355 100644 --- a/mt76x2_mac.c +++ b/mt76x2_mac.c @@ -189,6 +189,8 @@ void mt76x2_mac_write_txwi(struct mt76x2_dev *dev, struct mt76x2_txwi *txwi, txwi->rate |= cpu_to_le16(MT_RXWI_RATE_LDPC); if ((info->flags & IEEE80211_TX_CTL_STBC) && nss == 1) txwi->rate |= cpu_to_le16(MT_RXWI_RATE_STBC); + if (nss > 1 && sta && sta->smps_mode == IEEE80211_SMPS_DYNAMIC) + txwi_flags |= MT_TXWI_FLAGS_MMPS; if (!(info->flags & IEEE80211_TX_CTL_NO_ACK)) txwi->ack_ctl |= MT_TXWI_ACK_CTL_REQ; if (info->flags & IEEE80211_TX_CTL_ASSIGN_SEQ)