]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
11 years agoACS: Clean up ifdef CONFIG_ACS to avoid unreachable code
Jouni Malinen [Fri, 25 Apr 2014 20:43:00 +0000 (23:43 +0300)] 
ACS: Clean up ifdef CONFIG_ACS to avoid unreachable code

The conf->channel assignment was unreachable if CONFIG_ACS was not
defined, so move that to be under #else.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoMake last_scan_res update easier for static analyzers
Jouni Malinen [Fri, 25 Apr 2014 20:19:47 +0000 (23:19 +0300)] 
Make last_scan_res update easier for static analyzers

The check based on last_scan_res_used is sufficient for making sure that
last_scan_res is allocated. However, it is a bit too complex for static
analyzers to notice, so add an explicit check to avoid bogus reports.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoP2P: Verify operating channel validity for NFC connection handover
Jouni Malinen [Fri, 25 Apr 2014 20:09:56 +0000 (23:09 +0300)] 
P2P: Verify operating channel validity for NFC connection handover

p2p_freq_to_channel() could return an error if the GO or P2P Client
operating channel is not valid. Check for this before generating the NFC
handover message.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotests: Make ap_wps_er_add_enrollee check a bit more robust
Jouni Malinen [Fri, 25 Apr 2014 19:45:12 +0000 (22:45 +0300)] 
tests: Make ap_wps_er_add_enrollee check a bit more robust

It is possible for the final step of the test case to fail under load
(e.g., when using parallel-vm.sh with large number of VMs), so run
through additional scan iterations if the WPS-AUTH flag does not get
removed immediately.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotests: HT 20/40 co-ex functionality during BSS lifetime
Jouni Malinen [Tue, 15 Apr 2014 14:42:40 +0000 (17:42 +0300)] 
tests: HT 20/40 co-ex functionality during BSS lifetime

Verify that AP acts on 40 MHz intolerant STA association/disassociation
and on 20/40 co-ex report indicating 40 MHz intolerant AP showed up and
removed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agonl80211: Remove unnecessary wpa_driver_nl80211_set_freq() wrapper
Jouni Malinen [Fri, 25 Apr 2014 09:02:25 +0000 (12:02 +0300)] 
nl80211: Remove unnecessary wpa_driver_nl80211_set_freq() wrapper

This is not of any real use anymore with nl80211_set_channel() taking
care of channel setting operation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agonl80211: Add support for changing AP mode channel bandwidth
Peng Xu [Mon, 14 Apr 2014 17:51:32 +0000 (20:51 +0300)] 
nl80211: Add support for changing AP mode channel bandwidth

Configure driver with the new channel parameters (mainly, HT 20/40 MHz
bandwidth changes) as part of set_ap().

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoSync with mac80211-next.git nl80211.h
Jouni Malinen [Tue, 29 Apr 2014 08:10:22 +0000 (11:10 +0300)] 
Sync with mac80211-next.git nl80211.h

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoRetry initial 20/40 MHz co-ex scan if the driver is busy
Peng Xu [Wed, 16 Apr 2014 15:45:53 +0000 (18:45 +0300)] 
Retry initial 20/40 MHz co-ex scan if the driver is busy

This makes the initial OBSS scans in AP mode before starting 40 MHz BSS
more robust. In addition, HT20 can be used as a backup option if none of
the scans succeed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoAdd AP mode support for HT 20/40 co-ex Action frame
Peng Xu [Mon, 14 Apr 2014 18:21:40 +0000 (21:21 +0300)] 
Add AP mode support for HT 20/40 co-ex Action frame

If a 2.4 GHz band AP receives a 20/40 Coexistence management frame from
a connected station with 20/40 BSS Intolerant Channel Report element
containing the channel list in which any legacy AP are detected or AP
with 40 MHz intolerant bit set in HT Cap IE is detected in the affected
range of the BSS, the BSS will be moved from 40 to 20 MHz channel width.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agohostapd: Extend support for HT 20/40 coexistence feature
Peng Xu [Mon, 14 Apr 2014 17:40:56 +0000 (20:40 +0300)] 
hostapd: Extend support for HT 20/40 coexistence feature

