From: Laurence Darby <ldarby@tuffmail.com>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: I'm no longer confused and angry
Date: Sat, 30 Jul 2011 20:59:31 +0100 [thread overview]
Message-ID: <20110730205931.3cc8a004.ldarby@tuffmail.com> (raw)
In-Reply-To: <4E344F90.4040003@lwfinger.net>
[-- Attachment #1: Type: text/plain, Size: 2231 bytes --]
Larry Finger wrote:
> On 07/30/2011 01:14 PM, Laurence Darby wrote:
> >
> > I have now enabled rfkill. The hostapd error message is now:
> >
> > Hardware does not support configured mode
> > wlan0: IEEE 802.11 Hardware does not support configured mode (2)
> > Could not select hw_mode and channel. (-2)
> > wlan0: Unable to setup interface.
> > rmdir[ctrl_interface]: No such file or directory
>
> Please post your hostapd.conf. I don't have any ath9k hardware and
> cannot check that it works with, but other wireless devices work with
>
> interface=wlan0
> driver=nl80211
> hw_mode=g
> channel=1
> ssid=test2
> #wpa=2
> #wpa_key_mgmt=WPA-PSK
> #wpa_pairwise=CCMP
> #wpa_passphrase="deleted"
>
> Larry
Ah, thanks, that does work and my other devices can see it now!
I was using the unmodified hostapd.conf, which has hw_mode=a, but
this device only supports modes b,g & n. That is what the error is
talking about, not the Master/Ad-Hoc mode which I thought it was trying
to configure (which it is as well, actually). Would be good if the
error message included the mode it's trying to configure, instead of
"(2)", that would definitely have stopped me getting confused here.
Some more reasons I didn't think this supported AP mode:
http://linuxwireless.org/en/users/Drivers has 'no' for AP support for
the ath9k_htc, that conflicts with the driver page, and
# iwconfig wlan0 mode Managed
works, while
# iwconfig wlan0 mode Master
always gives:
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
With hostapd running, iwconfig says:
wlan0 IEEE 802.11bgn Mode:Master Frequency:2.412 GHz Tx-Power=20
dBm Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
and reverts to Mode:Managed if I stop hostapd, so I'm not sure why
iwconfig can't change it...
Ok, http://linuxwireless.org/en/users/Documentation/hostapd does say
that hw_mode needs to be set correctly, but it wasn't obvious enough
that's what the problem was. The error and solution could be added to
where ./hostapd gets started. Also, it refers to a
hostapd-minimal.conf, I couldn't see that anywhere, that's why I used
the default hostapd.conf.
Laurence
[-- Attachment #2: hostapd.conf --]
[-- Type: application/octet-stream, Size: 62 bytes --]
interface=wlan0
driver=nl80211
hw_mode=b
channel=1
ssid=test2
next prev parent reply other threads:[~2011-07-30 19:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-30 17:14 I'm confused and angry Laurence Darby
[not found] ` <4E3442ED.90206@lwfinger.net>
2011-07-30 18:14 ` Laurence Darby
2011-07-30 18:38 ` Larry Finger
2011-07-30 19:59 ` Laurence Darby [this message]
2011-07-31 2:36 ` I'm no longer " Gábor Stefanik
2011-08-01 4:49 ` I'm " Mohammed Shafi
2011-07-30 18:39 ` Sedat Dilek
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=20110730205931.3cc8a004.ldarby@tuffmail.com \
--to=ldarby@tuffmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).