Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp647862ybl; Thu, 22 Aug 2019 02:42:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7rY7krF+MAW1OUKH8vwV2FriQS/1GVpy8HeCFmRUuIva/MhMhHVU0KQ9D1S8oPhn9qZpt X-Received: by 2002:a17:902:1122:: with SMTP id d31mr39229129pla.254.1566466920594; Thu, 22 Aug 2019 02:42:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566466920; cv=none; d=google.com; s=arc-20160816; b=QPRHnyX01bcIpCEy8tZPAVut4rKPm0u7KmZakuK6+snlBDckSr+rWxmnhzk1p29zTj 5/V7qIUMTo9ZiadLTmwjlC2u6d+HNN0Rx9WY7+wqnHEM9yIZMnDxT3WP3RAEiiUw+/84 hWSBGpHt0h4REBrbt/skoTVhT8NB9Xw0jpc+fiIiPs5VurSFq7E3TSb1mhzvNZ1A9mYY S5LJbbGW1WmF03dh4WBokrw0mc9rfpuK4sloxYAPJpnY42RlrJ6WWG0Pba+rHP6Hth6M 2DkPDKyo26pTf6TAwXhy1jObZcwqUE6FB/BWzEhMBRImjEvVRVwb3eAMy3jfger3WCg7 1h+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=eGWDiMsmzMnH8naBfU6xquaGySQrqEM70W+4s1cFeiI=; b=L5/CoNMUI/VM8HYycYXwFTyvNEsjzR7UO1UpyPWxYECRWC2bLJNUl9rTCJxPSIV2AM QBvb4E8RJ29iDm1y19L+ONkCwIGTB7mhzdg+2oHO8KDle+jGlTzZl6sbmDL1KhcL4Yn7 oX6QlKtufTVJDY7n8Cp2IRh1/fCvu4sHpWjKUaKaD72YfV/75n6LQNXEvzTSTreMLbWA FafDTxoLIDKYqXKmUHMy4haDA8kDqaXSxYuzSfkpQM8VIzAlyiRvlBv1u/WGpD0fvHLV 1L5aCP0A9jmMI0dqO2nDj61IE/BXKKW86SaQBaJW0j+4YVRiag8LlciMisQXyl0uMhDv Pwtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=irsq7RzR; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si1996514pjn.71.2019.08.22.02.41.45; Thu, 22 Aug 2019 02:42:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=irsq7RzR; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732467AbfHVIgZ (ORCPT + 99 others); Thu, 22 Aug 2019 04:36:25 -0400 Received: from nbd.name ([46.4.11.11]:50900 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731266AbfHVIgZ (ORCPT ); Thu, 22 Aug 2019 04:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eGWDiMsmzMnH8naBfU6xquaGySQrqEM70W+4s1cFeiI=; b=irsq7RzRSPT0B2W4V7d1GIBcLW 6zGz/gD7lPXZe2oNlqhklQsLa/UUsQ+MZYNCALPTdiYTlDbGO5QamFGPwkl8xjyuifliJkxAwdZSW CtANUlSMUB1uo7rKLdo2tQwoJfITeuvH9FQywYTxuBicuTFDxGRtJBj23vb35jBA3r2E=; Received: from p54ae9443.dip0.t-ipconnect.de ([84.174.148.67] helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i0iZz-0004vP-2K; Thu, 22 Aug 2019 10:36:23 +0200 Received: by maeck.local (Postfix, from userid 501) id 92BAE63FDE30; Thu, 22 Aug 2019 10:36:22 +0200 (CEST) From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: Balakrishna Bandi Subject: [PATCH 1/2] mt76: do not send BAR frame on tx aggregation flush stop Date: Thu, 22 Aug 2019 10:36:21 +0200 Message-Id: <20190822083622.48998-1-nbd@nbd.name> X-Mailer: git-send-email 2.17.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org There is no need to send a BAR frame after stopping aggregation, and doing so could lead to sending class 3 frames after deauthentication from an AP Signed-off-by: Balakrishna Bandi Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/main.c | 1 - drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 - drivers/net/wireless/mediatek/mt76/mt76x02_util.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/main.c b/drivers/net/wireless/mediatek/mt76/mt7603/main.c index e35c1e4da7ea..25d5b1608bc9 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/main.c @@ -578,7 +578,6 @@ mt7603_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, case IEEE80211_AMPDU_TX_STOP_FLUSH: case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: mtxq->aggr = false; - ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn); mt7603_mac_tx_ba_reset(dev, msta->wcid.idx, tid, -1); break; case IEEE80211_AMPDU_TX_START: diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/net/wireless/mediatek/mt76/mt7615/main.c index e2a84f717051..87c748715b5d 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c @@ -473,7 +473,6 @@ mt7615_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, case IEEE80211_AMPDU_TX_STOP_FLUSH: case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: mtxq->aggr = false; - ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn); mt7615_mcu_set_tx_ba(dev, params, 0); break; case IEEE80211_AMPDU_TX_START: diff --git a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c index dbd9d99225ff..aec73a0295e8 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76x02_util.c +++ b/drivers/net/wireless/mediatek/mt76/mt76x02_util.c @@ -390,7 +390,6 @@ int mt76x02_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, case IEEE80211_AMPDU_TX_STOP_FLUSH: case IEEE80211_AMPDU_TX_STOP_FLUSH_CONT: mtxq->aggr = false; - ieee80211_send_bar(vif, sta->addr, tid, mtxq->agg_ssn); break; case IEEE80211_AMPDU_TX_START: mtxq->agg_ssn = IEEE80211_SN_TO_SEQ(ssn); -- 2.17.0