Extend the minimal HT 20/40 co-ex support to include dynamic changes
during the lifetime of the BSS. If any STA connects to a 2.4 GHz AP with
40 MHz intolerant bit set then the AP will switch to 20 MHz operating
mode.

If for a period of time specified by OBSS delay factor and OBSS scan
interval AP does not have any information about 40 MHz intolerant STAs,
the BSS is switched from HT20 to HT40 mode.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoMake channel parameters available in set_ap() driver operation
Peng Xu [Mon, 14 Apr 2014 18:05:26 +0000 (21:05 +0300)] 
Make channel parameters available in set_ap() driver operation

This provides information to allow the driver to be configured for
updated channel parameters, e.g., when dynamically changing HT20/HT40
bandwidth.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agowpaspy: Handle DETACH response more robustly
Jouni Malinen [Mon, 28 Apr 2014 12:31:25 +0000 (15:31 +0300)] 
wpaspy: Handle DETACH response more robustly

There could be pending unsolicited event messages on the monitor socket
when the DETACH command is issued. As such, the response may be
something else then OK even if the actual detach operation succeeded.
Try to avoid this be dropping pending messages before issuing the detach
command. As an additional workaround, check the response against FAIL
instead of requiring OK so that the self.attached does not get left to
True incorrectly even if an additional event message were to be
received.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoIndicate disconnection event on interface disabled
Jouni Malinen [Sat, 26 Apr 2014 13:42:45 +0000 (16:42 +0300)] 
Indicate disconnection event on interface disabled

It is possible for the disconnection event from the driver to not get
delivered when interface is disabled. To maintain consistent ctrl_iface
event behavior, indicate CTRL-EVENT-DISCONNECTED in such a case if we
were in connected state.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoFix wpa_config_read() with existing config block
Jouni Malinen [Sat, 26 Apr 2014 08:39:48 +0000 (11:39 +0300)] 
Fix wpa_config_read() with existing config block

If two config files are merged together, the ssid and cred blocks may
not have been processed correctly since the tail pointers were not
updated to the last entry from the first configuration file.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoWPS: Print setsockopt() failure in debug log
Jouni Malinen [Fri, 25 Apr 2014 20:14:24 +0000 (23:14 +0300)] 
WPS: Print setsockopt() failure in debug log

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotrace: Replace demangle.h with internal defines
Jouni Malinen [Fri, 18 Apr 2014 16:07:35 +0000 (19:07 +0300)] 
trace: Replace demangle.h with internal defines

It looks like the demangle.h from binutils-dev is not installed that
commonly anymore. Since we need only two defines from that file, replace
the header file with those defines to make it easier to build with
WPA_TRACE_BFD=y.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agonl80211: Fix some coding style issues
Jouni Malinen [Mon, 14 Apr 2014 10:39:18 +0000 (13:39 +0300)] 
nl80211: Fix some coding style issues

Some trailing whitespace and spaces for indentation were present in the
driver wrapper and header files.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoMake qca-vendor.h independent of other header files
Jouni Malinen [Fri, 25 Apr 2014 08:41:36 +0000 (11:41 +0300)] 
Make qca-vendor.h independent of other header files

Move the definitions that depended in common.h into a separate header
file so that qca-vendor.h can be copied and used as-is in other
projects.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agonl80211: Allocate QCA vendor subcmd for extended statistics
Amar Singhal [Thu, 17 Apr 2014 16:54:30 +0000 (09:54 -0700)] 
nl80211: Allocate QCA vendor subcmd for extended statistics

