diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/testmode.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/testmode.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/testmode.c b/drivers/net/wireless/wl12xx/testmode.c index 6ec06a4a4c6d..da351d7cd1f2 100644 --- a/drivers/net/wireless/wl12xx/testmode.c +++ b/drivers/net/wireless/wl12xx/testmode.c | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | #include "wl12xx.h" | 28 | #include "wl12xx.h" |
29 | #include "acx.h" | 29 | #include "acx.h" |
30 | #include "reg.h" | ||
30 | 31 | ||
31 | #define WL1271_TM_MAX_DATA_LENGTH 1024 | 32 | #define WL1271_TM_MAX_DATA_LENGTH 1024 |
32 | 33 | ||
@@ -204,7 +205,10 @@ static int wl1271_tm_cmd_nvs_push(struct wl1271 *wl, struct nlattr *tb[]) | |||
204 | 205 | ||
205 | kfree(wl->nvs); | 206 | kfree(wl->nvs); |
206 | 207 | ||
207 | if (len != sizeof(struct wl1271_nvs_file)) | 208 | if ((wl->chip.id == CHIP_ID_1283_PG20) && |
209 | (len != sizeof(struct wl128x_nvs_file))) | ||
210 | return -EINVAL; | ||
211 | else if (len != sizeof(struct wl1271_nvs_file)) | ||
208 | return -EINVAL; | 212 | return -EINVAL; |
209 | 213 | ||
210 | wl->nvs = kzalloc(len, GFP_KERNEL); | 214 | wl->nvs = kzalloc(len, GFP_KERNEL); |