无法创建无线 AP

无法创建无线 AP

我尝试使用创建 AP并试图解决我的问题

$ iw list
nl80211 not found.

,但我启动时仍然出错make

~/hostapd-2.0/hostapd$ make
../src/drivers/driver_nl80211.c:19:31: fatal error: netlink/genl/genl.h: No such file or directory
compilation terminated.
make: *** [../src/drivers/driver_nl80211.o] Error 1

有任何想法吗?

我有一张 Broadcom 无线网卡。

答案1

在里面您发布的链接它说:

if this fails with errors like:

driver_nl80211.c:21:31: warning: netlink/genl/genl.h: No such file or directory
driver_nl80211.c:22:33: warning: netlink/genl/family.h: No such file or directory
driver_nl80211.c:23:31: warning: netlink/genl/ctrl.h: No such file or directory
driver_nl80211.c:24:25: warning: netlink/msg.h: No such file or directory
driver_nl80211.c:25:26: warning: netlink/attr.h: No such file or directory



you need to install/update libnl-1.0pre8 (or later). If all goes well and the 
compilation finishes, try the minimal hostapd again, see the section Using your
distributions hostapd above for that.

所以...

sudo apt-get install libnl1 libnl-dev

然后运行构建


我浏览了一下,我觉得你的卡不适用于此

为确保万无一失,请运行以下命令:

lspci | grep -i network

如果您有 Broadcom 43.... 卡,则此路线将不起作用。看到这个

相关内容