This allocates a QCA vendor subcmd for extended statistics
functionality and also an attribute for delivering the payload
for extended statistics.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotests: Fix a typo on a wpas_config_file error path
Jouni Malinen [Thu, 24 Apr 2014 09:10:17 +0000 (12:10 +0300)] 
tests: Fix a typo on a wpas_config_file error path

In addition, print the config files in error case to the debug log.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agowpa_supplicant: Call frequency conflict handling during auth
Ilan Peer [Thu, 24 Apr 2014 05:45:40 +0000 (08:45 +0300)] 
wpa_supplicant: Call frequency conflict handling during auth

Previously, the frequency conflict was handled only during the
association flow. However, some drivers, e.g., mac80211 based
drivers, will fail an authentication request in case that there
are no available channels for use (as they might be used by
other interfaces), and thus the frequency conflict resolution
is never called.

Fix this by calling frequency conflict resolution during
authentication (SME-in-wpa_supplicant) as well.

In addition, get the shared radio frequency from the wpa_s context in
both the SME-in-driver and SME-in-wpa_supplicant cases and not from the
driver.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
11 years agoscan: Reset normal scan counter when a connection succeeds
Luciano Coelho [Thu, 24 Apr 2014 05:45:36 +0000 (08:45 +0300)] 
scan: Reset normal scan counter when a connection succeeds

The normal scan counter is used to trigger a few normal scans before a
scheduled scan is issued. The reason for doing this is that we get
results faster and some drivers support more SSIDs per normal scan
than during sched scan. After 2 normal scans, we start using
sched_scan. But the problem is that when a connection succeeds, we do
not reset this counter, so we will keep using sched scans.

To fix this, now we reset the counter when we switch to WPA_COMPLETED
state.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
11 years agoradiotap: Fix compilation for systems without le16toh/le32toh
Ilan Peer [Thu, 24 Apr 2014 05:45:34 +0000 (08:45 +0300)] 
radiotap: Fix compilation for systems without le16toh/le32toh

These functions are not standard and do not exist in all systems, e.g.,
variants of Android. Instead use the macros defined in common.h.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
11 years agoAndroid: Disable unused parameter warnings
Greg Hackmann [Tue, 15 Apr 2014 00:06:02 +0000 (17:06 -0700)] 
Android: Disable unused parameter warnings

This avoids large number of undesired compiler warnings since Android
build system is added -Wextra.

Signed-off-by: Greg Hackmann <ghackmann@google.com>
11 years agoInterworking: Don't filter probe requests when interworking is disabled
Maxime Bizon [Wed, 23 Apr 2014 21:23:37 +0000 (23:23 +0200)] 
Interworking: Don't filter probe requests when interworking is disabled

With hidden SSID (ignore_broadcast_ssid), an IOS device trying to
connect to the AP will send a probe request with ANT == 2. If
interworking support is just compiled (not enabled), we will drop the
probe request since default ANT is 0.

Check that interworking is enabled before filtering based on ANT or
HESSID to match the behavior of code without CONFIG_INTERWORKING.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
11 years agoAdd SIM identifier to the network profile and cred block
Naresh Jayaram [Fri, 28 Mar 2014 15:01:44 +0000 (17:01 +0200)] 
Add SIM identifier to the network profile and cred block

This allows the specific SIM to be identified for authentication
purposes in multi-SIM devices. This SIM number represents the index of
the SIM slot. This SIM number shall be used for the authentication using
the respective SIM for the Wi-Fi connection to the corresponding
network.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoAP: Fix checking if DFS is required
Marek Puzyniak [Wed, 16 Apr 2014 10:22:14 +0000 (12:22 +0200)] 
AP: Fix checking if DFS is required

Sometimes function hostapd_is_dfs_required() returns -1 which indicates
that it was not possible to check if DFS was required. This happens for
channels from the 2.4 GHz band where DFS checking should not happen.
This can be fixed by returning DFS-not-required for mode different from
IEEE80211A and when DFS support is not available (ieee80211h not set).

Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
11 years agoAllow HT 40 MHz intolerant flag to be set for association
Jouni Malinen [Tue, 15 Apr 2014 14:22:47 +0000 (17:22 +0300)] 
Allow HT 40 MHz intolerant flag to be set for association

