Hi, The MAC address of the Wifi wl12xx chip isn't correctly set during the boot sequence. This results in manual operations in rc.sysinit script in order to set MAC and have wifi functional.
The following patch (https://patchwork.kernel.org/patch/335881/ ) allows the wl12xx driver to read the MAC address from NVS file. diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 708b699..e5fbbb6 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c @@ -2987,6 +2987,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); If this patch is integrated, procedure to set the MAC address for Wifi connectivity becomes clean and very similar to the procedure already used to set the IMEI for modem connectivity: · boot the device · set MAC address in NVS file via the attached script · reboot · WLAN is up and running - no further need to repeat above operations for future use of wifi This procedure will be required in engineering R&D mode. It is very similar to production mode. Above patch has already been submitted to the linuxwireless project: URL is https://patchwork.kernel.org/patch/335881/ . My request here is to integrate this patch in MeeGo kernel - in compat-wireless-2010-10-19/drivers/net/wireless/wl12xx/wl1271_main.c - to avoid manual operations for wifi init. When accepted in linux next, we should automatically get it in latest compat-wireless. Regards, Claude Claude BROUAT UMG/MIPE/WSIV System Integrator Office: +33 (0)1 72 21 04 54 mailto: mailto:[email protected] Intel Corp. SAS 134, av du Général Eisenhower BP 73586 31100 TOULOUSE France --------------------------------------------------------------------- Intel Corporation SAS (French simplified joint stock company) Registered headquarters: "Les Montalets"- 2, rue de Paris, 92196 Meudon Cedex, France Registration Number: 302 456 199 R.C.S. NANTERRE Capital: 4,572,000 Euros This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
_______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
