hostapd修改Beacon和Probe Response帧

在AP模式下,热点会不断定期地发送Beacon帧来宣告自己存在,告知设备可以加入网络;Probe Response帧是用于应答Probe Request帧,Probe Request帧是移动工作站用于扫描周围是否有网络所用

hostapd的配置文件hostapd.conf里的vendor_elements这一项,允许用户(厂商)在Beacon帧和Probe帧里增加自定义的数据:

# Additional vendor specfic elements for Beacon and Probe Response frames
# This parameter can be used to add additional vendor specific element(s) into
# the end of the Beacon and Probe Response frames. The format for these
# element(s) is a hexdump of the raw information elements (id+len+payload for
# one or more elements)
#vendor_elements=dd0411223301

需要把自己的要增加的数据转换为二进制,赋值给vendor_elements即可

你可能感兴趣的:(网络,AP-hostapd)