Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2420249pxj; Mon, 10 May 2021 02:28:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF+TW2VHcUq8swACIRWadlFaaT9vWQ9pTyPSG1RTD1EkcOFwbAvfQv4H4qjvn5hLRbX7IU X-Received: by 2002:a50:eb82:: with SMTP id y2mr28376927edr.190.1620638935486; Mon, 10 May 2021 02:28:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620638935; cv=none; d=google.com; s=arc-20160816; b=yykh+i8SKO67sqvRE8HWQwSUSWv+4Q3LGuY9yNkau+RR/u3SvvGw+uD121Cdsp9Lqt dhFGHeHqP2WYI+wGaS0bTM7uExnW3RuXIHW4HStAqS9ij52lT6d+GJO9Ih9B0bGe8+SK jpN3LC/hqZf6JZWpSudnowJZnE7wAZ+JkoUBrUNIqSU6BmkLts5TLLhhSHn2sqMbOf6q tZircnBd2fGGx/nyNZ8ktBJTFROEClK/kYNIiCv7syI+AQfvyWjhOBHnyp51iLsA8z7A FJzZowtO/LKCnJXiH96NYgN/Kn+Zp3707o8bkPkDrFsBXTVEAZtMwiNG4B1c4aG/s2bF /MzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=OILi+V6KzB0YSP9YDvZYkSHrmFWwyfHivr0Da+onp04=; b=tgCy9roc1qc5mg0aJx2vSoxUbrBpaLado958CZZ/KX8938rBU5CNdHLEo+QhXMhjGg vhC9blqKoPC/PsuLEa3SwnGciF2DOzvIJP7drfiREpJf/+hCX5UPba+DU/poHsvbDYwN AhZJvUu/XWphOdkpa6pHYmIL9lEaFNGrrRiSBGMmYf+6CZXLl9QK4bY2DOsMf8ynwAOO xfoViA3jkN+ltRSN0LWp7ei6kmMVDnn/F6bYd2nYupOqRFpsJLRLUyA18HBLg3AC3R0A If056vNvkNfE/1eDgPhyZjyBdcjSFmR4v93StpFTdNpJTtlWPKztnAw8DWOa27bZ7Jg/ sfMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=QLHKxxHO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si13057006ejt.69.2021.05.10.02.28.32; Mon, 10 May 2021 02:28:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=QLHKxxHO; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbhEJJ2N (ORCPT + 99 others); Mon, 10 May 2021 05:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230170AbhEJJ2M (ORCPT ); Mon, 10 May 2021 05:28:12 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31630C061763 for ; Mon, 10 May 2021 02:27:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=OILi+V6KzB0YSP9YDvZYkSHrmFWwyfHivr0Da+onp04=; b=QLHKxxHOtSZYyYLzeYtOX1J3NQ 4ZgyKWJYQDnXcDbIU5lOwOgg/PgcfdJKSqTcsyTfh0NLIneFCzJfjTVxp1MqdCPhfcuZSzK7TYb4S 0mvqhqSUueeNc6ldHXmD1mh/N2XM9dqcG85ePgP1vuf0iKRGTgb8WNeWiKdnLKt/xRt8=; Received: from p54ae9ff2.dip0.t-ipconnect.de ([84.174.159.242] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1lg2Bt-000572-RE for linux-wireless@vger.kernel.org; Mon, 10 May 2021 11:27:05 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 4/9] mt76: mt7603: avoid use of ieee80211_tx_info_clear_status Date: Mon, 10 May 2021 11:26:58 +0200 Message-Id: <20210510092703.90500-4-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210510092703.90500-1-nbd@nbd.name> References: <20210510092703.90500-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org It overwrites mt76_tx_cb data in the skb Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/mac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c index fbceb07c5f37..4e76f9868b9b 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mac.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mac.c @@ -1213,7 +1213,7 @@ mt7603_mac_add_txs_skb(struct mt7603_dev *dev, struct mt7603_sta *sta, int pid, struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); if (!mt7603_fill_txs(dev, sta, info, txs_data)) { - ieee80211_tx_info_clear_status(info); + info->status.rates[0].count = 0; info->status.rates[0].idx = -1; } -- 2.30.1