~ # wpa_cli -v
wpa_cli v2.4
Copyright (c) 2004-2015, Jouni Malinen and contributors
~ #
~ # wpa_cli -h
wpa_cli [-p] [-i] [-hvB] [-a] \
[-P] [-g] [-G] [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: /var/run/wpa_supplicant
default interface: first interface found in socket path
commands:
status [verbose] = get current WPA/EAPOL/EAP status
ifname = get current interface name
ping = pings wpa_supplicant
relog = re-open log-file (allow rolling logs)
note = add a note to wpa_supplicant debug log
mib = get MIB variables (dot1x, dot11)
help [command] = show usage help
interface [ifname] = show interfaces/select interface
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)
dump = dump config variables
get = get information
logon = IEEE 802.1X EAPOL state machine logon
logoff = IEEE 802.1X EAPOL state machine logoff
pmksa = show PMKSA cache
pmksa_flush = flush PMKSA cache entries
reassociate = force reassociation
reattach = force reassociation back to the same BSS
preauthenticate = force preauthentication
identity = configure identity for an SSID
password = configure password for an SSID
new_password = change password for an SSID
pin = configure pin for an SSID
otp = configure one-time-password for an SSID
passphrase = configure private key passphrase
for an SSID
sim = report SIM operation result
bssid = set preferred BSSID for an SSID
blacklist = add a BSSID to the blacklist
blacklist clear = clear the blacklist
blacklist = display the blacklist
log_level [] = update the log level/timestamp
log_level = display the current log level and log options
list_networks = list configured networks
select_network = select a network (disable others)
enable_network = enable a network
disable_network = disable a network
add_network = add a network
remove_network = remove a network
set_network = set network variables (shows
list of variables when run without arguments)
get_network = get network variables
dup_network = duplicate network variables
list_creds = list configured credentials
add_cred = add a credential
remove_cred = remove a credential
set_cred = set credential variables
get_cred = get 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 < | > = get detailed scan result info
get_capability = get capabilies
reconfigure = force wpa_supplicant to re-read its configuration file
terminate = terminate wpa_supplicant
interface_add
= adds new interface, all parameters but
are optional
interface_remove = removes the interface
interface_list = list available interfaces
ap_scan = set ap_scan parameter
scan_interval = set scan_interval parameter (in seconds)
bss_expire_age = set BSS expiration age parameter
bss_expire_count = set BSS expiration scan count parameter
bss_flush = set BSS flush age (0 by default)
stkstart = request STK negotiation with
ft_ds = request over-the-DS FT with
wps_pbc [BSSID] = start Wi-Fi Protected Setup: Push Button Configuration
wps_pin [PIN] = start WPS PIN method (returns PIN, if not hardcoded)
wps_check_pin = verify PIN checksum
wps_cancel Cancels the pending WPS operation
wps_nfc [BSSID] = start Wi-Fi Protected Setup: NFC
wps_nfc_config_token = build configuration token
wps_nfc_token = create password token
wps_nfc_tag_read = report read NFC tag with WPS data
nfc_get_handover_req = create NFC handover request
nfc_get_handover_sel = create NFC handover select
nfc_report_handover = report completed NFC handover
wps_reg = 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 = add an Enrollee PIN to External Registrar
wps_er_pbc = accept an Enrollee PBC using External Registrar
wps_er_learn = learn AP configuration
wps_er_set_config = set AP configuration for enrolling
wps_er_config = configure AP
wps_er_nfc_config_token = build NFC configuration token
ibss_rsn = request RSN authentication with in IBSS
sta = get information about an associated station (AP)
all_sta = get information about all associated stations (AP)
deauthenticate = deauthenticate a station
disassociate = disassociate a station
chan_switch [sec_channel_offset=] [center_freq1=] [center_freq2=] [bandwidth=] [blocktx] [ht|vht] = CSA parameters
suspend = notification of suspend/hibernate
resume = notification of resume/thaw
roam = 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_asp_provision adv_id= conncap= [info=] = provision with a P2P ASP Device
p2p_asp_provision_resp adv_id= [role] [info=] = provision with a P2P ASP Device
p2p_connect <"pbc"|PIN> [ht40] = connect to a P2P Device
p2p_listen [timeout] = listen for P2P Devices for up-to timeout seconds
p2p_group_remove = remove P2P group interface (terminate group if GO)
p2p_group_add [ht40] = add a new P2P group (local end as GO)
p2p_prov_disc = request provisioning discovery
p2p_get_passphrase = get the passphrase for a group (GO only)
p2p_serv_disc_req = schedule service discovery request
p2p_serv_disc_cancel_req = cancel pending service discovery request
p2p_serv_disc_resp
~ # wpa_cli dump
Selected interface 'p2p0'
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=null
eapol_version=1
ap_scan=1
disable_scan_offload=0
fast_reauth=1
opensc_engine_path=null
pkcs11_engine_path=null
pkcs11_module_path=null
openssl_ciphers=null
pcsc_reader=null
pcsc_pin=null
external_sim=0
driver_param=null
dot11RSNAConfigPMKLifetime=0
dot11RSNAConfigPMKReauthThreshold=0
dot11RSNAConfigSATimeout=0
update_config=1
device_name=AAA
manufacturer=BBB
model_name=CCC
model_number=0.0.0.1
serial_number=1234567
config_methods=virtual_push_button physical_display
wps_cred_processing=0
p2p_listen_reg_class=0
p2p_listen_channel=0
p2p_oper_reg_class=0
p2p_oper_channel=11
p2p_go_intent=1
p2p_ssid_postfix=1195linux
persistent_reconnect=1
p2p_intra_bss=1
p2p_group_idle=0
p2p_passphrase_len=0
p2p_add_cli_chan=0
p2p_optimize_listen_chan=0
p2p_go_ht40=0
p2p_go_vht=0
p2p_disabled=0
p2p_go_ctwindow=0
p2p_no_group_iface=1
p2p_ignore_shared_freq=0
bss_max_count=200
bss_expiration_age=180
bss_expiration_scan_count=2
filter_ssids=0
filter_rssi=0
max_num_sta=128
disassoc_low_ack=0
hs20=0
interworking=0
access_network_type=15
pbc_in_m1=0
autoscan=null
wps_nfc_dev_pw_id=0
ext_password_backend=null
p2p_go_max_inactivity=300
auto_interworking=0
okc=0
pmf=0
dtim_period=0
beacon_int=0
ignore_old_scan_res=0
scan_cur_freq=0
sched_scan_interval=0
tdls_external_control=0
osu_dir=null
wowlan_triggers=null
p2p_search_delay=500
mac_addr=0
rand_addr_lifetime=60
preassoc_mac_addr=0
key_mgmt_offload=1
passive_scan=0
reassoc_same_bss_optim=0
p2p_go_ssid=DIRECT-xyfeb7d1
p2p_go_passphrase=12345678
enforce_pin=0
static_pin=12345670
~ #
~ # wpa_cli p2p_peer 0c:8b:fd:e5:1b:50
Selected interface 'p2p0'
0c:8b:fd:e5:1b:50
pri_dev_type=1-0050F200-0
device_name=DESKTOP-5VBHCUA
manufacturer=
model_name=
model_number=
serial_number=
config_methods=0x11e8
dev_capab=0x24
group_capab=0x82
level=0
persistent=1
age=45
listen_freq=2462
wps_method=not-ready
interface_addr=00:00:00:00:00:00
member_in_go_dev=00:00:00:00:00:00
member_in_go_iface=00:00:00:00:00:00
go_neg_req_sent=0
go_state=remote
dialog_token=7
intended_addr=0e:8b:fd:e5:1b:50
country=XX
oper_freq=2412
req_config_methods=0x0
flags=[REPORTED][PREFER_PERSISTENT_GROUP]
status=0
invitation_reqs=0
ext_listen_period=336
ext_listen_interval=486
wfd_subelems=00000601101c440006
~ #
P2P-DEVICE-FOUND 12:9f:a9:fe:fd:39 p2p_dev_addr=12:9f:a9:fe:fd:39 pri_dev_type=7-0050F204-1 name='SBMC FEFD39' config_methods=0x88 dev_capab=0x21 group_capab=0x0 wfd_dev_info=0x0111216a0032 new=1
P2P-DEVICE-FOUND 12:9f:a9:fe:fd:39 p2p_dev_addr=12:9f:a9:fe:fd:39 pri_dev_type=7-0050F204-1 name='SBMC FEFD39' config_methods=0x88 dev_capab=0x21 group_capab=0x2a wfd_dev_info=0x0111216a0032 new=1
P2P-PROV-DISC-PBC-REQ 12:9f:a9:fe:fd:39 p2p_dev_addr=12:9f:a9:fe:fd:39 pri_dev_type=7-0050F204-1 name='SBMC FEFD39' config_methods=0x88 dev_capab=0x21 group_capab=0x0
P2PS-PROV-DONE 12:9f:a9:fe:fd:39 status=0 conncap=1 adv_id=4d6fc8 adv_mac=12:9f:a9:fe:b7:d1 session=12ab34 mac=12:9f:a9:fe:b7:d1 dev_passwd_id=1
P2P-PROV-DISC-SHOW-PIN 12:9f:a9:fe:fd:39 12345670 p2p_dev_addr=12:9f:a9:fe:fd:39 pri_dev_type=7-0050F204-1 name='SBMC FEFD39' config_methods=0x88 dev_capab=0x21 group_capab=0x2a