projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5c6bc6
)
wifi: mt76: do not send firmware FW_FEATURE_NON_DL region
author
Deren Wu
<deren.wu@mediatek.com>
Thu, 24 Nov 2022 14:20:38 +0000
(22:20 +0800)
committer
Felix Fietkau
<nbd@nbd.name>
Thu, 1 Dec 2022 16:29:14 +0000
(17:29 +0100)
skip invalid section to avoid potential risks
Fixes:
23bdc5d8cadf
("wifi: mt76: mt7921: introduce Country Location Control support")
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
b/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
index
96d9123
..
5a047e6
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
+++ b/
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c
@@
-2906,6
+2906,9
@@
mt76_connac_mcu_send_ram_firmware(struct mt76_dev *dev,
len = le32_to_cpu(region->len);
addr = le32_to_cpu(region->addr);
+ if (region->feature_set & FW_FEATURE_NON_DL)
+ goto next;
+
if (region->feature_set & FW_FEATURE_OVERRIDE_ADDR)
override = addr;
@@
-2922,6
+2925,7
@@
mt76_connac_mcu_send_ram_firmware(struct mt76_dev *dev,
return err;
}
+next:
offset += len;
}