Gentoo Archives: gentoo-user

From: Jason Carson <jason@×××××××××××.ca>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Atheros kernel driver and my wireless access point setup
Date: Tue, 09 Jun 2009 05:21:58
Message-Id: 000606ca6620ef53cdcd6e935ccf6c4b.squirrel@jasoncarson.ca
1 Greetings,
2
3 I am trying to setup a wireless access point using the atheros kernel
4 driver (Built into the kernel, not as a module). I am using
5 Vanilla-Sources 2.6.29.4. I need my wireless network card to start up in
6 "master mode" but for some reason it is starting up in "managed mode".
7
8
9 When wlan0 starts up I get this error message...
10
11
12 * Bringing up interface wlan0
13 * configuring wireless network for wlan0
14 Error for wireless request "Set Mode" (8B06) :
15 SET failed on device wlan0 ; invalid argument.
16 * wlan0 connected to SSID "MyNetwork"
17 * in managed mode (WEP Disabled)
18 * null... [ ok ]
19
20
21 then when hostapd starts up I get this error message...
22
23
24 * Starting hostapd...
25 Configuration file: /etc/hostapd/hostapd.conf
26 Failed to set interface wlan0 to master mode.
27 nl80211 driver initialization failed.
28 ELOOP: remaining socket: sock=5 eloop_data=0x80f5a38 user_data=(nil)
29 handler=0x8094b70
30 * start-stop-daemon: failed to start `/usr/sbin/hostapd'
31 [ !! ]
32 * ERROR: hostapd failed to start
33
34
35 Here is my /etc/conf.d/net
36
37
38 config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast 69.196.152.255"
39 config_eth1="null"
40 config_wlan0="null"
41 bridge_br0="eth1 wlan0"
42 config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
43 channel_wlan0="1"
44 mode_wlan0="master"
45 essid_wlan0="MyNetwork"
46
47
48 Here is my hostapd.conf
49
50
51 interface=wlan0
52 bridge=br0
53 driver=nl80211
54 ssid=MyNetwork
55 hw_mode=g
56 channel=1
57 macaddr_acl=0
58 auth_algs=1
59 ignore_broadcast_ssid=0
60 country_code=CA
61 wpa=1
62 wpa_passphrase=passphrase
63 wpa_key_mgmt=WPA-PSK
64 wpa_pairwise=TKIP
65 rsn_pairwise=CCMP
66
67
68 Anyone know how to change my wireless card to "master mode" and make it so
69 I don't get those error messages?
70
71
72 Thanks
73
74
75 P.S. I have everything working with madwifi and an older kernel so worst
76 case scenario I stay with that configuration until I get this problem
77 figured out.

Replies

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