aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
Commit message (Collapse)AuthorAgeFilesLines
* Add implementation of TLS v1.2 PRF (P_SHA256)Jouni Malinen2011-11-271-0/+3
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* 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>
* P2P: Send STA connected/disconnected events to parent ctrl_ifaceDmitry Shmidt2011-11-251-0/+1
| | | | | | | | | Send the connection events from P2P group to both the group interface and parent interface ctrl_ifaces to make it easier for external monitor programs to see these events without having to listen to all group interfaces when virtual group interfaces are used. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Fix sched_scan filter setting for max_match_sets == 0Jouni Malinen2011-11-251-1/+2
| | | | | | | | The previous implementation was trying to add the first SSID to a zero-length array. Avoid this with an explicit validation of the array length. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Use wpa_key_mgmt_*() helpersJouni Malinen2011-11-245-36/+9
| | | | | | | This cleans up the source code and makes it less likely that new AKM addition misses some needed changes in the future. Signed-hostap: Jouni Malinen <j@w1.fi>
* Do not save an invalid network block in wpa_supplicant.confJouni Malinen2011-11-241-0/+3
| | | | | | | | | wpa_supplicant is going to reject a configuration file that uses WPA/WPA2-Personal (the default key_mgmt), but does not define passphrase/PSK. Refuse to save such a configuration to avoid getting stuck with a configuration that wpa_supplicant will reject. Signed-hostap: Jouni Malinen <j@w1.fi>
* Do not write all zeros device_typeJouni Malinen2011-11-241-1/+2
| | | | | | | | This is the default value if device_type is not set, so do not write it to the wpa_supplicant configuration file when saving updated configuration. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add 'get country' commandDmitry Shmidt2011-11-241-5/+9
| | | | 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>
* Android: Move WPA_BUILD check in Android.mkDmitry Shmidt2011-11-231-2/+2
| | | | | | | This is part of commit e61a2d6db6113da5fad91660764afdb0596dbc46 from Android wpa_supplicant_8.git. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
* Android: Remove the simulator target from all makefilesJeff Brown2011-11-231-5/+3
| | | | | This is commit bbda627478b0e9a312fea4662cd7cd8d6bdf82bf from Android wpa_supplicant_8.git.
* wpa_gui-qt4: Improve scan results signal displayKel Modderman2011-11-194-1/+103
| | | | | | | | | | | | | Display signal strength in dBm with visual indicator in the form of a bar for scan results displayed by wpa_gui-qt4. Any signal > -35dBm is treated as full signal bar, signals between range of -95<->-35dBm are displayed linearly. Convert WEXT signal level value to scale that nl80211 typically reports in dBm. The condition which differentiates 8-bit WEXT dBm and regular dBm is probably fragile, but there is currently no way to know what the driver is going to report for signal strength. Signed-off-by: Kel Modderman <kel@otaku42.de>
* P2P: Send Listen state Probe Response frames without retriesJouni Malinen2011-11-192-3/+3
| | | | | | | | | | Use the no-ACK send_mlme request to transmit Probe Response frames in P2P Listen state. This reduces number of unnecessary transmissions if the peer device has already moved away from the channel. It will most likely go through Search state multiple times anyway, so even if the response were to be lost, a new retry will happen at higher layer. Signed-hostap: Jouni Malinen <j@w1.fi>
* Allow MLME frames to be sent without expecting an ACK (no retries)Helmut Schaa2011-11-191-1/+1
| | | | | | | | | | In some situations it might be benefical to send a unicast frame without the need for getting it ACKed (probe responses for example). In order to achieve this add a new noack parameter to the drivers send_mlme callback that can be used to advise the driver to not wait for an ACK for this frame. Signed-hostap: Helmut Schaa <helmut.schaa@googlemail.com>
* Do not try to add wildcard SSID into active sched_scanJouni Malinen2011-11-191-2/+3
| | | | | | | | Even though scan_ssid should not really be set for wildcard SSID, better verify that here explicitly insead of assuming that the SSID is set. Signed-hostap: Jouni Malinen <j@w1.fi>
* AP: Add explicit EAPOL TX status eventJohannes Berg2011-11-193-0/+18
| | | | | | | | The new event can be used when EAPOL TX status can't be reported as a complete 802.11 frame but is instead reported as just the EAPOL data as originally passed to hapd_send_eapol(). Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* wpa_supplicant: Make objects depend on the .config fileAlan T. DeKok2011-11-191-3/+5
| | | | | | | | | | The source code compiles into different objects depending on the contents of .config. Therefore, the objects should depend on .config. Previously, only the executables depended on .config. This meant that they were re-linked when .config changed. But that relink process used the old (and now wrong) objects.
* P2P: Simplify code in wpas_p2p_connect()Johannes Berg2011-11-181-29/+20
| | | | | | | There's some duplicated code there that can be simplified with just a single new variable. Signed-hostap: Johannes Berg <johannes.berg@intel.com>
* sched scan: Fix passive scanningEyal Shapira2011-11-181-6/+7
| | | | | | | | | | | Scan wasn't initiated in case the config contained only networks without scan_ssid. In such a case we want scan to be initiated without any SSIDs to actively scan but include all the SSIDs in the filter list. Also added some debug logs to easily see which SSIDs were included in which list. Cc: Luciano Coelho <coelho@ti.com> Signed-off-by: Eyal Shapira <eyal@wizery.com>
* Mark local functions staticJouni Malinen2011-11-184-7/+7
| | | | | | These functions are not used outside the file in which they are defined. Signed-hostap: Jouni Malinen <j@w1.fi>
* Include wpa_supplicant_i.h to verify function prototype matchJouni Malinen2011-11-181-0/+1
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* P2P: Cancel previous operation before starting new p2p_listenJouni Malinen2011-11-171-0/+8
| | | | | | | | | Some drivers do not handle concurrent remain-on-channel operation requests, so run p2p_stop_find() prior to starting p2p_listen. This addresses some issues with P2P_LISTEN command being issues again while already in Listen state. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* wpa_supplicant: Set configured auth_algs for AP modeVasanthakumar Thiagarajan2011-11-161-0/+3
| | | | | | | | | In AP mode, authentication algorithm is reset in hostapd_config_defaults_bss() and never set to the configured one. This would pass the default auth_algs (OPEN|SHARED) to driver regardless of what the wpa_supplicant configuration is requesting. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
* P2P: Wait until ongoing scan completes before starting P2P findJouni Malinen2011-11-153-1/+23
| | | | | | | | | The P2P_FIND command was failing if it was issued at the moment when a scan operation was in progress. Avoid returning failure in this case by scheduling the P2P find to start once the ongoing scan is completed. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Android: Update libnl use to match with Android ICSJouni Malinen2011-11-151-2/+2
| | | | | | | The libnl_2 library uses static linking and different path for header files in the Android ICS release. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Android: Fix D-Bus P2P interface location in Android.mkJouni Malinen2011-11-151-3/+3
| | | | | | | This was supposed to be in the new D-Bus interface block, not in the old one. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Do not add P2P IE into Beacon/Probe Response if P2P is disabledJouni Malinen2011-11-141-0/+6
| | | | | | | P2P IE was incorrectly added in wpa_supplicant AP mode even if P2P function was not actually enabled. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* AP: Only enable WPS for open and WPA/WPA2-Personal configurationJouni Malinen2011-11-141-2/+7
| | | | | | | | | When wpa_supplicant AP mode is used, WPS was enabled by default regardless of security mode. This is not desired for WEP, so change the AP configuration to enable WPS only for open and WPA/WPA2-Personal networks. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
* Remove unnecessary include file inclusionJouni Malinen2011-11-135-7/+0
| | | | Signed-hostap: Jouni Malinen <j@w1.fi>
* dbus: Remove unused default string for bridge_ifnameJouni Malinen2011-11-131-3/+1
| | | | | | wpa_s->bridge_ifname is an array and cannot be NULL. Signed-hostap: Jouni Malinen <j@w1.fi>
* Add REAUTHENTICATE ctrl_iface commandJouni Malinen2011-11-132-0/+11
| | | | | | | This can be used to trigger EAPOL reauthentication which can be useful for testing purposes. Signed-hostap: Jouni Malinen <j@w1.fi>
* Print human readable driver event namesBen Greear2011-11-131-4/+5
| | | | | | This makes it easier to understand the event related logs. Signed-hostap: Ben Greear <greearb@candelatech.com>
* Move wpa_scan_results_free() into shared C fileJouni Malinen2011-11-136-1/+17
| | | | | | | Replace the inline helper function with a new C file that can be used for common driver API related function. Signed-hostap: Jouni Malinen <j@w1.fi>
* Correct a spelling mistakeFu Yingang2011-11-131-1/+1
| | | | | The word "targer" in the comments for pending_bssid of wpa_supplicant data structure should be "target".
* Remove station functionality from hostap and madwifi driver wrappersJouni Malinen2011-11-131-31/+8
| | | | | | | | | This has been obsoleted by the more generic Linux WEXT (driver_wext.c) support. The hostap and madwifi driver wrappers can now be used only with hostapd. The old station interface remains available in releases up to 1.x. Signed-hostap: Jouni Malinen <j@w1.fi>
* Remove unmaintained driver wrappersJouni Malinen2011-11-132-533/+0
| | | | | | | | | The driver wrappers broadcom, iphone, osx, and ralink have not been maintained for a while and it does not look like they will be in the future either. As such, remove them from the development branch. The previous versions will be included in older releases up to 1.x. Signed-hostap: Jouni Malinen <j@w1.fi>
* ndis: Work around lack of C99 designated initializers in MSVCJouni Malinen2011-11-031-0/+7
| | | | | | | | | | | Use a driver_ndis.c specific initialization function to fill in the wpa_driver_ops information to make it easier to modify struct wpa_driver_ops in the future. Being able to build driver_ndis.c with MSVC was the only reason for having to maintain the same order of function pointers in struct wpa_driver_ops and for having to update driver_ndis.c for all changes in that structure. 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>
* Remove obsoleted Qt3-based wpa_guiJouni Malinen2011-11-0316-3042/+2
| | | | | | | | This code has not been maintained for years and there is no plan on doing so either in the future. The Qt4-based wpa_gui-qt4 version can be used as a replacement for this older wpa_gui version. Signed-hostap: Jouni Malinen <j@w1.fi>
* dbus: Fix some build combination without new D-Bus interfaceJouni Malinen2011-11-021-2/+1
| | | | | | | Include common/defs.h to get full enum definitions to avoid compiler errors without CONFIG_CTRL_IFACE_DBUS_NEW. Signed-hostap: Jouni Malinen <j@w1.fi>
* Fix Android library configuration with OpenSSL buildJouni Malinen2011-11-011-1/+1
| | | | | | | | Commit bf9d5518d55e314cad2dbac0715ce151b2807691 did not split LOCAL_SHARED_LIBRARIES properly and ended up removing the needed libraries. Signed-hostap: Jouni Malinen <j@w1.fi>
* Process RSN pre-authentication candidates when skipping roamJouni Malinen2011-10-301-1/+3
| | | | | | | | | | wpa_supplicant_rsn_preauth_scan_results() needs to be called to update RSN pre-authentication candidates. This cannot be done before the wpa_supplicant_connect() call on the first association, but when trying to figure out whether to roam, it is fine to do so for the case when roaming is skipped. Signed-hostap: Jouni Malinen <j@w1.fi>
* Clean up debug dump for scan results sortingJouni Malinen2011-10-301-9/+30
| | | | | | | There is not much need for showing the interim qsort steps, so just show the ordered results. Signed-hostap: Jouni Malinen <j@w1.fi>
* Prefer 5 GHz networks over 2.4 GHz networksGary Morain2011-10-301-5/+41
| | | | | | | In scan.c, merge a channel's noise value into the scan results. When comparing scan results, compute the signal-to-noise ratio and use it when available. Prefer a 5 GHz network if its SNR is really big (> 30) or if its SNR is relatively close to the other network's.
* Fix TKIP countermeasures stopping in deinit pathsJouni Malinen2011-10-303-4/+9
| | | | | | | The eloop timeout to stop TKIP countermeasures has to be canceled on deinit path to avoid leaving bogus timeouts behind. Signed-hostap: Jouni Malinen <j@w1.fi>
* Implement control request replies for the D-Bus interfaceDan Williams2011-10-304-1/+78
| | | | | | | Add a D-Bus mechanism for clients to respond to the NetworkRequest signal. Signed-off-by: Dan Williams <dcbw@redhat.com>
* Make control response processing available to other control interfacesDan Williams2011-10-302-46/+83
| | | | | | | The D-Bus interface wants to use it too, so it makes sense to have it generic. Signed-off-by: Dan Williams <dcbw@redhat.com>
* Add wpa_supplicant_ctrl_req_from_string()Dan Williams2011-10-302-0/+22
| | | | | | | | Converts from a string to a control request enum when input from a control interface is received. Will be used by a subsequent patch. Signed-off-by: Dan Williams <dcbw@redhat.com>
* dbus: Implement EAP SM control request signalsDan Williams2011-10-306-1/+97
| | | | | | | | | Add a D-Bus signal for EAP SM requests. This signal is emitted on the Interface object so that clients only have to listen to one object for requests rather than to all network objects. This signal is analogous to the socket control interface's CTRL-REQ- request. Signed-off-by: Dan Williams <dcbw@redhat.com>
* Use an enum for EAP SM requestsDan Williams2011-10-302-3/+62
| | | | | | | | | | | Control requests will be extended for non-EAP uses later, so it makes sense to have them be generic. Furthermore, having them defined as an enum is easier for processing internally, and more generic for control interfaces that may not use field names. The public ctrl_req_type / field_name conversion function will be used later by the D-Bus control interface too. Signed-off-by: Dan Williams <dcbw@redhat.com>