This extends HT overrides to allow HT 40 MHz intolerant flag to be set
with ht40_intolerant=1.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agonl80211: Debug print HT/VHT capability override information
Jouni Malinen [Tue, 15 Apr 2014 14:22:05 +0000 (17:22 +0300)] 
nl80211: Debug print HT/VHT capability override information

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotests: wpa_supplicant configuration file reading/writing
Jouni Malinen [Tue, 15 Apr 2014 21:27:27 +0000 (00:27 +0300)] 
tests: wpa_supplicant configuration file reading/writing

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoFix writing of provisioning_sp cred parameter
Jouni Malinen [Tue, 15 Apr 2014 22:40:44 +0000 (01:40 +0300)] 
Fix writing of provisioning_sp cred parameter

This was supposed to be within quotation marks in the configuration
file.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoReduce the amount of time PTK/TPTK/GTK is kept in memory
Jouni Malinen [Tue, 15 Apr 2014 22:27:10 +0000 (01:27 +0300)] 
Reduce the amount of time PTK/TPTK/GTK is kept in memory

Some of the buffers used to keep a copy of PTK/TPTK/GTK in the
supplicant implementation maintained a copy of the keys longer than
necessary. Clear these buffers to zero when the key is not needed
anymore to minimize the amount of time key material is kept in memory.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: More converage for INTERFACE_ADD
Jouni Malinen [Tue, 15 Apr 2014 20:50:49 +0000 (23:50 +0300)] 
tests: More converage for INTERFACE_ADD

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Wi-Fi Display through the global interface
Jouni Malinen [Tue, 15 Apr 2014 20:43:36 +0000 (23:43 +0300)] 
tests: Wi-Fi Display through the global interface

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoFix P2P redirection of global ctrl_iface SET command
Jouni Malinen [Tue, 15 Apr 2014 10:22:48 +0000 (13:22 +0300)] 
Fix P2P redirection of global ctrl_iface SET command

The previous version prevented all use of wpas_global_ctrl_iface_set().
That's not desirable since there may be more global parameters added in
the future. Instead, try to use the global version first and redirect to
P2P interface only if the global version returns an error.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoRemove SAVE_CONFIG redirect from global control interface
Jouni Malinen [Tue, 15 Apr 2014 10:15:09 +0000 (13:15 +0300)] 
Remove SAVE_CONFIG redirect from global control interface

The P2P redirection for SAVE_CONFIG issued on the global control
interface was preventing wpas_global_ctrl_iface_save_config() from being
reached. The global version of SAVE_CONFIG was supposed to try to save
configuration files for all interface rather than just the P2P
management interface, so fix this by removing the unneeded and undesired
redirection.

Modify the global SAVE_CONFIG handler to return FAIL if no configuration
files were saved. This makes the behavior match with the per-interface
SAVE_CONFIG.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agoeap_proxy: Use unique Makefile names for Android and non-Android
Jouni Malinen [Tue, 15 Apr 2014 10:02:25 +0000 (13:02 +0300)] 
eap_proxy: Use unique Makefile names for Android and non-Android

Rename the eap_proxy_*.mk file to eap_proxy_*.mak for non-Android builds
so that the same eap_proxy implementation can be more easily included in
the same directory for both cases.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
11 years agotests: P2P group formation using parameters from persistent group
Jouni Malinen [Mon, 14 Apr 2014 22:06:39 +0000 (01:06 +0300)] 
tests: P2P group formation using parameters from persistent group

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Fix progressive p2p_find to actually use progressive part
Jouni Malinen [Mon, 14 Apr 2014 21:53:30 +0000 (00:53 +0300)] 
tests: Fix progressive p2p_find to actually use progressive part

