Deren WuandFelix Fietkau adf9042b6f wifi: mt76: fix coverity uninit_use_in_call in mt76_connac2_reverse_frag0_hdr_trans()
The default case for frame_contorl is invalid. We should always
assign addr3 of this frame properly.

Coverity error message:
if (ieee80211_has_a4(hdr.frame_control))
(19) Event uninit_use_in_call:	Using uninitialized value "hdr".
Field "hdr.addr3" is uninitialized when calling "memcpy".
	memcpy(skb_push(skb, sizeof(hdr)), &hdr, sizeof(hdr));
else
	memcpy(skb_push(skb, sizeof(hdr) - 6), &hdr, sizeof(hdr) - 6);

Fixes: 0880d40871d1 ("mt76: connac: move mt76_connac2_reverse_frag0_hdr_trans in mt76-connac module")
Signed-off-by: Deren Wu <[email protected]>
Signed-off-by: Felix Fietkau <[email protected]>
2022-12-10 13:11:05 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2021-04-14 09:12:11 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2021-04-17 11:19:58 +02:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2022-12-10 13:11:04 +01:00
2020-06-16 22:05:14 +02:00
2022-12-10 13:11:04 +01:00
2019-08-22 09:26:30 +02:00
2022-12-10 13:11:04 +01:00
S
Description
mac80211 driver for MediaTek MT76x0e, MT76x2e, MT7603, MT7615, MT7628 and MT7688
BSD-3-Clause
105 MiB
Languages
C 99.7%
Perl 0.2%
Makefile 0.1%