androidwifi

Android命令行获取WiFi列表以及参数


Android如何通过命令行获取WiFi列表以及参数:

一个工具加一个参数:

wpa_cli => The command line interface of wpa_supplicant

wifi interface socket目录


一般Android习题WiFi所对应着的interface名为wlan0,若不一样请参看init.{xxx}.rc中启动wpa_supplicant daemon的参数,或通过getprop查询得到。

找到带有wlan0 socket文件的目录,比如

/data/misc/wifi/
在我的手机上(Android 4.2.2)为/dev/socket/
然后adb shell
通过-p 选项指定socket文件目录
    
    
  1. root@android:/dev/socket # wpa_cli -p /dev/socket/                               
  2. wpa_cli v2.0-devel-  
  3. Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors  
  4.   
  5. This software may be distributed under the terms of the BSD license.  
  6. See README for more details.  
  7.   
  8.   
  9. Selected interface 'wpa_wlan0'  
  10.   
  11. Interactive mode  
  12.   
  13. <3>CTRL-EVENT-SCAN-RESULTS   
  14. >   
  15. >   
  16. <3>CTRL-EVENT-SCAN-RESULTS   
  17. > scan  
  18. FAIL-BUSY  
  19. <3>CTRL-EVENT-SCAN-RESULTS   
  20. > scan  
  21. OK  
  22. <3>CTRL-EVENT-SCAN-RESULTS   
  23. <3>CTRL-EVENT-SCAN-RESULTS   
  24. > scan_results  
  25. bssid / frequency / signal level / flags / ssid  
  26. 80:81:00:e3:ee:88   2447    -42 [ESS]   alipay-wifi-podinns  
  27. 1c:aa:07:c6:ea:10   2412    -49 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alibaba-inc  
  28. bc:d1:77:9c:12:52   2437    -68 [WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS] 21F_ISV  
  29. 38:22:d6:4d:e9:60   2412    -75 [ESS]   CMCC  
  30. 00:87:36:39:e4:df   2462    -75 [ESS]   mike.lx  
  31. 38:22:d6:4d:a1:30   2412    -72 [ESS]   CMCC  
  32. 1c:aa:07:c7:24:b0   2462    -75 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alibaba-inc  
  33. 1c:aa:07:c7:24:b2   2462    -75 [ESS]   alilang-setup  
  34. c8:3a:35:07:e4:c8   2412    -82 [WPA2-PSK-CCMP][ESS]    mars-new  
  35. 9e:21:6a:01:54:30   2437    -55 [ESS]   -UFreet-  
  36. 3c:ce:73:c6:5d:63   2412    -69 [ESS]   alilang-setup  
  37. 1c:aa:07:f5:81:b0   2462    -93 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alibaba-inc  
  38. 1c:aa:07:c7:1a:71   2412    -76 [ESS]   alibaba-guest  
  39. 1c:aa:07:c6:ea:12   2412    -55 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alipay-pre  
  40. 1c:aa:07:f5:85:32   2437    -96 [ESS]   alilang-setup  
  41. 1c:aa:07:f5:81:b2   2462    -77 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alipay-pre  
  42. 1c:aa:07:c7:1a:70   2412    -81 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alibaba-inc  
  43. 1c:aa:07:c6:ea:11   2412    -54 [ESS]   alibaba-guest  
  44. 1c:aa:07:c7:24:b1   2462    -75 [ESS]   alibaba-guest  
  45. 1c:aa:07:c7:1a:72   2412    -79 [WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS] alipay-pre  
  46. 3c:ce:73:c6:5d:61   2412    -69 [ESS]   alibaba-guest  
  47. <3>CTRL-EVENT-SCAN-RESULTS   
  48. <3>CTRL-EVENT-SCAN-RESULTS   
  49. <3>CTRL-EVENT-SCAN-RESULTS   
  50. <3>CTRL-EVENT-SCAN-RESULTS   
  51. <3>CTRL-EVENT-SCAN-RESULTS   
  52. <3>CTRL-EVENT-SCAN-RESULTS   
  53. <3>CTRL-EVENT-SCAN-RESULTS   
  54. <3>CTRL-EVENT-SCAN-RESULTS   
  55. <3>CTRL-EVENT-SCAN-RESULTS   
  56. <3>CTRL-EVENT-SCAN-RESULTS   
  57. <3>CTRL-EVENT-SCAN-RESULTS   
  58. <3>CTRL-EVENT-SCAN-RESULTS   
  59. > list_networks  
  60. network id / ssid / bssid / flags  
  61. 0   xiaodai any   
  62. 1   alibaba-inc any [CURRENT]  
  63. 2   77.NET  any   
  64. 3   alipay-wifi-podinns any   
  65. 4   alilang-setup   any   
  66. 5   CMCC    any   
  67. <3>CTRL-EVENT-SCAN-RESULTS   
  68. <3>CTRL-EVENT-SCAN-RESULTS   
  69. <3>CTRL-EVENT-SCAN-RESULTS   
  70. <3>CTRL-EVENT-SCAN-RESULTS   
  71. <3>CTRL-EVENT-SCAN-RESULTS   
  72. <3>CTRL-EVENT-SCAN-RESULTS   
  73. <3>CTRL-EVENT-SCAN-RESULTS   
  74. <3>CTRL-EVENT-SCAN-RESULTS   
  75. <3>CTRL-EVENT-SCAN-RESULTS   
  76. <3>CTRL-EVENT-SCAN-RESULTS   
  77. <3>CTRL-EVENT-SCAN-RESULTS   
  78. <3>CTRL-EVENT-SCAN-RESULTS   
  79. <3>CTRL-EVENT-SCAN-RESULTS   
  80. <3>CTRL-EVENT-SCAN-RESULTS   
  81. <3>CTRL-EVENT-SCAN-RESULTS   
  82. <3>CTRL-EVENT-SCAN-RESULTS   
  83. <3>CTRL-EVENT-SCAN-RESULTS   
  84. <3>CTRL-EVENT-SCAN-RESULTS   
  85. <3>CTRL-EVENT-SCAN-RESULTS   
  86. <3>CTRL-EVENT-SCAN-RESULTS   
  87. <3>CTRL-EVENT-SCAN-RESULTS   
  88. <3>CTRL-EVENT-SCAN-RESULTS   
  89. <3>CTRL-EVENT-SCAN-RESULTS   
  90. <3>CTRL-EVENT-SCAN-RESULTS   
