Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183370
b: refs/heads/master
c: 8cf5e8e
h: refs/heads/master
v: v3
  • Loading branch information
Luciano Coelho authored and John W. Linville committed Dec 28, 2009
1 parent 6297a1c commit eeaec04
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98b2a68473ae975bc4abdeb66cd719ccfdad9d4a
refs/heads/master: 8cf5e8e509950237fa0982235a703348d8b6e670
1 change: 1 addition & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ enum {

#define WL1271_FW_NAME "wl1271-fw.bin"
#define WL1271_NVS_NAME "wl1271-nvs.bin"
#define WL1271_NVS_LEN 468

/*
* Enable/disable 802.11a support for WL1273
Expand Down
8 changes: 7 additions & 1 deletion trunk/drivers/net/wireless/wl12xx/wl1271_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,15 @@ static int wl1271_boot_upload_nvs(struct wl1271 *wl)
if (nvs == NULL)
return -ENODEV;

if (wl->nvs_len < WL1271_NVS_LEN)
return -EINVAL;

nvs_ptr = nvs;

nvs_len = wl->nvs_len;
/* only the first part of the NVS needs to be uploaded */
nvs_len = WL1271_NVS_LEN;

/* FIXME: read init settings from the remaining part of the NVS */

/* Update the device MAC address into the nvs */
nvs[11] = wl->mac_addr[0];
Expand Down

0 comments on commit eeaec04

Please sign in to comment.