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 |
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 |
>> |
83 |
>> |
84 |
> Hello, |
85 |
> |
86 |
> do _NOT_ initialize the master mode of your nic with the rc-script. Let |
87 |
> hostapd do that. rc-script will fail! |
88 |
> So your /etc/conf.d/net would look like this: |
89 |
> |
90 |
> config_eth0="69.196.152.151 netmask 255.255.255.0 broadcast |
91 |
> 69.196.152.255" |
92 |
> config_eth1="null" |
93 |
> config_wlan0="null" |
94 |
> bridge_br0="eth1 wlan0" |
95 |
> config_br0="192.168.0.1 netmask 255.255.255.0 broadcast 192.168.0.255" |
96 |
> |
97 |
> |
98 |
> |
99 |
> Regards Norman |
100 |
> |
101 |
> |
102 |
> |
103 |
Hey Norman, |
104 |
|
105 |
I tried changing my /etc/conf.d/net to what you suggested but it resulted |
106 |
in the following errors... |
107 |
|
108 |
*Bringing up interface wlan0 |
109 |
* Configuring wireless network for wlan0 |
110 |
* Scanning for access points |
111 |
* no access points found |
112 |
* Failed to configure wireless for wlan0 |
113 |
|
114 |
Then because wlan0 wouldn't start I got a bunch of errors like... |
115 |
|
116 |
* Error: cannot start named as net.wlan0 would not start |
117 |
* Error: cannot start sshd as net.wlan0 would not start |
118 |
* Error: cannot start apache2 as net.wlan0 would not start |
119 |
etc... |