OSDN Git Service

wifi: mt76: fix switch default case in mt7996_reverse_frag0_hdr_trans
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 3 Jan 2023 13:56:19 +0000 (14:56 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 3 Feb 2023 13:47:16 +0000 (14:47 +0100)
commitaed8d9b506c22848add261ffad8fdabc57f21964
tree0f7bfbf9575e0f17c21f1167abac5dd90b949c04
parent2d5dce5a658a0c8bcd2837b7b5d3b2a973b4efb4
wifi: mt76: fix switch default case in mt7996_reverse_frag0_hdr_trans

The switch default case for frame_contorl is invalid. Return -EINVAL
error for it.

Fixes: 98686cd21624 ("wifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7996/mac.c