阅读640 返回首页    go 人物


管理帧中添加自定义的值

由于项目需要,我想要Wi-Fi广播一些自定义的值。我的想法自定义Beacon帧或者Probe Response帧的Vendor Specific字段的值。

我现在有的是小米路由器3,我想问下/etc/config/wireless文件中vendor的选项是否对应Vendor Specific字段。


另外,如果我能否使用hostapd开热点(因为hostapd.conf中有vendor-elements的选项),

我试图使用小米路由器中自带的hostapd(/usr/sbin/hostapd)开热点,但是报错:

Configuration file: /etc/hostapd.conf
bind: Address already in use
wired driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x457588 user_data=(nil) handler=0x41a370
ELOOP: remaining socket: sock=5 eloop_data=0x457588 user_data=(nil) handler=0x41a2e8

hostapd.conf文件只有一行:interface=wl0。

我曾经试图添加driver=hostap/nl80211,都报错:Line 2: invalid/unknown driver 'hostap'/‘nl80211'。


我也试图使用从OpenWrt官网中下载并安装的hostapd(/data/usr/sbin/hostapd)开热点,也会报错,但是错误原因不一样。

如果driver=nl80211,报错:

Configuration file: etc/hostapd.conf
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'

如果driver=hostap,报错:

Configuration file: etc/hostapd.conf
ioctl[PRISM2_IOCTL_PRISM2_PARAM]: Operation not supported
Could not enable hostapd mode for interface wl0
hostap driver initialization failed.

如果driver=wired,报错:

Configuration file: /etc/hostapd.conf
bind: Address already in use
wired driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x457588 user_data=(nil) handler=0x41a370
ELOOP: remaining socket: sock=5 eloop_data=0x457588 user_data=(nil) handler=0x41a2e8

和之前的错误原因相同。

我想问这个问题能解决吗?

最后更新:2017-07-28 14:26:16

  上一篇:go 我中奖了
  下一篇:go 小米路由器什么时候可以有无缝漫游功能?