aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
Commit message (Collapse)AuthorAgeFilesLines
* 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-283-0/+238
| | | | | 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.
* P2P: Fix frequency in the P2P_EVENT_GROUP_STARTED eventJithu Jance2011-10-281-2/+5
| | | | | | P2P Client did not show correct frequency in the control interface event P2P_EVENT_GROUP_STARTED. Fix that by using the frequency from the BSS table or association event.
* P2P: Notify device expiry via P2P-DEVICE-LOST eventJithu Jance2011-10-281-0/+3
| | | | | This patch will notify applications listening over control socket about the device expiry [from p2p peer list].
* Automatically include WPS and AP support if P2P is enabledJouni Malinen2011-10-282-0/+4
| | | | | CONFIG_WPS=y and CONFIG_AP=y are required if CONFIG_P2P=y so we may as well enable them automatically in that case.
* P2P: Stop any on-going "p2p_find" on creating an Autonomous GOJithu Jance2011-10-251-0/+4
| | | | | | | | | | | | This patch stops any on-going "p2p_find" on creating an Autonomous GO. This is already taken care in case of invoking a persistent GO. GO as such will be advertising via the beacons for other devices to discover. So normally the GO doesn't need to do a p2p_find until and unless it wants to invite a P2P Client. In case of Invite scenario, logically it is better to do a explicit discover [via user intervention] after the GO is created. This patch will help to reduce battery wastage [due to p2p_find operations] in scenarios where user creates a GO and doesn't initiate a connection.
* P2P: Fix wpa_supplicant crash on P2P WPS PBC overlap caseJithu Jance2011-10-242-10/+16
| | | | | | | Once PBC overlap detected when using dynamic group interfaces, the wpa_s corresponding to P2P group interface is freed. This patch avoids accessing the wpa_s data structure after it is freed. This fixes a possible crash in P2P client role in such a case.
* P2P: Advertise Persistent Reconnect group capabilityJouni Malinen2011-10-241-1/+11
| | | | | | | | The persistent_reconnect configuration parameter was used to decide whether to accept invitation to re-establish a persistent group. However, this was not being advertised in the Group Capability bitmap. Add the Persistent Reconnect bit based on this configuration to GO Negotiation frames and Beacon/Probe Response frames from the GO.
* TDLS: Support mgmt-frame Tx for ctrl-iface operationsArik Nemtsov2011-10-231-4/+16
| | | | | | | | Use capability information to decide whether to perform a given TDLS operation internally or through mgmt-frame Tx. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS: Add peer as a STA during link setupArik Nemtsov2011-10-231-0/+22
| | | | | | | | | | | | | | | | | | | Before commencing setup, add a new STA entry to the driver representing the peer. Later during setup, update the STA entry using information received from the peer. Extend sta_add() callback for adding/modifying a TDLS peer entry and connect it to the TDLS state machine. Implement this callback for the nl80211 driver and send peer information to kernel. Mark TDLS peer entries with a new flag and translate it to a corresponding nl80211 flag in the nl80211 driver. In addition, correct TDLS related documentation in the wpa_driver_ops structure. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS: Implement low-ack event for lost TDLS peersArik Nemtsov2011-10-231-0/+4
| | | | | | | | Disable the direct connection when a TDLS peer stops responding to packets, as indicated by the "LOW ACK" event coming from a driver. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS: Support sending a teardown frame from usermodeArik Nemtsov2011-10-231-3/+2
| | | | | | | | | | When a driver does not implement the TDLS_TEARDOWN operation internally, send an explicit TDLS link teardown frame to the driver. Change all teardown calls to use these calling semantics. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS/nl80211: Support receiving TDLS discovery response framesArik Nemtsov2011-10-231-0/+10
| | | | | | | | | Register for the TDLS discovery response public action frame in nl80211. Print out a debug message when a Discovery Resp frame is received and validated. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS: Get TDLS related capabilities from driverArik Nemtsov2011-10-233-0/+24
| | | | | | | | | | | | | | Put glue code in place to propagate TDLS related driver capabilities to the TDLS state machine. If the driver doesn't support capabilities, assume TDLS is supported internally. When TDLS is explicitly not supported, disable all user facing TDLS operations. Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* TDLS: Support setting CONFIG_TDLS_TESTING in .configArik Nemtsov2011-10-232-0/+8
| | | | | Signed-off-by: Arik Nemtsov <arik@wizery.com> Cc: Kalyan C Gaddam <chakkal@iit.edu>
* Remove unused driver_ops client MLME functionsJouni Malinen2011-10-231-47/+0
| | | | | | | | These driver_ops functions set_channel, set_ssid, set_bssid, mlme_add_sta, and mlme_remove_sta were used with the user space MLME implementation in wpa_supplicant. That was only for testing purposes and was removed, but these driver_ops were forgotten. Remove them now to remove confusing driver_ops definitions.
* wpa_supplicant: Check rate sets before joining BSSChristian Lamparter2011-10-231-0/+112
| | | | | | | IEEE Std 802.11-2007 7.3.2.2 demands that in order to join a BSS all required basic rates have to be supported by the hardware. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* wpa_supplicant: Unify hardware feature dataChristian Lamparter2011-10-236-49/+42
| | | | | | | | | The hardware feature data is required in several different places throughout the code. Previously, the data was acquired and freed on demand, but with this patch wpa_supplicant will keep a single copy around at runtime for everyone to use. Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* Postpone global_init() call until first driver instance is initializedJouni Malinen2011-10-231-20/+23
| | | | | | | This avoids allocating global driver state for driver wrappers that are built in but not used. This can save some resources and avoids failures with driver_nl80211.c that is now initializing netlink connections for nl80211 in global_init().
* dbus: Removed unused local variableGrant Erickson2011-10-231-8/+0
| | | | Signed-off-by: Grant Erickson <marathon96@gmail.com>
* Comment out scard initialization code if PCSC_FUNCS is not setJouni Malinen2011-10-231-0/+2
|
* Remove user space client MLMEJouni Malinen2011-10-2212-3538/+20
| | | | | | | | | This code was used only with driver_test.c to allow MLME operations in hostapd to be tested without having to use a real radio. There are no plans on extending this to any other use than testing and mac80211_hwsim has now obsoled the need for this type of testing. As such, we can drop this code from wpa_supplicant to clean up the implementation of unnecessary complexity.
* Add CONFIG_WPS_REG_DISABLE_OPEN to defconfigAndrii Bordunov2011-10-221-0/+3
|
* WPS: Use ifdef blocks consistently for CONFIG_WPS_REG_DISABLE_OPENAndrii Bordunov2011-10-221-0/+4
| | | | | The registrar variable is used only if this macro is defined, so no need to set it otherwise.
* wpa_priv: Link in trace.o to fix CONFIG_WPA_TRACE buildAndrii Bordunov2011-10-221-0/+1
|
* wpa_priv: Link in ieee802_11_common.o if driver_nl80211 is usedJouni Malinen2011-10-221-0/+3
|
* wpa_priv: Update function arguments to fix compilationAndrii Bordunov2011-10-221-2/+2
|
* Share a single wpa_scan_results_free() implementationJouni Malinen2011-10-222-15/+0
| | | | | There is not really a very good location for this anywhere, but the function is small enough to live as an inline function for now.
* Prevent ap_scan change during associationDmitry Shmidt2011-10-211-0/+10
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Set ANDROID_LOG_NAME depending on applicationDmitry Shmidt2011-10-211-0/+3
| | | | Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Add blacklist commandDmitry Shmidt2011-10-212-0/+88
| | | | | | | | | | 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>
* Interworking: Allow ANT to be configured for Probe Request framesJouni Malinen2011-10-214-2/+17
| | | | | Access Network Type can now be configured (default: 15 = wildcard) to limit which APs reply to the scan.
* AP: Pass only bssid/addr/wds to EVENT_RX_FROM_UNKNOWNJohannes Berg2011-10-203-10/+5
|
* Fix segfault on error path if driver initialization failsJouni Malinen2011-10-201-1/+2
| | | | | wpa_s->wpa is NULL in this case and we better not call WPA state machine functions.
* AP: Do station poll in driver wrapperJohannes Berg2011-10-203-0/+14
| | | | | | | | | This offloads the station polling to driver wrappers, which may offload it again to the driver. The hostap driver wrapper uses "real" data frames while nl80211 uses null data frames. Also add a specific event to indicate that a poll was successful for future use with the nl80211 driver.
* Interworking: Use unsigned integer for bitfieldJouni Malinen2011-10-201-3/+3
| | | | | Signed integer with one-bit value does not make much sense, so clean this up by using an unsigned integer instead.
* Add log_level commandDmitry Shmidt2011-10-182-0/+126
| | | | | | | 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>
* Android: Sync Android.mk with recent Makefile changesJouni Malinen2011-10-181-7/+37
|
* Remove set_intra_bss() driver_opsJouni Malinen2011-10-172-9/+0
| | | | | This has been replaced by the isolate parameter available through set_ap() calls.
* Start deprecating various AP mode driver_opsJouni Malinen2011-10-171-1/+1
| | | | | The preferred way of configuring AP mode will be to use set_ap() instead of number of separate operations hostapd has collected over the years.
* Move SA Query mechanism into a file that can be shared more easilyMahesh Palivela2011-10-171-0/+1
| | | | | | This is the first step in allowing SA Query mechanism in hostapd to be used with drivers that implement authentication and association MLME/SME (i.e., do not use ieee802_11.c).
* Interworking: Document network selection parametersJouni Malinen2011-10-161-0/+18
|
* Interworking: Support for using EAP-SIM credentials in network selectionJouni Malinen2011-10-164-5/+253
| | | | | | | | | | | | | New configuration parameters home_imsi and home_milenage can be used to configure SIM/USIM simulator parameters for network selection based on SIM/USIM credentials. home_imsi=(MCC | MNC | '-' | rest of IMSI) home_milenage=(Ki):(OPc):(SQN) For example: home_imsi=310026-000000000 home_milenage=90dca4eda45b53cf0f12d7c9c3bc6a89:cb9cccc4b9258e6dca4760379fb82581:000000000123
* Interworking: Support username/password based network selectionJouni Malinen2011-10-164-2/+237
| | | | | | | Add support for network selection for username/password credentials with EAP-TTLS and EAP-PEAP. The new global configuration parameters home_username, home_password, and home_ca_cert can be used to specify credentials for network selection.
* Interworking: Parse NAI Realms and match against home realmJouni Malinen2011-10-164-2/+306
|
* Interworking: Add commands for network selectionJouni Malinen2011-10-165-5/+157
| | | | | | | 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-168-0/+543
| | | | | | | | | | | 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.
* WNM: Add BSS Transition Management Request for ESS Disassoc ImminentJouni Malinen2011-10-161-0/+48
| | | | | | | "hostapd_cli ess_disassoc (STA addr) (URL)" can now be used to send an ESS Dissassociation Imminent notification to the STA. This event is shown in wpa_supplicant ctrl_iface monitors (e.g., wpa_cli): "WNM: ESS Disassociation Imminent - session_info_url=http://example.com/session/"
* Add Extended Capability element to AssocReq for InterworkingJouni Malinen2011-10-162-0/+34
| | | | | If Interworking is enabled, add Extended Capability element to (Re)Association Request frames to indicate support for Interworking.