mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-14 00:06:46 +00:00
mac80211: rt2x00: fix eeprom load from PCI eFuse
When eeprom name is not defined, the file load function should return an error code so that it can fallthrough to read eeprom form NIC inside eFuse. Fixes: https://github.com/openwrt/openwrt/issues/17854 Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/17892 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
40fc6bd5cc
commit
693108a318
@ -151,7 +151,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
|
||||
+ }
|
||||
+
|
||||
+ if (!ee_name)
|
||||
+ return 0;
|
||||
+ return -ENOENT;
|
||||
+
|
||||
+ rt2x00_info(rt2x00dev, "Loading EEPROM data from '%s'.\n", ee_name);
|
||||
+
|
||||
|
Loading…
x
Reference in New Issue
Block a user