root@android:/dev/socket # wpa_cli -p /dev/socket/                             
wpa_cli v2.0-devel-
Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.


Selected interface 'wpa_wlan0'

Interactive mode

<3>CTRL-EVENT-SCAN-RESULTS 
> 
> 
<3>CTRL-EVENT-SCAN-RESULTS 
> scan
FAIL-BUSY
<3>CTRL-EVENT-SCAN-RESULTS 
> scan
OK
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
> scan_results
bssid / frequency / signal level / flags / ssid
80:81:00:e3:ee:88	2447	-42	[ESS]	alipay-wifi-podinns
1c:aa:07:c6:ea:10	2412	-49	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alibaba-inc
bc:d1:77:9c:12:52	2437	-68	[WPA-PSK-CCMP][WPA2-PSK-CCMP][WPS][ESS]	21F_ISV
38:22:d6:4d:e9:60	2412	-75	[ESS]	CMCC
00:87:36:39:e4:df	2462	-75	[ESS]	mike.lx
38:22:d6:4d:a1:30	2412	-72	[ESS]	CMCC
1c:aa:07:c7:24:b0	2462	-75	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alibaba-inc
1c:aa:07:c7:24:b2	2462	-75	[ESS]	alilang-setup
c8:3a:35:07:e4:c8	2412	-82	[WPA2-PSK-CCMP][ESS]	mars-new
9e:21:6a:01:54:30	2437	-55	[ESS]	-UFreet-
3c:ce:73:c6:5d:63	2412	-69	[ESS]	alilang-setup
1c:aa:07:f5:81:b0	2462	-93	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alibaba-inc
1c:aa:07:c7:1a:71	2412	-76	[ESS]	alibaba-guest
1c:aa:07:c6:ea:12	2412	-55	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alipay-pre
1c:aa:07:f5:85:32	2437	-96	[ESS]	alilang-setup
1c:aa:07:f5:81:b2	2462	-77	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alipay-pre
1c:aa:07:c7:1a:70	2412	-81	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alibaba-inc
1c:aa:07:c6:ea:11	2412	-54	[ESS]	alibaba-guest
1c:aa:07:c7:24:b1	2462	-75	[ESS]	alibaba-guest
1c:aa:07:c7:1a:72	2412	-79	[WPA-EAP-TKIP][WPA2-EAP-TKIP+CCMP][ESS]	alipay-pre
3c:ce:73:c6:5d:61	2412	-69	[ESS]	alibaba-guest
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
> list_networks
network id / ssid / bssid / flags
0	xiaodai	any	
1	alibaba-inc	any	[CURRENT]
2	77.NET	any	
3	alipay-wifi-podinns	any	
4	alilang-setup	any	
5	CMCC	any	
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 
<3>CTRL-EVENT-SCAN-RESULTS 

