Gentoo Archives: gentoo-user

From: Tamer Higazi <th982a@××××××××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] hostapd fails to start
Date: Thu, 16 Aug 2012 06:06:00
Message-Id: 502C8D1E.7020602@googlemail.com
1 Hi!
2 I have a TP-Link wlan stick, which works fine on my gentoo box! i want
3 to use this stick as a wlan accesspoint. Now my problem is that hostapd
4 tells me:
5
6 " * Starting hostapd ...
7 rmdir[ctrl_interface]: No such file or directory
8 * start-stop-daemon: failed to start
9 `/usr/sbin/hostapd'
10 [ !! ]
11 * ERROR: hostapd failed to start
12 "
13
14 my hostapd.conf:
15
16 interface=wlan1
17 #bridge=br0 (optional, if you want bridging
18 remove the #)
19 driver=nl80211
20 ssid=MyNetwork
21 channel=1
22 hw_mode=g
23 wpa=3
24 wpa_passphrase=opIOIakj
25 wpa_key_mgmt=WPA-PSK
26 wpa_pairwise=TKIP
27 rsn_pairwise=CCMP
28 macaddr_acl=0
29 auth_algs=1
30 ignore_broadcast_ssid=0
31 logger_syslog=-1
32 logger_syslog_level=2
33 logger_stdout=-1
34 logger_stdout_level=1
35 debug=0
36 dump_file=/tmp/hostapd.dump
37 ctrl_interface=/var/run/hostapd
38 ctrl_interface_group=0
39 accept_mac_file=/etc/hostapd/hostapd.accept
40 deny_mac_file=/etc/hostapd/hostapd.deny
41 auth_algs=1
42
43
44 and in /etc/conf.d/net wlan is defined:
45
46 modules_wlan1="!iwconfig !wpa_supplicant"
47 config_wlan1="192.168.2.12 netmask 255.255.255.0 broadcast 192.168.2.255"
48
49
50 any ideas?!