* [Buildroot] configure HOSTAPD build to enable nl80211 driver support
@ 2014-07-31 1:48 Rohit Kumar
2014-07-31 2:39 ` Gustavo Zacarias
0 siblings, 1 reply; 8+ messages in thread
From: Rohit Kumar @ 2014-07-31 1:48 UTC (permalink / raw)
To: buildroot
Hello,
how can i configure hostapd build with nl80211 driver support.
currenty when i run hostapd, it says
>nl80211 driver initialization failed.
With Regards,
Rohit Kumar
+82 1073149173
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140731/07b8c54a/attachment.html>
^ permalink raw reply [flat|nested] 8+ messages in thread* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 1:48 [Buildroot] configure HOSTAPD build to enable nl80211 driver support Rohit Kumar @ 2014-07-31 2:39 ` Gustavo Zacarias 2014-07-31 3:40 ` Rohit Kumar 0 siblings, 1 reply; 8+ messages in thread From: Gustavo Zacarias @ 2014-07-31 2:39 UTC (permalink / raw) To: buildroot On 07/30/2014 10:48 PM, Rohit Kumar wrote: > Hello, > > how can i configure hostapd build with nl80211 driver support. > currenty when i run hostapd, it says >>nl80211 driver initialization failed. > With Regards, Hi. That error message is terribly generic, how about a little more information on what hostapd says before that and your hostapd config? A dump of the wlan card information would be useful too, typically via the iw package "iw phy0 info" since it's possible you're trying to do master mode on a device that doesn't support it. Regards. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 2:39 ` Gustavo Zacarias @ 2014-07-31 3:40 ` Rohit Kumar 2014-07-31 3:51 ` Baruch Siach 0 siblings, 1 reply; 8+ messages in thread From: Rohit Kumar @ 2014-07-31 3:40 UTC (permalink / raw) To: buildroot Hello, On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias <gustavo@zacarias.com.ar> wrote: > On 07/30/2014 10:48 PM, Rohit Kumar wrote: > > > Hello, > > > > how can i configure hostapd build with nl80211 driver support. > > currenty when i run hostapd, it says > >>nl80211 driver initialization failed. > > With Regards, > > Hi. > That error message is terribly generic, how about a little more > information on what hostapd says before that and your hostapd config? > hostapd.conf is very basic : interface=wlan0 driver=nl80211 ssid=test channel=1 hostapd hostapd.conf -dd generates following output random: Trying to read entropy from /dev/random Configuration file: /root/hostapd-test.conf nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory) rfkill: Cannot open RFKILL control device nl80211: RFKILL status not available nl80211: Remove monitor interface: refcount=0 netlink: Operstate: ifindex=3 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP) nl80211: Set mode ifindex 3 iftype 2 (STATION) nl80211: Failed to set interface 3 to mode 2: -19 (No such device) nl80211 driver initialization failed. hostapd_interface_deinit_free(0xe78b8) hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1 hostapd_interface_deinit(0xe78b8) hostapd_bss_deinit: deinit bss wlan0 hostapd_cleanup(hapd=0xe8518 (wlan0)) hostapd_free_hapd_data: Interface wlan0 wasn't started hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit hostapd_interface_free(0xe78b8) hostapd_interface_free: free hapd 0xe8518 hostapd_cleanup_iface(0xe78b8) hostapd_cleanup_iface_partial(0xe78b8) hostapd_cleanup_iface: free iface=0xe78b8 A dump of the wlan card information would be useful too, typically via > the iw package "iw phy0 info" since it's possible you're trying to do > master mode on a device that doesn't support it. > iw wlan0 info command failed: No such device (-19) but iwconfig works fine even when i run iwconfig wlan0 mode master it does not show error. the USB wifi device works well on PC, so device supports master mode > Regards. > > with regards, Rohit Kumar -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140731/262598b1/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 3:40 ` Rohit Kumar @ 2014-07-31 3:51 ` Baruch Siach 2014-07-31 4:07 ` Rohit Kumar 0 siblings, 1 reply; 8+ messages in thread From: Baruch Siach @ 2014-07-31 3:51 UTC (permalink / raw) To: buildroot Hi Rohit, On Thu, Jul 31, 2014 at 12:40:30PM +0900, Rohit Kumar wrote: > On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias <gustavo@zacarias.com.ar> > wrote: > > On 07/30/2014 10:48 PM, Rohit Kumar wrote: > > > how can i configure hostapd build with nl80211 driver support. > > > currenty when i run hostapd, it says > > >>nl80211 driver initialization failed. > > > > That error message is terribly generic, how about a little more > > information on what hostapd says before that and your hostapd config? > > > hostapd.conf is very basic : > interface=wlan0 > driver=nl80211 > ssid=test > channel=1 [...] > > A dump of the wlan card information would be useful too, typically via > > the iw package "iw phy0 info" since it's possible you're trying to do > > master mode on a device that doesn't support it. > > iw wlan0 info > command failed: No such device (-19) > > but iwconfig works fine even when i run > iwconfig wlan0 mode master > it does not show error. > > the USB wifi device works well on PC, so device supports master mode It seems that your driver only support the old deprecated wireless extension API. You may have better luck if you enable CONFIG_DRIVER_WEXT in hostapd/defconfig. You'll also need 'driver=wext' in you hostapd.conf. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 3:51 ` Baruch Siach @ 2014-07-31 4:07 ` Rohit Kumar 2014-07-31 4:13 ` Baruch Siach 0 siblings, 1 reply; 8+ messages in thread From: Rohit Kumar @ 2014-07-31 4:07 UTC (permalink / raw) To: buildroot On Thu, Jul 31, 2014 at 12:51 PM, Baruch Siach <baruch@tkos.co.il> wrote: > Hi Rohit, > > On Thu, Jul 31, 2014 at 12:40:30PM +0900, Rohit Kumar wrote: > > On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias < > gustavo at zacarias.com.ar> > > wrote: > > > On 07/30/2014 10:48 PM, Rohit Kumar wrote: > > > > how can i configure hostapd build with nl80211 driver support. > > > > currenty when i run hostapd, it says > > > >>nl80211 driver initialization failed. > > > > > > That error message is terribly generic, how about a little more > > > information on what hostapd says before that and your hostapd config? > > > > > hostapd.conf is very basic : > > interface=wlan0 > > driver=nl80211 > > ssid=test > > channel=1 > > [...] > > > > A dump of the wlan card information would be useful too, typically via > > > the iw package "iw phy0 info" since it's possible you're trying to do > > > master mode on a device that doesn't support it. > > > > iw wlan0 info > > command failed: No such device (-19) > > > > but iwconfig works fine even when i run > > iwconfig wlan0 mode master > > it does not show error. > > > > the USB wifi device works well on PC, so device supports master mode > > It seems that your driver only support the old deprecated wireless > extension > API. You may have better luck if you enable CONFIG_DRIVER_WEXT in > hostapd/defconfig. You'll also need 'driver=wext' in you hostapd.conf. > > i tried to edit defconfig at buildroot/output/build/hostapd-2.2/hoatapd but "CONFIG_DRIVER_WEXT" parameter does not exist in the file. how do i do it? i also have the source for wifi driver which i am using, can i change something in driver to make it support new API? > baruch > > -- > With Regards, Rohit Kumar +82 1073149173 > http://baruch.siach.name/blog/ ~. .~ Tk Open > Systems > =}------------------------------------------------ooO--U--Ooo------------{= > - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140731/40f48c8a/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 4:07 ` Rohit Kumar @ 2014-07-31 4:13 ` Baruch Siach 2014-07-31 4:16 ` Rohit Kumar 0 siblings, 1 reply; 8+ messages in thread From: Baruch Siach @ 2014-07-31 4:13 UTC (permalink / raw) To: buildroot Hi Rohit, On Thu, Jul 31, 2014 at 01:07:08PM +0900, Rohit Kumar wrote: > On Thu, Jul 31, 2014 at 12:51 PM, Baruch Siach <baruch@tkos.co.il> wrote: > > On Thu, Jul 31, 2014 at 12:40:30PM +0900, Rohit Kumar wrote: > > > On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias < > > gustavo at zacarias.com.ar> > > > wrote: > > > > On 07/30/2014 10:48 PM, Rohit Kumar wrote: > > > > > how can i configure hostapd build with nl80211 driver support. > > > > > currenty when i run hostapd, it says > > > > >>nl80211 driver initialization failed. > > > > > > > > That error message is terribly generic, how about a little more > > > > information on what hostapd says before that and your hostapd config? > > > > > > > hostapd.conf is very basic : > > > interface=wlan0 > > > driver=nl80211 > > > ssid=test > > > channel=1 > > > > [...] > > > > > > A dump of the wlan card information would be useful too, typically via > > > > the iw package "iw phy0 info" since it's possible you're trying to do > > > > master mode on a device that doesn't support it. > > > > > > iw wlan0 info > > > command failed: No such device (-19) > > > > > > but iwconfig works fine even when i run > > > iwconfig wlan0 mode master > > > it does not show error. > > > > > > the USB wifi device works well on PC, so device supports master mode > > > > It seems that your driver only support the old deprecated wireless > > extension > > API. You may have better luck if you enable CONFIG_DRIVER_WEXT in > > hostapd/defconfig. You'll also need 'driver=wext' in you hostapd.conf. > > > > i tried to edit defconfig at buildroot/output/build/hostapd-2.2/hoatapd > but "CONFIG_DRIVER_WEXT" parameter does not exist in the file. > how do i do it? You can just add it. Not all driver options appear in this file. > i also have the source for wifi driver which i am using, can i change > something in driver to make it support new API? As far as I know this is not a trivial change, but you should better ask at the linux-wireless mailing list. What hardware do you use? Maybe your device already has a nl80211 driver. Most commercially available devices have. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 4:13 ` Baruch Siach @ 2014-07-31 4:16 ` Rohit Kumar 2014-08-01 3:56 ` Baruch Siach 0 siblings, 1 reply; 8+ messages in thread From: Rohit Kumar @ 2014-07-31 4:16 UTC (permalink / raw) To: buildroot Hello, On Thu, Jul 31, 2014 at 1:13 PM, Baruch Siach <baruch@tkos.co.il> wrote: > Hi Rohit, > > On Thu, Jul 31, 2014 at 01:07:08PM +0900, Rohit Kumar wrote: > > On Thu, Jul 31, 2014 at 12:51 PM, Baruch Siach <baruch@tkos.co.il> > wrote: > > > On Thu, Jul 31, 2014 at 12:40:30PM +0900, Rohit Kumar wrote: > > > > On Thu, Jul 31, 2014 at 11:39 AM, Gustavo Zacarias < > > > gustavo at zacarias.com.ar> > > > > wrote: > > > > > On 07/30/2014 10:48 PM, Rohit Kumar wrote: > > > > > > how can i configure hostapd build with nl80211 driver support. > > > > > > currenty when i run hostapd, it says > > > > > >>nl80211 driver initialization failed. > > > > > > > > > > That error message is terribly generic, how about a little more > > > > > information on what hostapd says before that and your hostapd > config? > > > > > > > > > hostapd.conf is very basic : > > > > interface=wlan0 > > > > driver=nl80211 > > > > ssid=test > > > > channel=1 > > > > > > [...] > > > > > > > > A dump of the wlan card information would be useful too, typically > via > > > > > the iw package "iw phy0 info" since it's possible you're trying to > do > > > > > master mode on a device that doesn't support it. > > > > > > > > iw wlan0 info > > > > command failed: No such device (-19) > > > > > > > > but iwconfig works fine even when i run > > > > iwconfig wlan0 mode master > > > > it does not show error. > > > > > > > > the USB wifi device works well on PC, so device supports master mode > > > > > > It seems that your driver only support the old deprecated wireless > > > extension > > > API. You may have better luck if you enable CONFIG_DRIVER_WEXT in > > > hostapd/defconfig. You'll also need 'driver=wext' in you hostapd.conf. > > > > > > i tried to edit defconfig at buildroot/output/build/hostapd-2.2/hoatapd > > but "CONFIG_DRIVER_WEXT" parameter does not exist in the file. > > how do i do it? > > You can just add it. Not all driver options appear in this file. > i will try it do i need "make clean" after changes or i can just do "make" ? > > > i also have the source for wifi driver which i am using, can i change > > something in driver to make it support new API? > > As far as I know this is not a trivial change, but you should better ask at > the linux-wireless mailing list. > > What hardware do you use? Maybe your device already has a nl80211 driver. > Most > commercially available devices have. > i am using IPtime USB wifi dongle it uses realtek 8188 chipset > > baruch > > -- > With Regards, Rohit Kumar +82 1073149173 > http://baruch.siach.name/blog/ ~. .~ Tk Open > Systems > =}------------------------------------------------ooO--U--Ooo------------{= > - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140731/c313f408/attachment.html> ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] configure HOSTAPD build to enable nl80211 driver support 2014-07-31 4:16 ` Rohit Kumar @ 2014-08-01 3:56 ` Baruch Siach 0 siblings, 0 replies; 8+ messages in thread From: Baruch Siach @ 2014-08-01 3:56 UTC (permalink / raw) To: buildroot Hi Rohit, On Thu, Jul 31, 2014 at 01:16:57PM +0900, Rohit Kumar wrote: > On Thu, Jul 31, 2014 at 1:13 PM, Baruch Siach <baruch@tkos.co.il> wrote: > > On Thu, Jul 31, 2014 at 01:07:08PM +0900, Rohit Kumar wrote: > > > but "CONFIG_DRIVER_WEXT" parameter does not exist in the file. > > > how do i do it? > > > > You can just add it. Not all driver options appear in this file. > > i will try it > do i need "make clean" after changes or i can just do "make" ? I'm not sure about that. Just try out. > > > i also have the source for wifi driver which i am using, can i change > > > something in driver to make it support new API? > > > > As far as I know this is not a trivial change, but you should better ask at > > the linux-wireless mailing list. > > > > What hardware do you use? Maybe your device already has a nl80211 driver. > > Most > > commercially available devices have. > > i am using IPtime USB wifi dongle it uses realtek 8188 chipset You are out of luck, it seems. There is a driver for this chipset in the staging area of the kernel but its TODO file (drivers/staging/rtl8188eu/TODO) contains: - switch to use LIB80211 - switch to use MAC80211 baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-08-01 3:56 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-07-31 1:48 [Buildroot] configure HOSTAPD build to enable nl80211 driver support Rohit Kumar 2014-07-31 2:39 ` Gustavo Zacarias 2014-07-31 3:40 ` Rohit Kumar 2014-07-31 3:51 ` Baruch Siach 2014-07-31 4:07 ` Rohit Kumar 2014-07-31 4:13 ` Baruch Siach 2014-07-31 4:16 ` Rohit Kumar 2014-08-01 3:56 ` Baruch Siach
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox