Gentoo Archives: gentoo-user

From: Jason Carson <jason@×××××××××××.ca>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup
Date: Wed, 10 Jun 2009 21:38:10
Message-Id: b895f6574f41276f0735558358e9dcc9.squirrel@jasoncarson.ca
In Reply to: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup by "Norman Rieß"
1 > Jason Carson schrieb:
2 >>> Jason Carson schrieb:
3 >>>
4 >>>> Thanks for the clarification Norman :-)
5 >>>>
6 >>>> ok, I removed net.wlan0 so it doesn't start up anymore. My computer
7 >>>> booted
8 >>>> up and all the services are working the way they should, however I am
9 >>>> having a problem getting hostapd to start. Here is the error I get
10 >>>> when
11 >>>> I
12 >>>> tried to start up hostapd...
13 >>>>
14 >>>> penguin ~ # /etc/init.d/hostapd start
15 >>>> * Bringing up interface wlan0
16 >>>> * Configuring wireless network for wlan0
17 >>>> * Scanning for access points
18 >>>> * no access points found
19 >>>> * Failed to configure wireless for wlan0
20 >>>> * ERROR: net.wlan0 failed to start
21 >>>> * ERROR: cannot start hostapd as net.wlan0 would not start
22 >>>>
23 >>>> It's suppose to be an access point, not scanning for one so do you
24 >>>> have
25 >>>> any idea what I should do now?
26 >>>>
27 >>>>
28 >>>>
29 >>>>
30 >>> Did you remove wlan0 from the /etc/conf.d/hostapd file?
31 >>>
32 >>>
33 >>>
34 >> No, should I just leave it empty?
35 >> INTERFACES=""
36 >>
37 >> What about /etc/hostapd/hostapd.conf?
38 >> Do I leave it like this...
39 >> interface=wlan0
40 >> ...or remove that line too?
41 >>
42 >>
43 > INTERFACES should at least contain the bridge device. The wired NIC does
44 > not hurt either.
45 > In /etc/hostapd/hostapd.conf wlan0 is needed to tell hostapd which
46 > device it has to initialize, so leave it like this.
47 >
48 >
49 Alright, I have done everything you have suggested but when hostapd tries
50 to start I am getting this error...
51
52 penguin ~ # /etc/init.d/hostapd start
53 * Starting hostapd...
54 Configuration file: /etc/hostapd/hostapd.conf
55 Failed to set interface wlan0 to master mode.
56 nl80211 driver initialization failed.
57 ELOOP: remaining socket: sock=5 eloop_data=0x80f1a38 user_data=(nil)
58 handler=0x8091790
59 * start-stop-daemon: failed to start `/usr/sbin/hostapd'
60 [ !! ]
61 * ERROR: hostapd failed to start
62
63 Do you have any idea why this is happening?

Replies

Subject Author
Re: [gentoo-user] Atheros kernel driver and my wireless access point setup "Norman Rieß" <norman@×××××××××.org>