Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236889
b: refs/heads/master
c: 31d26ec
h: refs/heads/master
i:
  236887: 076c4f8
v: v3
  • Loading branch information
Arik Nemtsov authored and Luciano Coelho committed Jan 24, 2011
1 parent f8d0467 commit 354a49b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 166d504ebaed391f1a411c69a5659632249ba711
refs/heads/master: 31d26ec6992cc05cfd5e50a59b00b0d64c7bb4aa
12 changes: 12 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3064,6 +3064,18 @@ int wl1271_register_hw(struct wl1271 *wl)
if (wl->mac80211_registered)
return 0;

ret = wl1271_fetch_nvs(wl);
if (ret == 0) {
u8 *nvs_ptr = (u8 *)wl->nvs->nvs;

wl->mac_addr[0] = nvs_ptr[11];
wl->mac_addr[1] = nvs_ptr[10];
wl->mac_addr[2] = nvs_ptr[6];
wl->mac_addr[3] = nvs_ptr[5];
wl->mac_addr[4] = nvs_ptr[4];
wl->mac_addr[5] = nvs_ptr[3];
}

SET_IEEE80211_PERM_ADDR(wl->hw, wl->mac_addr);

ret = ieee80211_register_hw(wl->hw);
Expand Down

0 comments on commit 354a49b

Please sign in to comment.