It turned out that the initial test case found the GO based on the
initial full scan instead of the progressive search part. Fix this by
started the GO only after the initial full scan.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P group interface ifdown
Jouni Malinen [Mon, 14 Apr 2014 21:23:55 +0000 (00:23 +0300)] 
tests: P2P group interface ifdown

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoP2P: Fix interface remove to terminate all P2P groups
Jouni Malinen [Mon, 14 Apr 2014 21:20:17 +0000 (00:20 +0300)] 
P2P: Fix interface remove to terminate all P2P groups

Previously, it was possible to remove the main interface and leave
behind dynamic P2P group interfaces. This would eventually result in
references freed memory, so it is not really suitable behavior. Instesd,
remove all the dynamic P2P group interfaces that were created through an
interface that is now removed.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: wpa_supplicant global control interface and SUSPEND/RESUME
Jouni Malinen [Mon, 14 Apr 2014 21:06:12 +0000 (00:06 +0300)] 
tests: wpa_supplicant global control interface and SUSPEND/RESUME

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agol2_packet: Fix l2_packet_none (hostapd default)
Jouni Malinen [Mon, 14 Apr 2014 20:04:55 +0000 (23:04 +0300)] 
l2_packet: Fix l2_packet_none (hostapd default)

The sample code here ended up trying to register an eloop socket with fd
== -1. This was not really ever supposed to be used, but it is now also
hitting an assert in eloop. Skip the unnecessary
eloop_register_read_sock() to avoid this.

This was causing issues for hostapd since CONFIG_L2_PACKET is not set by
default. If CONFIG_RSN_PREAUTH=y was not used for CONFIG_L2_PACKET was
not set in .config explicitly, the defaul use of l2_packet_none.c ended
up hitting the newly added assert() in eloop.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Work around invalid ap_wps_ie_fragmentation failures
Jouni Malinen [Sun, 13 Apr 2014 21:53:27 +0000 (00:53 +0300)] 
tests: Work around invalid ap_wps_ie_fragmentation failures

This can fail if Probe Response frame is missed and Beacon frame was
used to fill in the BSS entry. This can happen, e.g., during heavy load
every now and then and is not really an error, so try to workaround by
runnign another scan.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Try to work around bogus errors in wpas_ctrl_country
Jouni Malinen [Sun, 13 Apr 2014 21:45:25 +0000 (00:45 +0300)] 
tests: Try to work around bogus errors in wpas_ctrl_country

It seems like it is possible for a CTRL-EVENT-REGDOM-CHANGE event from a
previous test case to "leak" through to the execution of this test case.
That can result in the validation steps here failing, so wait a bit and clear the pending events before starting the test.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Work around mac80211_hwsim survey limitations
Jouni Malinen [Sun, 13 Apr 2014 21:38:37 +0000 (00:38 +0300)] 
tests: Work around mac80211_hwsim survey limitations

ap_multi_bss_acs test case was failing if it was executed immediately
after a test case that used 5 GHz band since the current mac80211_hwsim
channel survey implementation is very limited and reports only a single
channel. For this test case, that channel has to be from the 2.4 GHz
band.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agowlantest: Tag and ignore generated packets
Johannes Berg [Wed, 9 Apr 2014 09:53:16 +0000 (11:53 +0200)] 
wlantest: Tag and ignore generated packets

Rather than ignoring packets with a minimal 8-byte radiotap
header, which may occur elsewhere, tag generated (decrypted)
packets with an empty vendor namespace tag and ignore those.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agoradiotap: Update radiotap parser to library version
Johannes Berg [Wed, 9 Apr 2014 09:50:54 +0000 (11:50 +0200)] 
radiotap: Update radiotap parser to library version

Update the radiotap parser to the latest version of the
http://git.sipsolutions.net/radiotap.git/ library to get
parsing for vendor namespaces.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
11 years agoPropagate scan failures over D-Bus
quiche@chromium.org [Wed, 9 Apr 2014 22:10:29 +0000 (15:10 -0700)] 
Propagate scan failures over D-Bus

