制作此手册http://wireless.kernel.org/en/users/Documentation/hostapd
使用此配置文件
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我有错误
oot@Cubian:/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在旧版本中,我没有这个错误
发布于 2014-05-04 17:42:49
解出
在编译conf中,我取消注释字符串
CONFIG_IEEE80211N=y发布于 2014-04-03 18:08:27
问题似乎在于,hostapd 2.1现在对错误的处理方式有所不同。这在Ubuntu桌面版本上是可以复制的,因为资源(WLAN)很忙。
如果关闭访问资源的程序,hostapd就有机会抓住它并工作。
在Ubuntu桌面14.04测试版中,一个解决方案是关闭正在使用wlan的程序。
这对我起了作用:
sudo nmcli nm wifi off
sudo rfkill unblock wlan然后hostapd可以正常地从命令行开始。当然,如果您想让hostapd在启动时启动,您必须确保网络管理器不会提前抢占资源。
发布于 2014-03-08 16:33:36
我发现这个链接解释了错误的原因和如何解决它。https://bugs.archlinux.org/task/20269
此外,我还找到了我所遵循的另一个链接http://blog.mirjamali.com/en/IT/Linux/hostapd,它正在与我一起检查配置部分。
我的操作系统是ubuntu12.4
https://stackoverflow.com/questions/21930012
复制相似问题