From patchwork Tue Aug 27 09:29:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felix Fietkau X-Patchwork-Id: 823092 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DE16A155393 for ; Tue, 27 Aug 2024 09:30:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.4.11.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724751025; cv=none; b=GClsYwedrf/sRG3Xyy5Iejta/SR0Eo+pFaAjI/Yur6cLGBMHzY0Iky2NgPM1144nCMY+YiPTVl6hkPCvjJH+FajpyDWYHIT8S3GEo7/RquPUsizvLn3bTFOoD8y84TknYYGMHLqkZC4CIzQEALdBUDJHV5EInkBc181q10btOZs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724751025; c=relaxed/simple; bh=p2vK/pi06BNVepl5KJ2qF2TtIiXvZvZ2y/fhbMfWuPQ=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=p8qYvNpcwd3LsWalUs7BBCK5xieYYUYP1QP3M8UH0rlUj6whYMnCyrEHxgLdPiKxZgLrxfxAn7sYF+ccTg0ytdOAgu+67VbojeqxytDDJC7uHh6T7pTF/tPM+bBhxtPxuKta8XZPEKTk9+t/GJwzQz70bWrkcAKyQq7kl9wrHp0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name; spf=none smtp.mailfrom=nbd.name; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b=H796RQr5; arc=none smtp.client-ip=46.4.11.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nbd.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=nbd.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nbd.name header.i=@nbd.name header.b="H796RQr5" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version: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: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=KRMJ5fal6qxMs8PKHi/G23F5GG7ThkgbC80X6ni8c3U=; b=H796RQr5KcjcXjxpZZdC/U9Jw+ CZ/Mfg8U7sAk7spFpUB+dFKTcz9wfz6/SaxfS+ZKx45TbDGMPQjU+ciYMJ3bGbQepo/FvkA++yHyp Wuo2KvmYyqbwkWxHcVjPjVwQSII/r1D7ZiK0LOgiFoHh2m/3RSbCdbIFT1YPYndSTEWo=; Received: from p57a6f9a5.dip0.t-ipconnect.de ([87.166.249.165] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (Exim 4.96) (envelope-from ) id 1sisWj-004Ww8-1g for linux-wireless@vger.kernel.org; Tue, 27 Aug 2024 11:30:13 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH v2 01/24] mt76: mt7603: fix mixed declarations and code Date: Tue, 27 Aug 2024 11:29:48 +0200 Message-ID: <20240827093011.18621-1-nbd@nbd.name> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Move the qid variable declaration further up Fixes: b473c0e47f04 ("wifi: mt76: mt7603: fix tx queue of loopback packets") Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/dma.c b/drivers/net/wireless/mediatek/mt76/mt7603/dma.c index ea017f22fff2..863e5770df51 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/dma.c @@ -29,7 +29,7 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb) struct ieee80211_sta *sta; struct mt7603_sta *msta; struct mt76_wcid *wcid; - u8 tid = 0, hwq = 0; + u8 qid, tid = 0, hwq = 0; void *priv; int idx; u32 val; @@ -57,7 +57,7 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb) if (ieee80211_is_data_qos(hdr->frame_control)) { tid = *ieee80211_get_qos_ctl(hdr) & IEEE80211_QOS_CTL_TAG1D_MASK; - u8 qid = tid_to_ac[tid]; + qid = tid_to_ac[tid]; hwq = wmm_queue_map[qid]; skb_set_queue_mapping(skb, qid); } else if (ieee80211_is_data(hdr->frame_control)) {