From: pat-lkml at erley.org Date: Wed, 24 Jun 2009 13:50:38 -0400 Subject: [ath9k-devel] Help with hostapd. (Installed but getting errors with bare basic config). In-Reply-To: References: Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org Resending to you Rakesh, missed that you had Blanketed the original e-mail to multiple places. Including our original thread to catch people up on what I asked for/etc. Pat -- I just tested this on my system... If the interface is up when starting hostapd, I get the same error. Try bringing the interface down (ifconfig wlan0 down) then starting hostapd. That acx100.e.o guide is WAY WAY WAY WAY outdated... like 3-4 years ago. The stuff at wireless.e.o is more up-to-date, but the wireless.kernel.org guide is the most up-to-date. I suspect that bringing the interface down will solve the problem. Off to bed (1:30 GMT-5) Pat Rakesh Kumar wrote: > Here is the output of iwconfig: > > rakesh at pineapple:/usr/src/hostapd-0.6.9/hostapd$ iwconfig > lo no wireless extensions. > > eth0 no wireless extensions. > > wmaster0 no wireless extensions. > > wlan0 IEEE 802.11bgn ESSID:"MIMO" > Mode:Ad-Hoc Frequency:2.437 GHz Cell: F2:8C:12:43:75:17 > Tx-Power=20 dBm > Retry min limit:7 RTS thr:off Fragment thr:off > Power Management:off > Link Quality:0 Signal level:0 Noise level:0 > Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 > Tx excessive retries:0 Invalid misc:0 Missed beacon:0 > > pan0 no wireless extensions. > > > Ok, I forgot to mention previously that I followed the guide at: > > http://wireless.kernel.org/en/users/Documentation/hostapd > > But I had already got compat-wireless installed and working, i.e. I > didn't recompile compat-wireless after hostapd? Should that matter? > > Also, I cannot see any loaded module named as nl80211 when I do lsmod | > grep 80211, here is the output: > > mac80211 226340 1 ath9k > cfg80211 72736 2 ath9k,mac80211 > > > > > On Tue, Jun 23, 2009 at 9:14 AM, Pat Erley > wrote: > > Will you send the output of 'iwconfig'? It looks like your device is > something other than wlan0 maybe? Also, what guide are you following? > My guides at wireless.erley.org are in > desperate need of an update, but > I've written a pretty good guide at w.k.o: > http://wireless.kernel.org/en/users/Documentation/hostapd > > It's still incomplete, but covers 95% of the use-cases. > > Pat > > Rakesh Kumar wrote: > > So, I am using Ubuntu 8.10 (Kernel 2.6.27). I used compat-wireless to > > upgrade my ath9k based device. I downloaded libnl (had already > > upgraded it in Ubuntu, which I discovered later), Wireless-reg-db, > > Crda. Installed them. Then I went after hostapd 0.6.9 and was > > successful in building and installing it. I did uncomment the > > #CONFIG_DRIVER_NL80211=y > > > > and setup the libnl paths in the .config file also before > compiling. In my hostapd-minimal.conf, I have written following: > > > > interface=wlan0 #change this to your wireless device > > > > driver=nl80211 > > ssid=test > > ~ > > ~ > > > > > > rakesh at pineapple:/usr/src/hostapd-0.6.9/hostapd$ hostapd > ./hostapd-minimal.conf > > Configuration file: ./hostapd-minimal.conf > > *ioctl[SIOCGIFFLAGS]: No such device > > nl80211 driver initialization failed.* > > > > > > Now I could not find any .ko files named nl80211 and discovered in > source tree that source files corresponding nl80211 arebeing merged > into cfg80211 which is loaded already when I am doing this last step. > > > > rakesh at pineapple:/usr/src$ lsmod | grep 80211 > > > > mac80211 226340 1 ath9k > > cfg80211 72736 2 ath9k,mac80211 > > > > > > Any pointers on what went wrong? How to fix this one? > > > > -- > > Rakesh > > > > > > > > > > > > > > > > > > > > > >