wpa_cli 与wpa_supplicant交互的命令行客户端。 wpa_cli [-p<path to ctrl sockets>][-i<ifname>] [-hvB] [-a<action file>] \ [-P<pid file>] [-g<global ctrl>] [-G<pinginterval>] [command..] -h =help (show this usage text) -v =shown version information -a =run in daemon mode executing the action file based on events from wpa_supplicant -B =run a daemon in the background default path: /data/system/wpa_supplicant default interface: first interface found in socket path
wpa_cli 默认的启动命令 wpa_cli -iwlan0-p/data/system/wpa_supplicant
在mstar上的启动命令: 1. wpa_cli –iwlan0 –g wlan0 2. wpa_cli –iwlan0 –p/data/misc/wifi/sockets/wpa_ctrl_ 用此命令可以打开EVENT打印 (word表格弄不上来,后面怎么用这些指令的一栏没了,显示不出来~~~)
wpa_cli命令如下表: 上面都是wpa_supplicant的一些基本命令,另外还有很多其他偏门命令需要继续研究。 另外还有启动p2p的调试命令: p2p_find[timeout] [type=*] = find P2P Devices for up-to timeout seconds p2p_stop_find = stop P2P Devices search p2p_connect <addr> <"pbc"|PIN> = connect to a P2PDevices p2p_listen [timeout] = listen for P2P Devices for up-to timeout seconds p2p_group_remove <ifname> = remove P2P group interface (terminategroup if GO) p2p_group_add = add a new P2P group (local end as GO) p2p_prov_disc <addr> <method> = request provisioningdiscovery p2p_get_passphrase = get the passphrase for a group (GO only) p2p_serv_disc_req <addr> <TLVs> = schedule service discoveryrequest p2p_serv_disc_cancel_req <id> = cancel pending service discoveryrequest p2p_serv_disc_resp <freq> <addr> <dialog token><TLVs> = service discovery response p2p_service_update = indicate change in local services p2p_serv_disc_external <external> = set external processing ofservice discovery p2p_service_flush = remove all stored service entries p2p_service_add <bonjour|upnp> <query|version><response|service> = add a local service p2p_service_del <bonjour|upnp> <query|version> [|service] =remove a local service p2p_reject <addr> = reject connection attempts from a specificpeer p2p_invite<cmd> [peer=addr] = invite peer p2p_peers[discovered] = list known (optionally, only fully discovered) P2P peers p2p_peer<address> = show information about known P2P peer p2p_set<field> <value> = set a P2P parameter p2p_flush= flush P2P state p2p_cancel = cancel P2P group formation |
|