summaryrefslogtreecommitdiff
path: root/recipes-kernel/linux/linux-3.12.70/mtr/linux-3.12-wl12xx-fix-boot-in-plt-mode.patch
blob: c6a40f9ce2999b1cee3b5f88a75fe860f3a7226f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c
index 1c627da..979aec9 100644
--- a/drivers/net/wireless/ti/wl12xx/main.c
+++ b/drivers/net/wireless/ti/wl12xx/main.c
@@ -1236,9 +1236,11 @@ static int wl12xx_boot(struct wl1271 *wl)
 	if (ret < 0)
 		goto out;
 
-	ret = wlcore_boot_upload_nvs(wl);
-	if (ret < 0)
-		goto out;
+	if (!wl->plt) {
+		ret = wlcore_boot_upload_nvs(wl);
+		if (ret < 0)
+			goto out;
+	}
 
 	ret = wl12xx_pre_upload(wl);
 	if (ret < 0)