Hostapd故障相关说明
官方文档:
http://w1.fi/hostapd/
http://wireless.kernel.org/en/users/Documentation/hostapd
http://www.ibm.com/developerworks/cn/linux/l-wifiencrypthostapd/
http://w1.fi/cgit/hostap/plain/hostapd/hostapd.conf
参考文档:
https://wiki.archlinux.org/index.php/Software_Access_Point#NetworkManager_is_interfering
http://os.51cto.com/art/201311/418082.htm
![hostapd故障解决(1.1,2.0,2.2) hostapd故障解决(1.1,2.0,2.2)](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
个人安装hostapd的相关文章
linux(Ubuntu)下的wifi热点安装配置------hostapd-2.0
linux(CentOS6)下的wifi热点安装配置------hostapd-2.0
按照上面步骤,ubuntu12.04 x64和centos6.3 x64都没问题,但直到刚更新了系统,
centos6.3换成了centos6.5,安装都正常但启服务就报如下错误
- nl80211:
Failed to set interface wlan0 into AP mode - nl80211
driver initialization failed.
接着就到hostapd的官网看了一下,发现有了最新版本2.2, 于是就更新了hostapd到2.2,可仍然没有解决,还是一样的错误,没办法,只好百度,谷歌,基本上解决方法是在/etc/NetworkManager/NetworkManager.conf的keyfile插件中加一句,如:
sed-i :无线网卡的MAC' /etc/NetworkManager/NetworkManager.conf'/[keyfile]/a unmanaged-devices=mac
为什么要这样做,man NetworkManager.conf
[keyfile]
This section contains keyfile-specific options and thus only has effect
when using keyfile plugin.
hostname=
Set a persistent hostname when using the keyfile plugin.
unmanaged-devices=mac:;mac:;...
Set devices that should be ignored by NetworkManager when using
the keyfile plugin. Devices are specified in the following for-
mat: "mac:", where is MAC address of the device
to be ignored, in lowercase. Multiple entries are separated by a
semicolon. Example:
unmanaged-devices=mac:00:22:68:1c:59:b1;mac:00:1e:65:30:d1:c4
于是跟着尝试了一下,NetworkManager服务也重启了不行机器重启还不行,依旧没解决。
没办法,死马当活马医,到hostapd官网下载了一个老版本,我下的是1.1的版本(http://w1.fi/releases/hostapd-1.1.tar.gz),安装完成后启服务,出乎意料,居然起来了。
直到最近刚安装了CentOS Linux7.0,又作了一番尝试,的确,就是NetworkManager的问题。
因为CentOS Linux7的NetworkManager已经非常成熟强大,己然成为了默认的网络服务管理组件。
在/etc/NetworkManager/NetworkManager.conf文件中加入以下两行立马就解决了这个问题。
[keyfile]
unmanaged-devices=mac:00:1e:65:30:d1:c4