If we receive a scan request via D-Bus and wpa_supplicant_scan_trigger
fails, return the failure to the caller over D-Bus.

Signed-hostap: mukesh agrawal <quiche@chromium.org>

11 years agotests: NFC_GET_HANDOVER_REQ/SEL
Jouni Malinen [Sun, 13 Apr 2014 16:25:00 +0000 (19:25 +0300)] 
tests: NFC_GET_HANDOVER_REQ/SEL

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: WPS_NFC_TAG_READ error cases
Jouni Malinen [Sun, 13 Apr 2014 15:46:05 +0000 (18:46 +0300)] 
tests: WPS_NFC_TAG_READ error cases

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P NFC static handover with forced channel
Jouni Malinen [Sun, 13 Apr 2014 15:33:55 +0000 (18:33 +0300)] 
tests: P2P NFC static handover with forced channel

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: wpa_supplicant country code SET/GET
Jouni Malinen [Sun, 13 Apr 2014 13:33:18 +0000 (16:33 +0300)] 
tests: wpa_supplicant country code SET/GET

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoAdd a wpa_supplicant ctrl_iface event for regdom changes
Jouni Malinen [Sun, 13 Apr 2014 13:32:38 +0000 (16:32 +0300)] 
Add a wpa_supplicant ctrl_iface event for regdom changes

CTRL-EVENT-REGDOM-CHANGE event provides an external notification of
regulatory domain (and any driver channel list) changes.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoWPS: Split eapol_cb reconnect to a separate code path
Jouni Malinen [Sun, 13 Apr 2014 08:47:03 +0000 (11:47 +0300)] 
WPS: Split eapol_cb reconnect to a separate code path

Use eloop timeout to run the reconnect command after eapol_cb has
returned. This reduces stack use and can simplify the driver
command/event sequence by allowing the disconnection events from the
provisioning step to be processed before starting the actual data
connection.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P GO issuing multiple credentials
Jouni Malinen [Sun, 13 Apr 2014 08:46:26 +0000 (11:46 +0300)] 
tests: P2P GO issuing multiple credentials

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoWPS: Close p2p_group and temporary parameters to all network blocks
Jouni Malinen [Sun, 13 Apr 2014 08:44:57 +0000 (11:44 +0300)] 
WPS: Close p2p_group and temporary parameters to all network blocks

If a P2P GO issues multiple credentials for some reason, clone the
p2p_group and temporary parameters to all those based on the initial
network block that gets used for the first credential.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agonl80211: Mask out deauth even after own deauth request
Jouni Malinen [Sun, 13 Apr 2014 08:39:49 +0000 (11:39 +0300)] 
nl80211: Mask out deauth even after own deauth request

This was already done for the disconnect event, but
SME-in-wpa_supplicant case needs to do same with the deauth event to
avoid getting extra events during WPS disconnect-and-reconnect sequence.
This can speed up WPS processing by removing unnecessary failures or
retries due to the extra event being processed during the next
association attempt.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P NFC Tag with group interface
Jouni Malinen [Sat, 12 Apr 2014 20:37:14 +0000 (23:37 +0300)] 
tests: P2P NFC Tag with group interface

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: NFC tag enable/disable for P2P
Jouni Malinen [Sat, 12 Apr 2014 20:34:49 +0000 (23:34 +0300)] 
tests: NFC tag enable/disable for P2P

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: HT capability overrides
Jouni Malinen [Sat, 12 Apr 2014 20:25:36 +0000 (23:25 +0300)] 
tests: HT capability overrides

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoAdd forgotten ampdu_factor into wpa_supplicant.conf
Jouni Malinen [Sat, 12 Apr 2014 20:25:11 +0000 (23:25 +0300)] 
Add forgotten ampdu_factor into wpa_supplicant.conf

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: IBSS with fixed BSSID
Jouni Malinen [Sat, 12 Apr 2014 20:11:02 +0000 (23:11 +0300)] 
tests: IBSS with fixed BSSID

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: HS 2.0 connection using connect API
Jouni Malinen [Sat, 12 Apr 2014 20:01:58 +0000 (23:01 +0300)] 
tests: HS 2.0 connection using connect API

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Opportunistic key caching with the connect API
Jouni Malinen [Sat, 12 Apr 2014 19:52:41 +0000 (22:52 +0300)] 
tests: Opportunistic key caching with the connect API

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Wildcard SSID with PSK/passphrase
Jouni Malinen [Sat, 12 Apr 2014 19:47:49 +0000 (22:47 +0300)] 
tests: Wildcard SSID with PSK/passphrase

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoRe-enable use of wildcard SSID with passphrase
Jouni Malinen [Sat, 12 Apr 2014 19:46:54 +0000 (22:46 +0300)] 
Re-enable use of wildcard SSID with passphrase

