Panda LEB Wi-Fi Enablement

Registered by Zach Pfeffer

Integrate kernel Wi-Fi components into the Panda LEB.

This BP will enable Wi-Fi in the Panda LEB by adjusting the Android build to compile Linux kernel modules, copy firmware into the Android rootfs and insmodding the .kos in the init scripts.

Once the kernel WiFi components are initialized, WiFi will be connected to the Android user space.

Blueprint information

Status:
Complete
Approver:
Zach Pfeffer
Priority:
Medium
Drafter:
vishal
Direction:
Approved
Assignee:
vishal
Definition:
Approved
Series goal:
Accepted for 2011q2
Implementation:
Implemented
Milestone target:
milestone icon 11.09
Started by
Zach Pfeffer
Completed by
vishal

Related branches

Sprints

Whiteboard

[vishalbhoj,Sep 20,201]: Upddate wifi connection implementation as per asac's suggestions.https://android-build.linaro.org/builds/~linaro-android/leb-panda/#build=251 has the change http://review.android.git.linaro.org/#change,239.
[vishalbhoj,Sep 13,2011]: Wifi is now working with the build https://android-build.linaro.org/builds/~linaro-android/leb-panda/#build=236 .TO test wifi Launch Settings->Wireless Networks->Wifi Settings and Turn on wi-fi .Connect to Wifi Networks and then you can browse.
[vishal,Sep 6,2011]:android uses a modified version of wpa_supplicant to communcate with Wifi driver. It uses "SIOCSIWPRIV" extensively to interact with Wifi driver which is usually not implemented by standard wifi drivers. There are multiple patches submitted by different people to get wpa_supplicant working with generic wifi drivers,links given below.To begin with I am trying the third patch.
http://boundarydevices.com/blogs/android-wlan-the-rest-of-the-story
http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-android.html
https://gitorious.org/picopc-android-gingerbread/external-wpa_supplicant_6/commit/5f5c50d722eedaedd75c1698b79f464310ce6478?format=patch

[asac, Sep 5, 2011]: please update work items regularly; at least comment a change of status, e.g. when moving to "good progress", drop a simple comment like this whats going on. Also if a blueprint does not move, post at least every other day a status update whats the last discussion etc.

Headline:
Panda supports Wi-Fi

Acceptance:
Wi-Fi works in Android from Userspace

Notes:

For WiFi

insmod /system/lib/modules/wl12xx.ko
insmod /system/lib/modules/wl12xx_sdio.ko

Tips from Naveen in the mail:

I missed the questions on WLAN.

1) The wlan_loader is needed to download the wlan firmware
2) There are some custom changes in the wpa_supplicant_6 in TI git - http://git.omapzoom.org/?p=platform/external/wpa_supplicant_6.git;a=shortlog;h=refs/heads/p-gingerbread

(?)

Work Items

Work items:
Install modules and firmware into a build by hand to test: DONE
Create Android.mk to install binaries: DONE
Extend android build to build kernel modules: DONE
Install Wi-Fi modules in /system/lib/modules: DONE
Install Wi-Fi firmware: DONE
Modify scripts to insmod Wi-Fi modules: DONE
Enable wpa_supplicant in Boardconfig: DONE
Get wpa_supplicant working with wifi driver with above patch : DONE
update the android build to load wpa_supplicant.conf file and set right permissions: DONE
Discuss what is a common solution for all boards with the modified wpa_supplicant : DONE
Commit the above changes: DONE
Test Wi-Fi: DONE
Enhance the commit http://review.android.git.linaro.org/#change,183 : DONE

This blueprint contains Public information 
Everyone can see this information.