Created
July 5, 2017 14:47
-
-
Save levex/73e65dc0f9aade6d8cdac8107a5189ac to your computer and use it in GitHub Desktop.
Embedded shenanigans: fallback to default settings if no firmware is found in wl18xx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c | |
index 717c4f5..16f2736 100644 | |
--- a/drivers/net/wireless/ti/wl18xx/main.c | |
+++ b/drivers/net/wireless/ti/wl18xx/main.c | |
@@ -1369,7 +1369,7 @@ static int wl18xx_conf_init(struct wl1271 *wl, struct device *dev) | |
wl1271_error("configuration binary file size is wrong, expected %zu got %zu", | |
WL18XX_CONF_SIZE, fw->size); | |
ret = -EINVAL; | |
- goto out; | |
+ goto out_fallback; | |
} | |
conf_file = (struct wlcore_conf_file *) fw->data; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment