wl1251: don't require NVS data when EEPROM is used
PATCH 1/1 wl1251: don't require NVS data when EEPROM is used
If EEPROM is used, NVS data is now loaded but ignored.
Stop loading it to avoid need of dummy NVS file for modules with EEPROM.
Signed-off-by Grazvydas Ignotas <[email protected]>
--- drivers/net/wireless/wl12xx/wl1251_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/wl12xx/wl1251_main.c +2 -2
@@ -202,8 +202,8 @@ static int wl1251_chip_wakeup(struct wl1251 *wl) goto out; } -/* No NVS from netlink, try to get it from the filesystem */ -if (wl->nvs ==NULL ) { +if (wl->nvs ==NULL && !wl->use_eeprom) { +/* No NVS from netlink, try to get it from the filesystem */ ret =wl1251_fetch_nvs (wl);if (ret <0 ) goto out;
Signature · 1 line
1.6.3.3
Quoted 4 lines · Grazvydas Ignotas
If EEPROM is used, NVS data is now loaded but ignored.
Stop loading it to avoid need of dummy NVS file for modules with EEPROM.Signed-off-by Grazvydas Ignotas <[email protected]>
Acked-by Kalle Valo <[email protected]>
Thanks a lot for the patch.
Signature · 1 line
Kalle Valo