This used to work, but it looks like the disabled-PSK-network check
ended up rejecting confiurations that configured a wildcard SSID with a
passphrase (instead of PSK).

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: More IBSS WPA-None coverage
Jouni Malinen [Sat, 12 Apr 2014 19:30:48 +0000 (22:30 +0300)] 
tests: More IBSS WPA-None coverage

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P GO removing persistent client based on invitation result
Jouni Malinen [Sat, 12 Apr 2014 17:28:37 +0000 (20:28 +0300)] 
tests: P2P GO removing persistent client based on invitation result

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P group interface removed due to GO Negotiation failure
Jouni Malinen [Sat, 12 Apr 2014 17:16:22 +0000 (20:16 +0300)] 
tests: P2P group interface removed due to GO Negotiation failure

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P group idle timeout on GO
Jouni Malinen [Sat, 12 Apr 2014 17:08:13 +0000 (20:08 +0300)] 
tests: P2P group idle timeout on GO

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: p2p_find with progressive scan
Jouni Malinen [Sat, 12 Apr 2014 17:03:24 +0000 (20:03 +0300)] 
tests: p2p_find with progressive scan

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: SCAN_INTERVAL setting
Jouni Malinen [Sat, 12 Apr 2014 16:48:57 +0000 (19:48 +0300)] 
tests: SCAN_INTERVAL setting

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: filter_ssids=1
Jouni Malinen [Sat, 12 Apr 2014 16:43:24 +0000 (19:43 +0300)] 
tests: filter_ssids=1

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Association timeout
Jouni Malinen [Sat, 12 Apr 2014 16:27:57 +0000 (19:27 +0300)] 
tests: Association timeout

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: INTERFACE DISABLED/ENABLED events based on ifdown/up
Jouni Malinen [Sat, 12 Apr 2014 16:09:35 +0000 (19:09 +0300)] 
tests: INTERFACE DISABLED/ENABLED events based on ifdown/up

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Reconnect to the same BSS on inactivity disconnection
Jouni Malinen [Sat, 12 Apr 2014 16:02:23 +0000 (19:02 +0300)] 
tests: Reconnect to the same BSS on inactivity disconnection

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: WNM keep-alive
Jouni Malinen [Sat, 12 Apr 2014 15:53:35 +0000 (18:53 +0300)] 
tests: WNM keep-alive

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: auto_interworking=1
Jouni Malinen [Sat, 12 Apr 2014 15:47:48 +0000 (18:47 +0300)] 
tests: auto_interworking=1

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: AP_SCAN 0/2 and externally triggered connection
Jouni Malinen [Sat, 12 Apr 2014 15:31:25 +0000 (18:31 +0300)] 
tests: AP_SCAN 0/2 and externally triggered connection

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: BSS_EXPIRE_COUNT/AGE
Jouni Malinen [Sat, 12 Apr 2014 14:16:07 +0000 (17:16 +0300)] 
tests: BSS_EXPIRE_COUNT/AGE

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: ENABLE/DISABLE_NETWORK
Jouni Malinen [Sat, 12 Apr 2014 13:51:15 +0000 (16:51 +0300)] 
tests: ENABLE/DISABLE_NETWORK

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: Radio work canceling during interface removal
Jouni Malinen [Sat, 12 Apr 2014 13:42:22 +0000 (16:42 +0300)] 
tests: Radio work canceling during interface removal

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoFix a debug print to have a space between words
Jouni Malinen [Sat, 12 Apr 2014 13:41:45 +0000 (16:41 +0300)] 
Fix a debug print to have a space between words

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: EXT PW with no valid PSK found
Jouni Malinen [Sat, 12 Apr 2014 13:25:18 +0000 (16:25 +0300)] 
tests: EXT PW with no valid PSK found

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: RSN IBSS reconnection
Jouni Malinen [Sat, 12 Apr 2014 13:17:04 +0000 (16:17 +0300)] 
tests: RSN IBSS reconnection

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: autoscan
Jouni Malinen [Sat, 12 Apr 2014 12:51:52 +0000 (15:51 +0300)] 
tests: autoscan

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: bgscan test cases
Jouni Malinen [Sat, 12 Apr 2014 08:56:55 +0000 (11:56 +0300)] 
tests: bgscan test cases

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agoAdd CTRL-EVENT-SIGNAL-CHANGE for bgscan signal update events
Jouni Malinen [Sat, 12 Apr 2014 08:48:05 +0000 (11:48 +0300)] 
Add CTRL-EVENT-SIGNAL-CHANGE for bgscan signal update events

