2014-02-21 80 views
0

使wthis本手册 http://wireless.kernel.org/en/users/Documentation/hostapdHostapd启动错误

与此配置文件

interface=wlan2 
bridge=br0 
driver=nl80211 
ssid=SupaAP 
country_code=RU 
hw_mode=g 
channel=5 
preamble=1 
macaddr_acl=0 

auth_algs=1 
logger_syslog=-1 
logger_syslog_level=3 
logger_stdout=-1 
logger_stdout_level=2 
ignore_broadcast_ssid=0 
ieee80211n=1 
ht_capab=[SHORT-GI-20][RX-STBC1] 
wmm_enabled=1 

和我在老版本的错误

[email protected]:/home/cubie/wif/hostapd-2.1/hostapd# ./hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf 
Line 16: unknown configuration item 'ieee80211n' 
Line 17: unknown configuration item 'ht_capab' 
2 errors found in configuration file '/etc/hostapd/hostapd.conf' 
Failed to set up interface with /etc/hostapd/hostapd.conf 
Failed to initialize interfac 

我没有thsi错误

回答

2

在编译的conf解决

我去掉字符串

CONFIG_IEEE80211N=y 
0

启动hostapd与

hostapd -dd /etc/hostapd/hostapd.conf 

你会得到诊断的更多信息。在哪个旧版本中你没有收到错误?你有更新hostapd吗?或改变你的WiFi适配器?你正在使用什么distri?

http://hostap.epitest.fi/cgit/hostap/plain/hostapd/hostapd.conf

有书面的ieee80211n设置如何。对我来说,我不能看到一个错误。 如果你删除这两行,ap是否正确启动?

2

看来问题是hostapd 2.1现在正在处理它有不同的错误。 由于资源(WLAN)繁忙,这在Ubuntu桌面版本上可重现。

如果关闭正在访问资源的程序,hostapd有机会抓住并工作。

在Ubuntu桌面14.04测试版中,解决方案是关闭正在使用相关wlan的程序。

这为我工作:

sudo nmcli nm wifi off 
sudo rfkill unblock wlan 

然后hostapd可以从命令行正常启动。当然,如果您希望hostapd在启动时启动,您必须确保网络管理员不会提前获取资源。

+0

作品对我来说就像魅力。非常感谢! – goodniceweb