developer | 43c9ed9 | 2022-07-12 14:14:04 +0800 | [diff] [blame^] | 1 | From 80aa4b19b576f29b2bc1ecb615f001863d5b2bba Mon Sep 17 00:00:00 2001 |
| 2 | From: Sujuan Chen <sujuan.chen@mediatek.com> |
| 3 | Date: Tue, 12 Jul 2022 13:56:07 +0800 |
| 4 | Subject: [PATCH] mt76 mt7915 initialize wcid |
| 5 | |
| 6 | Signed-off-by: Sujuan Chen <sujuan.chen@mediatek.com> |
| 7 | --- |
| 8 | mt7915/mac.c | 2 +- |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 10 | |
| 11 | diff --git a/mt7915/mac.c b/mt7915/mac.c |
| 12 | index 55b38d1..0310ca7 100755 |
| 13 | --- a/mt7915/mac.c |
| 14 | +++ b/mt7915/mac.c |
| 15 | @@ -974,7 +974,7 @@ mt7915_mac_tx_free(struct mt7915_dev *dev, void *data, int len) |
| 16 | * 1'b0: msdu_id with the same 'wcid pair' as above. |
| 17 | */ |
| 18 | if (info & MT_TX_FREE_PAIR) { |
| 19 | - struct mt76_wcid *wcid; |
| 20 | + struct mt76_wcid *wcid = NULL; |
| 21 | u16 idx; |
| 22 | |
| 23 | idx = FIELD_GET(MT_TX_FREE_WLAN_ID, info); |
| 24 | -- |
| 25 | 2.18.0 |
| 26 | |