This allows external programs to monitor driver signal change events
through wpa_supplicant when bgscan is used.

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P_LISTEN with timeout
Jouni Malinen [Fri, 11 Apr 2014 22:11:25 +0000 (01:11 +0300)] 
tests: P2P_LISTEN with timeout

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: RADIO_WORK timeout
Jouni Malinen [Fri, 11 Apr 2014 22:06:09 +0000 (01:06 +0300)] 
tests: RADIO_WORK timeout

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: SIGNAL_POLL and PKTCNT_POLL
Jouni Malinen [Fri, 11 Apr 2014 22:02:19 +0000 (01:02 +0300)] 
tests: SIGNAL_POLL and PKTCNT_POLL

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: WNM_SLEEP with additional parameters
Jouni Malinen [Fri, 11 Apr 2014 21:58:52 +0000 (00:58 +0300)] 
tests: WNM_SLEEP with additional parameters

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: HS20_ICON_REQUEST
Jouni Malinen [Fri, 11 Apr 2014 21:27:20 +0000 (00:27 +0300)] 
tests: HS20_ICON_REQUEST

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: HS20_ANQP_GET
Jouni Malinen [Fri, 11 Apr 2014 21:18:07 +0000 (00:18 +0300)] 
tests: HS20_ANQP_GET

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: P2P_SERVICE_DEL
Jouni Malinen [Fri, 11 Apr 2014 21:16:38 +0000 (00:16 +0300)] 
tests: P2P_SERVICE_DEL

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: ctrl_iface LIST_CREDS
Jouni Malinen [Fri, 11 Apr 2014 21:05:34 +0000 (00:05 +0300)] 
tests: ctrl_iface LIST_CREDS

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: ctrl_iface SCAN_RESULTS
Jouni Malinen [Fri, 11 Apr 2014 21:00:51 +0000 (00:00 +0300)] 
tests: ctrl_iface SCAN_RESULTS

Signed-off-by: Jouni Malinen <j@w1.fi>
11 years agotests: ctrl_iface LOG_LEVEL
Jouni Malinen [Fri, 11 Apr 2014 20:56:57 +0000 (23:56 +0300)] 
tests: ctrl_iface LOG_LEVEL

Signed-off-by: Jouni Malinen <j@w1.fi>