1 |
>> I've added 'INTERFACES=wlan0' to /etc/conf.d/hostapd, created the |
2 |
>> /etc/init.d/net.wlan0 link, and added the following to |
3 |
>> /etc/conf.d/net: |
4 |
>> |
5 |
>> modules_wlan0=( "!iwconfig" "!wpa_supplicant" ) |
6 |
>> config_wlan0="192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255" |
7 |
>> |
8 |
>> When I start hostapd it tries to start net.wlan0 but I get "WARNING: |
9 |
>> net.wlan0 has started, but is inactive" and hostapd won't start. If I |
10 |
>> don't add the INTERFACES line and start hostapd and then net.wlan0, |
11 |
>> hostapd starts but has no IP address and net.wlan0 gives me the same |
12 |
>> "inactive" error. |
13 |
> |
14 |
> I have the link inactive message (warning != error) on my client |
15 |
> system, then it associates so the link becomes active, and then |
16 |
> dhcp's. I dont get that message on my AP machine tho, but dmesg has |
17 |
> "wlan0: link is not ready" |
18 |
|
19 |
Yeah the "inactive" warning isn't very informative. I get that |
20 |
message all the time when starting an interface in managed mode. |
21 |
|
22 |
> I have net.wlan0 started by init, not by hostapd, not sure if that |
23 |
> makes a difference. |
24 |
|
25 |
You start net.wlan0 in master mode with /etc/init.d/net.wlan0? If so, |
26 |
do you have a PSK? |
27 |
|
28 |
> What message does hostapd report? AFAIK, it shouldn't care about wlan0 |
29 |
> not having link. |
30 |
|
31 |
hostapd doesn't report any error and I don't think it should. |
32 |
Everything works fine as soon as I 'ifconfig wlan0 192.168.1.1' but I |
33 |
know there's a way to assign that IP automatically, I've just |
34 |
forgotten what it is. My description above is the trouble I run into |
35 |
when I try to set up that automatic IP assignment. As long as I issue |
36 |
ifconfig manually, everything works fine. |
37 |
|
38 |
>> I know I've had this working several times before but I always have a |
39 |
>> hard time remembering how I did it. I've definitely never disabled |
40 |
>> iwconfig and wpa_supplicant before. |
41 |
> |
42 |
> That's from here; |
43 |
> http://www.gentoo-wiki.info/Wireless/libnl_Access_Point |
44 |
|
45 |
Is anyone here running hostapd? It's the Gentoo+hostapd combo that |
46 |
has me stumped. |
47 |
|
48 |
- Grant |