获得当前连接详细参数:
    
    
  1. > signal_poll  
  2. RSSI=-28  
  3. LINKSPEED=65  
  4. NOISE=-97  
  5. FREQUENCY=2412  
> signal_poll
RSSI=-28
LINKSPEED=65
NOISE=-97
FREQUENCY=2412

其他命令(极其丰富):
  1. > help  
  2. commands:  
  3.   status [verbose] = get current WPA/EAPOL/EAP status  
  4.   ping = pings wpa_supplicant  
  5.   relog = re-open log-file (allow rolling logs)  
  6.   note <text> = add a note to wpa_supplicant debug log  
  7.   mib = get MIB variables (dot1x, dot11)  
  8.   help = show this usage help  
  9.   interface [ifname] = show interfaces/select interface  
  10.   level <debug level> = change debug level  
  11.   license = show full wpa_cli license  
  12.   quit = exit wpa_cli  
  13.   set = set variables (shows list of variables when run without arguments)  
  14.   get <name> = get information  
  15.   logon = IEEE 802.1X EAPOL state machine logon  
  16.   logoff = IEEE 802.1X EAPOL state machine logoff  
  17.   pmksa = show PMKSA cache  
  18.   reassociate = force reassociation  
  19.   preauthenticate <BSSID> = force preauthentication  
  20.   identity <network id> <identity> = configure identity for an SSID  
  21.   password <network id> <password> = configure password for an SSID  
  22.   new_password <network id> <password> = change password for an SSID  
  23.   pin <network id> <pin> = configure pin for an SSID  
  24.   otp <network id> <password> = configure one-time-password for an SSID  
  25.   passphrase <network id> <passphrase> = configure private key passphrase  
  26.     for an SSID  
  27.   bssid <network id> <BSSID> = set preferred BSSID for an SSID  
  28.   blacklist <BSSID> = add a BSSID to the blacklist  
  29.   blacklist clear = clear the blacklist  
  30.   blacklist = display the blacklist  
  31.   log_level <level> [<timestamp>] = update the log level/timestamp  
  32.   log_level = display the current log level and log options  
  33.   list_networks = list configured networks  
  34.   select_network <network id> = select a network (disable others)  
  35.   enable_network <network id> = enable a network  
  36.   disable_network <network id> = disable a network  
  37.   add_network = add a network  
  38.   remove_network <network id> = remove a network  
  39.   set_network <network id> <variable> <value> = set network variables (shows  
  40.     list of variables when run without arguments)  
  41.   get_network <network id> <variable> = get network variables  
  42.   list_creds = list configured credentials  
  43.   add_cred = add a credential  
  44.   remove_cred <cred id> = remove a credential  
  45.   set_cred <cred id> <variable> <value> = set credential variables  
  46.   save_config = save the current configuration  
  47.   disconnect = disconnect and wait for reassociate/reconnect command before  
  48.     connecting  
  49.   reconnect = like reassociate, but only takes effect if already disconnected  
  50.   scan = request new BSS scan  
  51.   scan_results = get latest scan results  
  52.   bss <<idx> | <bssid>> = get detailed scan result info  
  53.   get_capability <eap/pairwise/group/key_mgmt/proto/auth_alg> = get capabilies  
  54.   reconfigure = force wpa_supplicant to re-read its configuration file  
  55.   terminate = terminate wpa_supplicant  
  56.   interface_add <ifname> <confname> <driver> <ctrl_interface> <driver_param>  
  57.     <bridge_name> = adds new interface, all parameters but <ifname>  
  58.     are optional  
  59.   interface_remove <ifname> = removes the interface  
  60.   interface_list = list available interfaces  
  61.   ap_scan <value> = set ap_scan parameter  
  62.   scan_interval <value> = set scan_interval parameter (in seconds)  
  63.   sched_scan_intervals <short_interval> <long_interval> <num_short_intervals>  
  64.     Set sched scan intervals parameters  
  65.     <short|long_interval> = intervals values (in seconds)  
  66.     <num_short_intervals> = num of intervals to use short_interval  
  67.   bss_expire_age <value> = set BSS expiration age parameter  
  68.   bss_expire_count <value> = set BSS expiration scan count parameter  
  69.   stkstart <addr> = request STK negotiation with <addr>  
  70.   ft_ds <addr> = request over-the-DS FT with <addr>  
  71.   wps_pbc [BSSID] = start Wi-Fi Protected Setup: Push Button Configuration  
  72.   wps_pin <BSSID> [PIN] = start WPS PIN method (returns PIN, if not hardcoded)  
  73.   wps_check_pin <PIN> = verify PIN checksum  
  74.   wps_cancel Cancels the pending WPS operation  
  75.   wps_reg <BSSID> <AP PIN> = start WPS Registrar to configure an AP  
  76.   wps_ap_pin [params..] = enable/disable AP PIN  
  77.   wps_er_start [IP address] = start Wi-Fi Protected Setup External Registrar  
  78.   wps_er_stop = stop Wi-Fi Protected Setup External Registrar  
  79.   wps_er_pin <UUID> <PIN> = add an Enrollee PIN to External Registrar  
  80.   wps_er_pbc <UUID> = accept an Enrollee PBC using External Registrar  
  81.   wps_er_learn <UUID> <PIN> = learn AP configuration  
  82.   wps_er_set_config <UUID> <network id> = set AP configuration for enrolling  
  83.   wps_er_config <UUID> <PIN> <SSID> <auth> <encr> <key> = configure AP  
  84.   ibss_rsn <addr> = request RSN authentication with <addr> in IBSS  
  85.   sta <addr> = get information about an associated station (AP)  
  86.   all_sta = get information about all associated stations (AP)  
  87.   deauthenticate <addr> = deauthenticate a station  
  88.   disassociate <addr> = disassociate a station  
  89.   suspend = notification of suspend/hibernate  
  90.   resume = notification of resume/thaw  
  91.   drop_sa = drop SA without deauth/disassoc (test command)  
  92.   roam <addr> = roam to the specified BSS  
  93.   p2p_find [timeout] [type=*] = find P2P Devices for up-to timeout seconds  
  94.   p2p_stop_find = stop P2P Devices search  
  95.   p2p_connect <addr> <"pbc"|PIN> [ht40] = connect to a P2P Device  
  96.   p2p_listen [timeout] = listen for P2P Devices for up-to timeout seconds  
  97.   p2p_group_remove <ifname> = remove P2P group interface (terminate group if GO)  
  98.   p2p_group_add [ht40] = add a new P2P group (local end as GO)  
  99.   p2p_prov_disc <addr> <method> = request provisioning discovery  
  100.   p2p_get_passphrase = get the passphrase for a group (GO only)  
  101.   p2p_serv_disc_req <addr> <TLVs> = schedule service discovery request  
  102.   p2p_serv_disc_cancel_req <id> = cancel pending service discovery request  
  103.   p2p_serv_disc_resp <freq> <addr> <dialog token> <TLVs> = service discovery response  
  104.   p2p_service_update = indicate change in local services  
  105.   p2p_serv_disc_external <external> = set external processing of service discovery  
  106.   p2p_service_flush = remove all stored service entries  
  107.   p2p_service_add <bonjour|upnp> <query|version> <response|service> = add a local service  
  108.   p2p_service_del <bonjour|upnp> <query|version> [|service] = remove a local service  
  109.   p2p_reject <addr> = reject connection attempts from a specific peer  
  110.   p2p_invite <cmd> [peer=addr] = invite peer  
  111.   p2p_peers [discovered] = list known (optionally, only fully discovered) P2P peers  
  112.   p2p_peer <address> = show information about known P2P peer  
  113.   p2p_set <field> <value> = set a P2P parameter  
  114.   p2p_flush = flush P2P state  
  115.   p2p_cancel = cancel P2P group formation  
  116.   p2p_unauthorize <address> = unauthorize a peer  
  117.   p2p_presence_req [<duration> <interval>] [<duration> <interval>] = request GO presence  
  118.   p2p_ext_listen [<period> <interval>] = set extended listen timing  
  119.   wfd_subelem_set <subelem> [contents] = set Wi-Fi Display subelement  
  120.   wfd_subelem_get <subelem> = get Wi-Fi Display subelement  
  121.   sta_autoconnect <0/1> = disable/enable automatic reconnection  
  122.   tdls_discover <addr> = request TDLS discovery with <addr>  
  123.   tdls_setup <addr> = request TDLS setup with <addr>  
  124.   tdls_teardown <addr> = tear down TDLS with <addr>  
  125.   signal_poll = get signal parameters  
  126.   reauthenticate = trigger IEEE 802.1X/EAPOL reauthentication  
  127.   driver <command> = driver private commands  
