Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Atheros kernel driver and my wireless access point setup
Date: Tue, 09 Jun 2009 05:50:46
Message-Id: 200906090650.40985.michaelkintzios@gmail.com
In Reply to: [gentoo-user] Atheros kernel driver and my wireless access point setup by Jason Carson
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 69.196.152.255"
40 > config_eth1="null"
41 > config_wlan0="null"
42 > bridge_br0="eth1 wlan0"
43 > config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
44 > channel_wlan0="1"
45 > mode_wlan0="master"
46 > essid_wlan0="MyNetwork"
47 >
48 >
49 > Here is my hostapd.conf
50 >
51 >
52 > interface=wlan0
53 > bridge=br0
54 > driver=nl80211
55 > ssid=MyNetwork
56 > hw_mode=g
57 > channel=1
58 > macaddr_acl=0
59 > auth_algs=1
60 > ignore_broadcast_ssid=0
61 > country_code=CA
62 > wpa=1
63 > wpa_passphrase=passphrase
64 > wpa_key_mgmt=WPA-PSK
65 > wpa_pairwise=TKIP
66 > rsn_pairwise=CCMP
67 >
68 >
69 > Anyone know how to change my wireless card to "master mode" and make it so
70 > I don't get those error messages?
71 >
72 >
73 > Thanks
74 >
75 >
76 > P.S. I have everything working with madwifi and an older kernel so worst
77 > case scenario I stay with that configuration until I get this problem
78 > figured out.
79
80 Should you also define in your /etc/conf.d/net the driver?
81
82 modules=( "wpa_supplicant" )
83 wpa_supplicant_wlan0="-Dwext"
84
85 (but I'm not sure of the options because I have never set up the card as
86 master with hostapd).
87
88 HTH.
89 --
90 Regards,
91 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Atheros kernel driver and my wireless access point setup Jason Carson <jason@×××××××××××.ca>