1 |
Jason Carson schrieb: |
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 |
> |
81 |
> |
82 |
Hello, |
83 |
|
84 |
do _NOT_ initialize the master mode of your nic with the rc-script. Let |
85 |
hostapd do that. rc-script will fail! |
86 |
So your /etc/conf.d/net would look like this: |
87 |
|
88 |
config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast 69.196.152.255" |
89 |
config_eth1="null" |
90 |
config_wlan0="null" |
91 |
bridge_br0="eth1 wlan0" |
92 |
config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" |
93 |
|
94 |
|
95 |
|
96 |
Regards Norman |