Skip to content

Commit 9b8d932

Browse files
committed
wifi: mt76: mt7603: fix mixed declarations and code
Move the qid variable declaration further up Fixes: b473c0e ("wifi: mt76: mt7603: fix tx queue of loopback packets") Link: https://patch.msgid.link/20240827093011.18621-1-nbd@nbd.name Signed-off-by: Felix Fietkau <nbd@nbd.name>
1 parent a04b920 commit 9b8d932

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/mediatek/mt76/mt7603

1 file changed

+2
-2
lines changed

drivers/net/wireless/mediatek/mt76/mt7603/dma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
2929
struct ieee80211_sta *sta;
3030
struct mt7603_sta *msta;
3131
struct mt76_wcid *wcid;
32-
u8 tid = 0, hwq = 0;
32+
u8 qid, tid = 0, hwq = 0;
3333
void *priv;
3434
int idx;
3535
u32 val;
@@ -57,7 +57,7 @@ mt7603_rx_loopback_skb(struct mt7603_dev *dev, struct sk_buff *skb)
5757
if (ieee80211_is_data_qos(hdr->frame_control)) {
5858
tid = *ieee80211_get_qos_ctl(hdr) &
5959
IEEE80211_QOS_CTL_TAG1D_MASK;
60-
u8 qid = tid_to_ac[tid];
60+
qid = tid_to_ac[tid];
6161
hwq = wmm_queue_map[qid];
6262
skb_set_queue_mapping(skb, qid);
6363
} else if (ieee80211_is_data(hdr->frame_control)) {

0 commit comments

Comments
 (0)