The differences is that driver_wext.c expects the wifi kernel driver to implement the SIOCSIWPRIV ioctl and respond to android commands like RSSI, MACADDR etc, while driver_awext.c replies to android commands by using standard wireless extensions ioctls and works for most wifi drivers. Basically driver_awext.c is a wrapper for driver_wext.c and only reimplements function wpa_driver_priv_driver_cmd().
Direct link to the patch: http://www.linuxconsulting.ro/android/patches/0001-Added-a-separate-driver-awext-to-emulate-Android-dri.patch Thanks, Nicu Pavel. On Mon, May 10, 2010 at 9:25 PM, dimitr...@android.com <dimitr...@android.com> wrote: > Hi Nicu, > > I am not sure what the difference between driver_awext.c and > driver_wext.c. > And the last one has the necessary changes. > Thanks, > > Dmitry > > On May 10, 9:24 am, Nicu Pavel <npa...@ituner.com> wrote: >> Thanks Dimitry, >> >> I updated the guide. On second look I found out why it the android private >> namespace socket didn't work for me.If /data/system/wpa_supplicant folder >> exists the ifname will be built incorrect in wifi.c wpa_ctrl_open() >> function. >> >> Do you think I should submit the wpa driver that emulates android >> priv_driver_cmd() (driver_awext.c) to android source review ? >> >> Thanks, >> Nicu Pavel >> >> On Fri, May 7, 2010 at 10:21 PM, dimitr...@android.com < >> >> >> >> >> >> dimitr...@android.com> wrote: >> > Very good and useful guide. Just want to add to wpa_supplicant socket >> > control. >> > Despite you can use it as you mentioned the idea was to use special >> > socket pair implementation like this: >> >> > wpa_supplicant.conf: >> > ctrl_interface=wlan0 >> >> > init.xxx.rc: >> > service wpa_supplicant /system/bin/wpa_supplicant \ >> > -Dxxxx -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf >> > socket wpa_wlan0 dgram 660 wifi wifi >> > disabled >> > oneshot >> >> > On May 6, 4:09 am, Nicu Pavel <npa...@ituner.com> wrote: >> > > I've written a how-to guide for adding WiFi driver to android and >> > > configuring the necessary software: >> >> > >http://blog.linuxconsulting.ro/2010/04/porting-wifi-drivers-to-androi... >> >> > > Regards, >> > > Nicu Pavel >> >> > > -- >> > > unsubscribe: >> > > android-porting+unsubscr...@googlegroups.com<android-porting%2Bunsubscribe@ >> > > googlegroups.com> >> > > website:http://groups.google.com/group/android-porting >> >> > -- >> > unsubscribe: >> > android-porting+unsubscr...@googlegroups.com<android-porting%2Bunsubscribe@ >> > googlegroups.com> >> > website:http://groups.google.com/group/android-porting >> >> -- >> unsubscribe: android-porting+unsubscr...@googlegroups.com >> website:http://groups.google.com/group/android-porting > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website: http://groups.google.com/group/android-porting > -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting