hostapd_cli –h
Options:
-h help (show this usage text)
-v shown version information
-p<path> path to findcontrol sockets (default: /var/run/hostapd)
-a<file> run in daemonmode executing the action file based on events
from hostapd
-B run a daemon in the background
-i<ifname> Interface tolisten on (default: first interface found in the
socket path)
hostapd_cli 在mstar上面的连接:
hostapd_cli -i uap0 -p /data/misc/wifi/hostapd
连上之后没有交互的EVENT上来,需要分析
命令 |
命令缩写 |
描述 |
测试 |
all_sta |
al |
显示当前连入的STA,并记录连上的时间长度 |
> all_sta 40:f3:08:39:b6:74 connected_time=579 00:90:4c:78:5d:5c connected_time=3359 > all 00:90:4c:78:5d:5c connected_time=3458 |
deauthenticate <addr> |
dea |
解除验证 |
> all 40:f3:08:39:b6:74 ---à我的设备 connected_time=59 00:90:4c:78:5d:5c connected_time=4008 > dea 40:f3:08:39:b6:74 -à可以看到设备断开,又启动连接 OK |
disassociate <addr> |
|
断开连接 |
过程与上面差不多 |
wps_pin |
|
AP端的wps功能 |
功能有问题无法测试 |
wps_pbc |
|
Ap端的wps功能 |
功能有问题无法测试 |
wps_config <SSID> <auth> <encr> <key> |
|
配置 |
|