640
人物
管理幀中添加自定義的值
由於項目需要,我想要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