> help
commands:
  status [verbose] = get current WPA/EAPOL/EAP status
  ping = pings wpa_supplicant
  relog = re-open log-file (allow rolling logs)
  note <text> = add a note to wpa_supplicant debug log
  mib = get MIB variables (dot1x, dot11)
  help = show this usage help
  interface [ifname] = show interfaces/select interface
  level <debug level> = change debug level
  license = show full wpa_cli license
  quit = exit wpa_cli
  set = set variables (shows list of variables when run without arguments)
  get <name> = get information
  logon = IEEE 802.1X EAPOL state machine logon
  logoff = IEEE 802.1X EAPOL state machine logoff
  pmksa = show PMKSA cache
  reassociate = force reassociation
  preauthenticate <BSSID> = force preauthentication
  identity <network id> <identity> = configure identity for an SSID
  password <network id> <password> = configure password for an SSID
  new_password <network id> <password> = change password for an SSID
  pin <network id> <pin> = configure pin for an SSID
  otp <network id> <password> = configure one-time-password for an SSID
  passphrase <network id> <passphrase> = configure private key passphrase
    for an SSID
  bssid <network id> <BSSID> = set preferred BSSID for an SSID
  blacklist <BSSID> = add a BSSID to the blacklist
  blacklist clear = clear the blacklist
  blacklist = display the blacklist
  log_level <level> [<timestamp>] = update the log level/timestamp
  log_level = display the current log level and log options
  list_networks = list configured networks
  select_network <network id> = select a network (disable others)
  enable_network <network id> = enable a network
  disable_network <network id> = disable a network
  add_network = add a network
  remove_network <network id> = remove a network
  set_network <network id> <variable> <value> = set network variables (shows
    list of variables when run without arguments)
  get_network <network id> <variable> = get network variables
  list_creds = list configured credentials
  add_cred = add a credential
  remove_cred <cred id> = remove a credential
  set_cred <cred id> <variable> <value> = set credential variables
  save_config = save the current configuration
  disconnect = disconnect and wait for reassociate/reconnect command before
    connecting
  reconnect = like reassociate, but only takes effect if already disconnected
  scan = request new BSS scan
  scan_results = get latest scan results
  bss <<idx> | <bssid>> = get detailed scan result info
  get_capability <eap/pairwise/group/key_mgmt/proto/auth_alg> = get capabilies
  reconfigure = force wpa_supplicant to re-read its configuration file
  terminate = terminate wpa_supplicant
  interface_add <ifname> <confname> <driver> <ctrl_interface> <driver_param>
    <bridge_name> = adds new interface, all parameters but <ifname>
    are optional
  interface_remove <ifname> = removes the interface
  interface_list = list available interfaces
  ap_scan <value> = set ap_scan parameter
  scan_interval <value> = set scan_interval parameter (in seconds)
  sched_scan_intervals <short_interval> <long_interval> <num_short_intervals>
    Set sched scan intervals parameters
    <short|long_interval> = intervals values (in seconds)
    <num_short_intervals> = num of intervals to use short_interval
  bss_expire_age <value> = set BSS expiration age parameter
  bss_expire_count <value> = set BSS expiration scan count parameter
  stkstart <addr> = request STK negotiation with <addr>
  ft_ds <addr> = request over-the-DS FT with <addr>
  wps_pbc [BSSID] = start Wi-Fi Protected Setup: Push Button Configuration
  wps_pin <BSSID> [PIN] = start WPS PIN method (returns PIN, if not hardcoded)
  wps_check_pin <PIN> = verify PIN checksum
  wps_cancel Cancels the pending WPS operation
  wps_reg <BSSID> <AP PIN> = start WPS Registrar to configure an AP
  wps_ap_pin [params..] = enable/disable AP PIN
  wps_er_start [IP address] = start Wi-Fi Protected Setup External Registrar
  wps_er_stop = stop Wi-Fi Protected Setup External Registrar
  wps_er_pin <UUID> <PIN> = add an Enrollee PIN to External Registrar
  wps_er_pbc <UUID> = accept an Enrollee PBC using External Registrar
  wps_er_learn <UUID> <PIN> = learn AP configuration
  wps_er_set_config <UUID> <network id> = set AP configuration for enrolling
  wps_er_config <UUID> <PIN> <SSID> <auth> <encr> <key> = configure AP
  ibss_rsn <addr> = request RSN authentication with <addr> in IBSS
  sta <addr> = get information about an associated station (AP)
  all_sta = get information about all associated stations (AP)
  deauthenticate <addr> = deauthenticate a station
  disassociate <addr> = disassociate a station
  suspend = notification of suspend/hibernate
  resume = notification of resume/thaw
  drop_sa = drop SA without deauth/disassoc (test command)
  roam <addr> = roam to the specified BSS
  p2p_find [timeout] [type=*] = find P2P Devices for up-to timeout seconds
  p2p_stop_find = stop P2P Devices search
  p2p_connect <addr> <"pbc"|PIN> [ht40] = connect to a P2P Device
  p2p_listen [timeout] = listen for P2P Devices for up-to timeout seconds
  p2p_group_remove <ifname> = remove P2P group interface (terminate group if GO)
  p2p_group_add [ht40] = add a new P2P group (local end as GO)
  p2p_prov_disc <addr> <method> = request provisioning discovery
  p2p_get_passphrase = get the passphrase for a group (GO only)
  p2p_serv_disc_req <addr> <TLVs> = schedule service discovery request
  p2p_serv_disc_cancel_req <id> = cancel pending service discovery request
  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 of service 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 specific peer
  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
  p2p_unauthorize <address> = unauthorize a peer
  p2p_presence_req [<duration> <interval>] [<duration> <interval>] = request GO presence
  p2p_ext_listen [<period> <interval>] = set extended listen timing
  wfd_subelem_set <subelem> [contents] = set Wi-Fi Display subelement
  wfd_subelem_get <subelem> = get Wi-Fi Display subelement
  sta_autoconnect <0/1> = disable/enable automatic reconnection
  tdls_discover <addr> = request TDLS discovery with <addr>
  tdls_setup <addr> = request TDLS setup with <addr>
  tdls_teardown <addr> = tear down TDLS with <addr>
  signal_poll = get signal parameters
  reauthenticate = trigger IEEE 802.1X/EAPOL reauthentication
  driver <command> = driver private commands
 
   
 
   


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值