From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] configure HOSTAPD build to enable nl80211 driver support
Date: Thu, 31 Jul 2014 07:13:25 +0300 [thread overview]
Message-ID: <20140731041325.GH2480@tarshish> (raw)
In-Reply-To: <CABzetm2uARm_yNv8P3vuW7VvMSKk-WFSg4WcZhf-vy3DnznYQA@mail.gmail.com>
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 -
next prev parent reply other threads:[~2014-07-31 4:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2014-07-31 4:16 ` Rohit Kumar
2014-08-01 3:56 ` Baruch Siach
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140731041325.GH2480@tarshish \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.