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 05:46:29
Message-Id: b807836aca4f153a5f378db175621074.squirrel@jasoncarson.ca
In Reply to: [gentoo-user] Atheros kernel driver and my wireless access point setup by Jason Carson
1 Hey all,
2
3 I think I might know the problem. After doing some reading apparently many
4 distrutions, including Gentoo, don't ship hostapd with support for the
5 nl80211 driver. I checked the Gentoo tarball and this is the case. I tried
6 editing the defconfig file in hostapd.tar.gz (enabling
7 CONFIG_DRIVER_NL80211=y)but when I opened the tarball, edited it, and
8 created a new tarball then tried to emerge it it gave me this...
9
10
11 penguin distfiles # emerge hostapd
12 Calculating dependencies... done!
13
14 >>> Verifying ebuild manifests
15
16 >>> Emerging (1 of 1) net-wireless/hostapd-0.6.9
17 Refetching... File renamed to
18 '/usr/portage/distfiles/hostapd-0.6.9.tar.gz._checksum_failure_.70f9W1'
19
20
21 ...and then wanted to download hostapd again.
22
23 Anyone know how I edit the source of the hostapd tarball so it will work?
24
25 > Greetings,
26 >
27 > I am trying to setup a wireless access point using the atheros kernel
28 > driver (Built into the kernel, not as a module). I am using
29 > Vanilla-Sources 2.6.29.4. I need my wireless network card to start up in
30 > "master mode" but for some reason it is starting up in "managed mode".
31 >
32 >
33 > When wlan0 starts up I get this error message...
34 >
35 >
36 > * Bringing up interface wlan0
37 > * configuring wireless network for wlan0
38 > Error for wireless request "Set Mode" (8B06) :
39 > SET failed on device wlan0 ; invalid argument.
40 > * wlan0 connected to SSID "MyNetwork"
41 > * in managed mode (WEP Disabled)
42 > * null... [ ok ]
43 >
44 >
45 > then when hostapd starts up I get this error message...
46 >
47 >
48 > * Starting hostapd...
49 > Configuration file: /etc/hostapd/hostapd.conf
50 > Failed to set interface wlan0 to master mode.
51 > nl80211 driver initialization failed.
52 > ELOOP: remaining socket: sock=5 eloop_data=0x80f5a38 user_data=(nil)
53 > handler=0x8094b70
54 > * start-stop-daemon: failed to start `/usr/sbin/hostapd'
55 > [ !! ]
56 > * ERROR: hostapd failed to start
57 >
58 >
59 > Here is my /etc/conf.d/net
60 >
61 >
62 > config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast
63 > 69.196.152.255"
64 > config_eth1="null"
65 > config_wlan0="null"
66 > bridge_br0="eth1 wlan0"
67 > config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255"
68 > channel_wlan0="1"
69 > mode_wlan0="master"
70 > essid_wlan0="MyNetwork"
71 >
72 >
73 > Here is my hostapd.conf
74 >
75 >
76 > interface=wlan0
77 > bridge=br0
78 > driver=nl80211
79 > ssid=MyNetwork
80 > hw_mode=g
81 > channel=1
82 > macaddr_acl=0
83 > auth_algs=1
84 > ignore_broadcast_ssid=0
85 > country_code=CA
86 > wpa=1
87 > wpa_passphrase=passphrase
88 > wpa_key_mgmt=WPA-PSK
89 > wpa_pairwise=TKIP
90 > rsn_pairwise=CCMP
91 >
92 >
93 > Anyone know how to change my wireless card to "master mode" and make it so
94 > I don't get those error messages?
95 >
96 >
97 > Thanks
98 >
99 >
100 > P.S. I have everything working with madwifi and an older kernel so worst
101 > case scenario I stay with that configuration until I get this problem
102 > figured out.
103 >
104 >
105 >

Replies

Subject Author
Re: [gentoo-user] Atheros kernel driver and my wireless access point setup Dale <rdalek1967@×××××.com>