aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wpa_cli.c
Commit message (Collapse)AuthorAgeFilesLines
* wpa_cli: Use os_exec() for action script executionJouni Malinen2015-10-201-17/+8
| | | | | | | | | | | Use os_exec() to run the action script operations to avoid undesired command line processing for control interface event strings. Previously, it could have been possible for some of the event strings to include unsanitized data which is not suitable for system() use. (CVE-2014-3686) Change-Id: I0005ed08e4b06ba3d2ebe95b9240050e47ed2e8c Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Tested-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
* WFD: Add Wi-Fi Display supportJouni Malinen2012-12-141-1/+50
| | | | | | | | | | | | | | | | | | | | This commit adds control interface commands and internal storage of Wi-Fi Display related configuration. In addition, WFD IE is now added to various P2P frames, Probe Request/Response, and (Re)Association Request/Response frames. WFD subelements from peers are stored in the P2P peer table. Following control interface commands are now available: SET wifi_display <0/1> GET wifi_display WFD_SUBELEM_SET <subelem> [hexdump of length+body] WFD_SUBELEM_GET <subelem> Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> [vishalm@ti.com: Backported it to curent tree] Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Change-Id: Ief0cd61903facd9209927d9dc84c8f093f3b6bac
* P2P: Add optional "ht40" argument for p2p_connectRajkumar Manoharan2012-09-041-1/+1
| | | | | | | This can be used to start negotiated GO in 40 MHz channel width in 5GHz band. Signed-hostap: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
* P2P: Enable 40 MHz support for autonomous P2P group additionRajkumar Manoharan2012-09-041-1/+1
| | | | | | | | Add optional "ht40" argument for p2p_group_add command to enable 40 MHz in 5GHz band. This configures the secondary channel, when HT support is enabled and if the HW supports 40 MHz channel width. Signed-hostap: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
* Set buffer length the same as in wpa_supplicant_ctrl_iface_process()Dmitry Shmidt2012-08-021-2/+2
| | | | | | | Bug: 5236589 Change-Id: Iae8405aa17d5cc6bbffcff3a37d81df74143aabe Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add extended 'driver' commandDmitry Shmidt2012-08-021-0/+23
| | | | | Change-Id: Ib589f44f471c1198973ee0a0695b90097fcc9b33 Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add API and CLI command to control sched scan intervalsEyal Shapira2012-08-021-0/+25
| | | | | | | | Enable control over the sched scan intervals parameters through a new wpa_s API (SCHED_SCAN_INTERVALS) and a matching wpa_cli command. Signed-off-by: Eyal Shapira <eyal@wizery.com>
* wpa_cli: p2p_connect to should receive 7 parametersYoni Divinsky2012-07-301-1/+11
| | | | | | | | In wpa_cli the p2p_connect command should be able to receive and send the ctrl_iface 7 parameters. The fix is essential to pass p2p wifi certification. Signed-hostap: Yoni Divinsky <yoni.divinsky@ti.com>
* WPS ER: Add support for building NFC configuration tokenJouni Malinen2012-06-281-1/+32
| | | | | | | | WPS_ER_NFC_CONFIG_TOKEN command can now be used to build a NFC configuration token based on AP Settings learnt with WPS_ER_LEARN or set with WPS_ER_CONFIG. Signed-hostap: Jouni Malinen <j@w1.fi>
* WPS: Fix ifdef use for the new NFC mechanism in wpa_supplicantJouni Malinen2012-06-281-2/+8
| | | | | | | Use CONFIG_WPS_NFC instead of CONFIG_WPS_OOB for the NFC specific new ctrl_iface commands. Signed-hostap: Jouni Malinen <j@w1.fi>
* WPS: Add support for NFC configuration token from external programJouni Malinen2012-06-281-0/+29
| | | | | | | | The new wpa_supplicant ctrl_iface command WPS_NFC_TAG_READ can now be used to process NFC tags read by external programs to initiate wpa_supplicant to use NFC Configuration Token to create a new network. Signed-hostap: Jouni Malinen <j@w1.fi>
* WPS: Add new mechanism for NFC config method using password tokenJouni Malinen2012-06-271-0/+48
| | | | | | | | | | | | Instead of requiring low-level access to an NFC device and synchronous operations, the new WPS_NFC_TOKEN and WPS_NFC ctrl_iface commands can be used to build a NFC password token and initiate WPS protocol run using that token (or pre-configured values) as separate commands. The WPS_NFC_TOKEN output can be written to a NFC tag using an external program, i.e., wpa_supplicant does not need to have low-level code for NFC operations for this. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add autoscan command into wpa_cliTomasz Bursztyka2012-06-261-0/+26
| | | | Signed-hostap: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
* HS 2.0: Add Hotspot 2.0 station ctrl_ifaceJay Katabathuni2012-05-081-0/+63
| | | | Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Add MASK=0xH option for the ctrl_iface BSS commandDmitry Shmidt2012-04-071-4/+7
| | | | | | | | This optional parameter to the BSS command can be used to select which fields are included in the output to avoid having to parse through unneeded information and to reduce the buffer size. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Better wpa_cli error messages when connect failsBen Greear2012-04-061-6/+8
| | | | Signed-hostap: Ben Greear <greearb@candelatech.com>
* Clean up: Replace standard lib methods with os.h onesNirav Shah2012-03-311-4/+4
| | | | | | | | | Some of the standard lib functions being used directly are redefined in src/utils/os.h thus providing an abstraction. Change code to use os_* functions instead of directly using the lib functions. Signed-hostap: Nirav Shah <nirav.j2.shah@intel.com> Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
* Add wpa_supplicant AP mode STA deauthenticate/disassociate commandsJithu Jance2012-02-251-0/+42
| | | | | | | | Move disassociate and deauthenticate commands to ctrl_iface_ap.c, so that they ares accessible for wpa_supplicant AP mode and wpa_cli (with CONFIG_AP option enabled). Signed-hostap: Jithu Jance <jithu@broadcom.com>
* Interworking: Add ctrl_iface commands for managing credentialsJouni Malinen2012-02-161-0/+67
| | | | | | | | New wpa_cli commands list_creds, add_cred, remove_cred, and set_cred can now be used to manage credentials similarly to the commands used with network blocks. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Allow ENABLE_NETWORK to avoid automatic connectionJouni Malinen2012-02-161-1/+6
| | | | | | | | Extra parameter "no-connect" can now be added to the ENABLE_NETWORK ctrl_iface command to avoid automatic connection to the enabled network. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove the GPL notification from files contributed by Jouni MalinenJouni Malinen2012-02-111-8/+2
| | | | | | | Remove the GPL notification text from the files that were initially contributed by myself. Signed-hostap: Jouni Malinen <j@w1.fi>
* Select the BSD license terms as the only license alternativeJouni Malinen2012-02-111-20/+3
| | | | | | | | | | | | | | | Simplify licensing terms for hostap.git by selecting the BSD license alternative for any future distribution. This drops the GPL v2 alternative from distribution terms and from contribution requirements. The BSD license alternative that has been used in hostap.git (the one with advertisement clause removed) is compatible with GPL and as such the software in hostap.git can still be used with GPL projects. In addition, any new contribution to hostap.git is expected to be licensed under the BSD terms that allow the changes to be merged into older hostap repositories that still include the GPL v2 alternative. Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Allow Device ID to be specified for p2p_find commandJouni Malinen2012-01-081-1/+4
| | | | | | | dev_id=<P2P Device Addr> can now be specified as an argument to p2p_find to request P2P find for a specific P2P device. Signed-hostap: Jouni Malinen <j@w1.fi>
* Update copyright notices to include year 2012Jouni Malinen2012-01-011-1/+1
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* Add AP-STA-CONNECTED and DISCONNECTED events to wpa_cli -aNeeraj Kumar Garg2011-12-201-0/+4
| | | | Signed-hostap: Neeraj Kumar Garg <neerajkg@broadcom.com>
* P2P: Add optional "join" argument for p2p_prov_disc commandJithu Jance2011-12-061-6/+10
| | | | | | | | This can be used to request Provision Discovery Request to be sent for the purpose of joining a running group, e.g., to request the GO to display a PIN that we can then use with p2p_connect join command. Signed-hostap: Jithu Jance <jithu@broadcom.com>
* wpa_supplicant AP: Allows passphrase to be fetchedJouni Malinen2011-12-011-2/+5
| | | | | | | | "wpa_cli status wps" can now be used to fetch the WPA2-Personal passphrase from AP mode operation with wpa_supplicant to make it easier to meet WPS requirements for legacy STA support. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wpa_cli: Add action script call on P2P-GO-NEG-FAILURE eventsDmitry Shmidt2011-11-251-0/+2
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_cli: Correct return value of wpa_cli_cmd_p2p_peersDavid Spinadel2011-11-241-2/+2
| | | | Signed-off-by: David Spinadel <david.spinadel@intel.com>
* Add REAUTHENTICATE ctrl_iface commandJouni Malinen2011-11-131-0/+9
| | | | | | | This can be used to trigger EAPOL reauthentication which can be useful for testing purposes. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_cli: Fix compiler warnings on unused functionsJouni Malinen2011-11-031-0/+4
| | | | | | | Some of the parameter completion functions are only used if CONFIG_P2P=y. Signed-hostap: Jouni Malinen <j@w1.fi>
* wpa_cli: Argument completion for p2p_group_removeJouni Malinen2011-10-281-0/+71
| | | | Track active P2P groups and complete p2p_group_remove argument.
* wpa_cli: Add completion functions for P2P peers and BSSesJouni Malinen2011-10-281-0/+236
| | | | | Keep a local list of found P2P peers and BSS entries and use those to complete arguments for p2p_peer, p2p_connect, and bss commands.
* Add blacklist commandDmitry Shmidt2011-10-211-0/+31
| | | | | | | | | | This command allows an external program manage the BSS blacklist and display its current contents. Note: The blacklist is considered to be internal mechanism within wpa_supplicant and changing it can have unexpected results. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add log_level commandDmitry Shmidt2011-10-181-0/+30
| | | | | | | This can be used to display the current debugging level and to change the log level during run time. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Interworking: Add commands for network selectionJouni Malinen2011-10-161-0/+44
| | | | | | | This adds the basic mechanism for running through network selection: scan, ANQP fetch, network selection, and connection. Actual rules for network selection and the creation of the network block are still missing, but will be added in separate commits.
* Interworking: Add ANQP query requestsJouni Malinen2011-10-161-0/+45
| | | | | | | | | | | Add mechanism for using GAS/ANQP to query Interworking related information from APs. The received information is stored in the BSS table and can be viewed with ctrl_iface BSS command. New ctrl_iface command ANQP_GET can be used to fetch ANQP elements from a specific AP. Additional commands FETCH_ANQP and STOP_FETCH_ANQP can be used to initiate and stop an iteration through all APs in the BSS table that indicate support Interworking to fetch ANQP elements from them.
* wpa_cli: Make second argument to set command optionalJouni Malinen2011-10-161-2/+6
| | | | This can be used to indicate zero length value.
* wpa_cli: Add missing parameter for P2P_GROUP_ADD commandMarcin Klimczewski2011-07-041-1/+6
| | | | | Both freq and persistent parameters of P2P_GROUP_ADD could be passed at one time.
* Add 'signal_poll' command interfaceDmitry Shmidt2011-04-151-0/+10
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Make scan interval configurableDmitry Shmidt2011-04-111-0/+23
| | | | | | | | It is now possible to configure the the time in seconds that wpa_supplicant waits before requesting a new scan after failing to find a suitable network in scan results. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* wpa_supplicant: Parameterize BSS table expiration age + countSam Leffler2011-03-201-0/+46
| | | | | | Replace compile-time BSS cache expiration age and scan count by config parameters that can be set via wpa_cli and the new D-Bus API. The latter is done with interface properties BSSExpireAge and BSSExpireCount.
* wpa_cli: Allow wpa_supplicant control interface default to be changedJouni Malinen2011-03-151-2/+5
| | | | | CONFIG_CTRL_IFACE_DIR can now be defined to modify the default directory wpa_cli uses for the wpa_supplicant control interface.
* wpa_cli: Add Android socket supportDmitry Shmidt2011-03-151-10/+33
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* TDLS: Add initial support for TDLS (IEEE Std 802.11z-2010)Ganesh Prasadh2011-03-061-0/+72
|
* Update copyright notices to include the new yearJouni Malinen2011-02-271-2/+2
|
* wpa_cli: Add newline to end of responses in interactive modeJouni Malinen2011-02-211-0/+2
| | | | | | | | Some of the wpa_supplicant control interface commands, like WPS_PIN, may not include a newline in the end of the response. This can result in the response being lost when wpa_cli redraws the screen after an event message. Add a newline after such responses in interactive mode to avoid the problem.
* wpa_supplicant: Support 'relog' command to re-open log filesBen Greear2011-02-061-0/+9
| | | | | | | | | This allows rolling log files: mv log.txt log.txt.1 wpa_cli relog Signed-off-by: Ben Greear <greearb@candelatech.com>
* P2P: Fix wpa_cli help typoMasashi Honma2010-12-171-1/+1
|
* P2P: Add p2p_unauthorize commandSudhakar Swaminathan2010-11-251-0/+24
| | | | | This can be used to remove authorization from a previous p2p_connect commands that has not yet resulted in completed GO Negotiation.