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: Tue, 09 Jun 2009 06:12:42
Message-Id: 3ead0198cb2c6a94955580337031355d.squirrel@jasoncarson.ca
In Reply to: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup by Mick
1 > On Tuesday 09 June 2009, Jason Carson wrote:
2 >> Greetings,
3 >>
4 >> I am trying to setup a wireless access point using the atheros kernel
5 >> driver (Built into the kernel, not as a module). I am using
6 >> Vanilla-Sources 2.6.29.4. I need my wireless network card to start up in
7 >> "master mode" but for some reason it is starting up in "managed mode".
8 >>
9 >>
10 >> When wlan0 starts up I get this error message...
11 >>
12 >>
13 >> * Bringing up interface wlan0
14 >> * configuring wireless network for wlan0
15 >> Error for wireless request "Set Mode" (8B06) :
16 >> SET failed on device wlan0 ; invalid argument.
17 >> * wlan0 connected to SSID "MyNetwork"
18 >> * in managed mode (WEP Disabled)
19 >> * null... [ ok ]
20 >>
21 >>
22 >> then when hostapd starts up I get this error message...
23 >>
24 >>
25 >> * Starting hostapd...
26 >> Configuration file: /etc/hostapd/hostapd.conf
27 >> Failed to set interface wlan0 to master mode.
28 >> nl80211 driver initialization failed.
29 >> ELOOP: remaining socket: sock=5 eloop_data=0x80f5a38 user_data=(nil)
30 >> handler=0x8094b70
31 >> * start-stop-daemon: failed to start `/usr/sbin/hostapd'
32 >> [ !! ]
33 >> * ERROR: hostapd failed to start
34 >>
35 >>
36 >> Here is my /etc/conf.d/net
37 >>
38 >>
39 >> config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast
40 >> 69.196.152.255"
41 >> config_eth1="null"
42 >> config_wlan0="null"
43 >> bridge_br0="eth1 wlan0"
44 >> config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
45 >> channel_wlan0="1"
46 >> mode_wlan0="master"
47 >> essid_wlan0="MyNetwork"
48 >>
49 >>
50 >> Here is my hostapd.conf
51 >>
52 >>
53 >> interface=wlan0
54 >> bridge=br0
55 >> driver=nl80211
56 >> ssid=MyNetwork
57 >> hw_mode=g
58 >> channel=1
59 >> macaddr_acl=0
60 >> auth_algs=1
61 >> ignore_broadcast_ssid=0
62 >> country_code=CA
63 >> wpa=1
64 >> wpa_passphrase=passphrase
65 >> wpa_key_mgmt=WPA-PSK
66 >> wpa_pairwise=TKIP
67 >> rsn_pairwise=CCMP
68 >>
69 >>
70 >> Anyone know how to change my wireless card to "master mode" and make it
71 >> so
72 >> I don't get those error messages?
73 >>
74 >>
75 >> Thanks
76 >>
77 >>
78 >> P.S. I have everything working with madwifi and an older kernel so worst
79 >> case scenario I stay with that configuration until I get this problem
80 >> figured out.
81 >
82 > Should you also define in your /etc/conf.d/net the driver?
83 >
84 > modules=( "wpa_supplicant" )
85 > wpa_supplicant_wlan0="-Dwext"
86 >
87 > (but I'm not sure of the options because I have never set up the card as
88 > master with hostapd).
89 >
90 > HTH.
91 > --
92 > Regards,
93 > Mick
94
95 Maybe, I don't know. I thought wpa_supplicant was for clients not wireless
96 access points. I am currently running the madwifi driver and an older
97 kernel. I am not using wpa_supplicant and it works fine as a access point.