- 论坛徽章:
- 0
|
本帖最后由 armips 于 2011-11-17 11:57 编辑
请确保有wpa_supplican目录(当wpa_supplican启动后)
目录下有wlan0的socket节点,应该就没有问题了- ls /var/run/wpa_supplicant/ -l
- total 0
- srwxrwx--- 1 root root 0 Nov 17 11:41 wlan0
复制代码 这时应该就好用了:- # wpa_cli
- wpa_cli v0.7.3
- Copyright (c) 2004-2010, Jouni Malinen <j@w1.fi> and contributors
- This program is free software. You can distribute it and/or modify it
- under the terms of the GNU General Public License version 2.
- Alternatively, this software may be distributed under the terms of the
- BSD license. See README and COPYING for more details.
- Selected interface 'wlan0'
- Interactive mode
- > help
- commands:
- status [verbose] = get current WPA/EAPOL/EAP status
- ping = pings wpa_supplicant
- 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)
- 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
- 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
- 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
- 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_reg <BSSID> <AP PIN> = start WPS Registrar to configure an AP
- wps_er_start = 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
- ibss_rsn <addr> = request RSN authentication with <addr> in IBSS
- 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
- > quit
复制代码 |
|