libeap.git
14 years agoatheros: Fix WPA/802.1X disabling to clear Privacy flag
Jouni Malinen [Fri, 28 May 2010 18:51:31 +0000 (21:51 +0300)]
atheros: Fix WPA/802.1X disabling to clear Privacy flag

Setting IEEE80211_PARAM_AUTHMODE to IEEE80211_AUTH_AUTO ends up enabling
Privacy mode in the driver. We need to clear that to allow hostapd to be
reconfigured into open mode.

14 years agoWPS ER: Add command for configuring an AP
Jouni Malinen [Thu, 27 May 2010 21:01:48 +0000 (00:01 +0300)]
WPS ER: Add command for configuring an AP

wps_er_config can now be used to configure an AP. It is similar to
wps_er_learn, but instead of only learning the current AP settings,
it continues to send M8 with the new settings for the AP.

14 years agoWPS ER: Add initial documentation for External Registrar functionality
Jouni Malinen [Thu, 27 May 2010 12:25:18 +0000 (15:25 +0300)]
WPS ER: Add initial documentation for External Registrar functionality

14 years agoWPS ER: Add ctrl_iface event for learned AP settings
Jouni Malinen [Thu, 27 May 2010 12:24:45 +0000 (15:24 +0300)]
WPS ER: Add ctrl_iface event for learned AP settings

14 years agoWPS ER: Allow AP filtering based on IP address
Jouni Malinen [Thu, 27 May 2010 12:23:55 +0000 (15:23 +0300)]
WPS ER: Allow AP filtering based on IP address

wps_er_start command now takes an optional parameter that can be used
to configure a filter to only allow UPnP SSDP messages from the
specified IP address. In practice, this limits the WPS ER operations
to a single AP and filters out all other devices in the network.

14 years agoWPS ER: Fix Credential to use correct Enrollee MAC Address
Jouni Malinen [Thu, 27 May 2010 12:22:44 +0000 (15:22 +0300)]
WPS ER: Fix Credential to use correct Enrollee MAC Address

When starting the protocol run with an Enrollee, clone the AP Settings
and replace the AP MAC Address with the Enrollee MAC Address so that the
correct value is then used in the Credential attribute in M8.

14 years agoAdd WPS IE into (Re)Association Response frame if WPS is used
Jouni Malinen [Wed, 26 May 2010 15:46:08 +0000 (18:46 +0300)]
Add WPS IE into (Re)Association Response frame if WPS is used

If the associating station indicates that it is intents to use WPS
by including WPS IE in (Re)Association Request frame, include WPS IE
in (Re)Association Response frame.

14 years agoReassemble WPS IE(s) in (Re)Association Request if needed
Jouni Malinen [Wed, 26 May 2010 15:17:13 +0000 (18:17 +0300)]
Reassemble WPS IE(s) in (Re)Association Request if needed

Use a function that will take care of possible (though, very unlikely)
fragmentation of WPS TLVs in (Re)Association Request frames.

14 years agoFix WPS attribute parser to use correct pointer for Response Type
Jouni Malinen [Wed, 26 May 2010 14:12:30 +0000 (17:12 +0300)]
Fix WPS attribute parser to use correct pointer for Response Type

14 years agoInternal TLS: Fix X.509 name handling to use sequency of attributes
Jouni Malinen [Tue, 25 May 2010 17:55:29 +0000 (20:55 +0300)]
Internal TLS: Fix X.509 name handling to use sequency of attributes

There may be more than one attribute of same type (e.g., multiple DC
attributes), so the code needs to be able to handle that. Replace the
fixed structure with an array of attributes.

14 years agoInternal TLS: Add domainComponent parser for X.509 names
Jouni Malinen [Tue, 25 May 2010 16:43:21 +0000 (19:43 +0300)]
Internal TLS: Add domainComponent parser for X.509 names

14 years agoFix memory leak on rfkill init error path
Jouni Malinen [Tue, 25 May 2010 09:06:25 +0000 (12:06 +0300)]
Fix memory leak on rfkill init error path

14 years agoFix a typo in unused attribute name
Jouni Malinen [Tue, 25 May 2010 06:57:22 +0000 (09:57 +0300)]
Fix a typo in unused attribute name

14 years agoSkip D-Bus signals if the dbus_path is not yet set
Jouni Malinen [Sun, 23 May 2010 17:23:11 +0000 (20:23 +0300)]
Skip D-Bus signals if the dbus_path is not yet set

This avoids an invalid D-Bus call during interface initialization.
The wpa_state change can happen before the D-Bus interface is set up,
so we must be preparted to handle this early event signal. In theory,
it should be possible to reorder initialization code to make sure
D-Bus signals are ready, but that would likely require quite a bit of
code restructuring, so it looks like a safer option for now is to just
skip the early event.

14 years agobsd: Use set_freq() API for AP mode wpa_supplicant
Masashi Honma [Sun, 23 May 2010 09:20:33 +0000 (12:20 +0300)]
bsd: Use set_freq() API for AP mode wpa_supplicant

Previous version driver_bsd.c switches the channel in
wpa_driver_bsd_associate(). This patch changes it to use set_freq().
I have tested this patch on FreeBSD 8.0/NetBSD 5.0.2 with hostapd,
wpa_supplicant(AP) and wpa_supplicant(STA).

14 years agoFix CONFIG_AP=y build without CONFIG_IEEE8021X_EAPOL=y
Jouni Malinen [Sun, 23 May 2010 09:18:47 +0000 (12:18 +0300)]
Fix CONFIG_AP=y build without CONFIG_IEEE8021X_EAPOL=y

14 years agoFix: AP mode wpa_supplicant build
Masashi Honma [Sun, 23 May 2010 09:12:40 +0000 (12:12 +0300)]
Fix: AP mode wpa_supplicant build

The wpa_supplicant compilation with CONFIG_AP option and without
CONFIG_IEEE80211R, CONFIG_WPS, NEED_SME, CONFIG_CLIENT_MLME options
results in following messages.

../src/ap/drv_callbacks.o: In function `hostapd_notif_assoc':
../src/ap/drv_callbacks.c:59: undefined reference to
`ieee802_11_parse_elems'
gmake: *** [wpa_supplicant] Error 1

14 years agoAdd Linux rfkill support
Jouni Malinen [Sun, 23 May 2010 07:27:32 +0000 (10:27 +0300)]
Add Linux rfkill support

Add a new wpa_supplicant state: interface disabled. This can be used
to allow wpa_supplicant to be running with the network interface even
when the driver does not actually allow any radio operations (e.g.,
due to rfkill).

Allow driver_nl80211.c and driver_wext.c to start while rfkill is in
blocked state (i.e., when ifconfig up fails) and process rfkill
events to block/unblock WLAN.

14 years agoUpdate WPS IE on hostapd reconfiguration
Andriy Tkachuk [Sun, 2 May 2010 08:21:19 +0000 (11:21 +0300)]
Update WPS IE on hostapd reconfiguration

This is needed to handle cases where WPS state may have changed and
hostapd is reloading its configuration.

14 years agowpa_gui-qt4: Fix network selection
Kel Modderman [Sun, 2 May 2010 08:17:13 +0000 (11:17 +0300)]
wpa_gui-qt4: Fix network selection

Use regular expression matches to see if input is not the (now translated?)
string "Select any network" and is a "<network id>: <ssid>" string or the
"all" keyword where that is applicable.

Signed-off-by: Kel Modderman <kel@otaku42.de>
14 years agoFix enabling of networks while another network is being used
Kel Modderman [Sun, 2 May 2010 08:08:03 +0000 (11:08 +0300)]
Fix enabling of networks while another network is being used

Enable a network block, even if there is a current configuration, if it
was disabled.

Signed-off-by: Kel Modderman <kel@otaku42.de>
14 years agohostapd: Reorder some IEs to get closer to IEEE 802.11 standard
Jouni Malinen [Sun, 2 May 2010 07:53:01 +0000 (10:53 +0300)]
hostapd: Reorder some IEs to get closer to IEEE 802.11 standard

Vendor-specific IEs are supposed to be in the end of the frame, so move
WMM into the end of Beacon, Probe Response, and (Re)Association Response
frames. In addition, move HT IEs to be later in (Re)Association
Response to match the correct order.

hostapd_eid_wpa() adds multiple IEs and the end result may not always be
correct. If WPA is enabled, WPA IE (vendor-specific) gets added in the
middle of the frame and not in the end. This would require a larger
change to spliut the IEs from WPA module into separate locations when
constructing Beacon and Probe Response frames. This is not yet addressed.

14 years agoFix fallback from failed PMKSA caching into full EAP authentication
Jouni Malinen [Sat, 1 May 2010 14:35:28 +0000 (17:35 +0300)]
Fix fallback from failed PMKSA caching into full EAP authentication

Commit 83935317a78fb4157eb6e5134527b9311dbf7b8c added forced
disconnection in case of 4-way handshake failures. However, it should
not have changed the case where the supplicant is requesting fallback
to full EAP authentication if the PMKID in EAPOL-Key message 1/4 is
not know. This case needs to send an EAPOL-Start frame instead of
EAPOL-Key message 2/4.

This works around a problem with APs that try to force PMKSA caching
even when the client does not include PMKID in (re)association request
frame to request it. [Bug 355]

14 years agoFix EAPOL_SM_USES_WPA flag to be set correctly
Jouni Malinen [Sat, 1 May 2010 14:12:59 +0000 (17:12 +0300)]
Fix EAPOL_SM_USES_WPA flag to be set correctly

Commit c02d52b405fb017e1eec80082dbe433fec53d9c2 removed direct calls
to the WPA authenticator, but the change here was incorrect.
EAPOL_SM_USES_WPA was supposed to be set based on sta->wpa_sm being
set, i.e., no need to check for PMKSA entries for that.

While this could potentially change EAPOL Key TX state machine behavior,
no clear problems have been identified so far. Anyway, better fix this
to get the correct flags set for EAPOL authenticator state machine.

14 years agoFix WPA state machine initialization on WPA_REAUTH if needed
Jouni Malinen [Fri, 23 Apr 2010 13:49:50 +0000 (16:49 +0300)]
Fix WPA state machine initialization on WPA_REAUTH if needed

When using WPS, we may end up here if the STA manages to re-associate
without the previous STA entry getting removed. Consequently, we need to
make sure that the WPA state machines gets initialized properly at this
point.

14 years agohostap.git is now 0.8.x development tree
Jouni Malinen [Sun, 18 Apr 2010 18:01:00 +0000 (21:01 +0300)]
hostap.git is now 0.8.x development tree

0.7.x for branched into hostap-07.git for stable releases.

14 years agoAdd wpa_gui-qt4 translation files into build hostap_0_7_2
Jouni Malinen [Sun, 18 Apr 2010 16:15:07 +0000 (19:15 +0300)]
Add wpa_gui-qt4 translation files into build

14 years agowpa_gui: lupdate run before release
Jouni Malinen [Sun, 18 Apr 2010 16:08:14 +0000 (19:08 +0300)]
wpa_gui: lupdate run before release

14 years agowpa_gui: Fix Windows build
Jouni Malinen [Sun, 18 Apr 2010 16:06:24 +0000 (19:06 +0300)]
wpa_gui: Fix Windows build

14 years agoPreparations for 0.7.2 release
Jouni Malinen [Sun, 18 Apr 2010 15:02:34 +0000 (18:02 +0300)]
Preparations for 0.7.2 release

14 years agoTNC: Add more debug infor to EAP-TNC server state changes
Jouni Malinen [Sun, 18 Apr 2010 09:24:02 +0000 (12:24 +0300)]
TNC: Add more debug infor to EAP-TNC server state changes

14 years agoTNC: Fix EAP-TNC fragmentation of the last message
Jouni Malinen [Sun, 18 Apr 2010 09:21:56 +0000 (12:21 +0300)]
TNC: Fix EAP-TNC fragmentation of the last message

62477841a18233586e352d7b901addf18abc1d8a tried to address fragmentation
issues, but it did not address the case where the final EAP-TNC
message gets fragmented. Move the state update to the correct place
to address this case, too.

14 years agoTNCS: Fix uninit in error case to not double free IMVs
Jouni Malinen [Sun, 18 Apr 2010 08:10:46 +0000 (11:10 +0300)]
TNCS: Fix uninit in error case to not double free IMVs

14 years agoWPS: Include CONFIG_EAP automatically if WPS is enabled
Jouni Malinen [Sat, 17 Apr 2010 19:05:18 +0000 (22:05 +0300)]
WPS: Include CONFIG_EAP automatically if WPS is enabled

14 years agoatheros: Restore ATH_WPS_IE definition and comment
Jouni Malinen [Sat, 17 Apr 2010 18:47:13 +0000 (21:47 +0300)]
atheros: Restore ATH_WPS_IE definition and comment

14 years agoatheros: Add more robust and complete debug info for ioctl failures
Jouni Malinen [Sat, 17 Apr 2010 18:45:34 +0000 (21:45 +0300)]
atheros: Add more robust and complete debug info for ioctl failures

14 years agoatheros: Update to build with the current driver version
Jouni Malinen [Sat, 17 Apr 2010 18:04:26 +0000 (21:04 +0300)]
atheros: Update to build with the current driver version

14 years agoFix build without CONFIG_FULL_DYNAMIC_VLAN
Jouni Malinen [Sat, 17 Apr 2010 18:01:35 +0000 (21:01 +0300)]
Fix build without CONFIG_FULL_DYNAMIC_VLAN

14 years agoSupport for Solaris default shell restriction
Masashi Honma [Sat, 17 Apr 2010 14:15:23 +0000 (17:15 +0300)]
Support for Solaris default shell restriction

Some shells (like Solaris default /bin/sh) doesn't allow -e
option for file existence check. Use -f instead.

14 years agoRemove unnecessary SUBDIRS loops from src/*/Makefile
Jouni Malinen [Sat, 17 Apr 2010 14:10:31 +0000 (17:10 +0300)]
Remove unnecessary SUBDIRS loops from src/*/Makefile

There are no subdirectories in any of these directories or plans
for adding ones. As such, there is no point in running the loop
that does not do anything and can cause problems with some shells.

14 years agoVLAN: Reorder init to get same behavior for all VLAN interfaces
Jouni Malinen [Sat, 17 Apr 2010 06:48:27 +0000 (09:48 +0300)]
VLAN: Reorder init to get same behavior for all VLAN interfaces

Both the wildcard VLAN entry and the statically configured VLAN
interfaces should behave in the same way. Initializing the
full dynamic VLAN code before adding the statically configured VLAN
interfaces allows the same processing to be applied to both statically
and dynamically added VLAN interface (i.e., also the statically
configured ones will be added to a bridge).

14 years agoVLAN: Set statically configured VLAN interfaces up
Jouni Malinen [Sat, 17 Apr 2010 06:45:18 +0000 (09:45 +0300)]
VLAN: Set statically configured VLAN interfaces up

This is needed to be able to bind stations to them with mac80211.

14 years agoDo not trigger initial scan if there are no enabled networks
Jouni Malinen [Fri, 16 Apr 2010 15:56:23 +0000 (18:56 +0300)]
Do not trigger initial scan if there are no enabled networks

This allows wpa_supplicant to be started quickly with an empty
configuration. If an external program wants to fetch scan results
from wpa_supplicant, it will need to request a scan explicitly
in this type of case.

14 years agonl80211: Fix wpa_supplicant build
Jouni Malinen [Fri, 16 Apr 2010 11:13:27 +0000 (14:13 +0300)]
nl80211: Fix wpa_supplicant build

14 years agoVLAN: Fix bridge interface clean up for no tagged_interface case
Jouni Malinen [Thu, 15 Apr 2010 22:13:46 +0000 (01:13 +0300)]
VLAN: Fix bridge interface clean up for no tagged_interface case

14 years agoVLAN: Decrease bridge forwarding delay to avoid EAPOL timeouts
M. Braun [Thu, 15 Apr 2010 21:48:32 +0000 (00:48 +0300)]
VLAN: Decrease bridge forwarding delay to avoid EAPOL timeouts

14 years agonl80211: Fix initial add_ifidx() realloc to not forget values
M. Braun [Thu, 15 Apr 2010 21:39:59 +0000 (00:39 +0300)]
nl80211: Fix initial add_ifidx() realloc to not forget values

We need to make a copy of the old entries the first time the
if_indices buffer gets allocated.

14 years agonl80211: Add bridge interfaces to own ifindex list automatically
M. Braun [Thu, 15 Apr 2010 21:36:33 +0000 (00:36 +0300)]
nl80211: Add bridge interfaces to own ifindex list automatically

Whenever our own interface is added to a bridge, add that bridge
into the list of own interfaces.

14 years agoVLAN: Set dynamic VLAN up to fix STA bind and key setup
M. Braun [Thu, 15 Apr 2010 20:54:41 +0000 (23:54 +0300)]
VLAN: Set dynamic VLAN up to fix STA bind and key setup

14 years agonl80211: Add more debug info on NL80211_ATTR_STA_VLAN failures
Jouni Malinen [Thu, 15 Apr 2010 20:46:49 +0000 (23:46 +0300)]
nl80211: Add more debug info on NL80211_ATTR_STA_VLAN failures

14 years agoStop processing if STA VLAN bind fails
Jouni Malinen [Thu, 15 Apr 2010 20:44:10 +0000 (23:44 +0300)]
Stop processing if STA VLAN bind fails

14 years agoVLAN: Clean up debug code and error messages
Jouni Malinen [Thu, 15 Apr 2010 17:35:51 +0000 (20:35 +0300)]
VLAN: Clean up debug code and error messages

14 years agoWPS: Fix association when both WPS and WPA/RSN IE are included
Jouni Malinen [Thu, 15 Apr 2010 09:55:34 +0000 (12:55 +0300)]
WPS: Fix association when both WPS and WPA/RSN IE are included

The WPS IE was overriding the WPA/RSN IE in driver based MLME case
(hostapd_notif_assoc), but the MLME code here was not using WPS IE
correctly, i.e., it allowed the WPA/RSN IE override the operation.

14 years agoFix get_interfaces() driver call to use correct drv_priv data
Jouni Malinen [Wed, 14 Apr 2010 13:38:53 +0000 (16:38 +0300)]
Fix get_interfaces() driver call to use correct drv_priv data

14 years agoFix hostapd build without WPS
Jouni Malinen [Mon, 12 Apr 2010 12:15:17 +0000 (15:15 +0300)]
Fix hostapd build without WPS

14 years agoFix internal DH implementation not to pad shared key
Jouni Malinen [Mon, 12 Apr 2010 09:25:21 +0000 (12:25 +0300)]
Fix internal DH implementation not to pad shared key

The returned buffer length was hardcoded to be the prime length
which resulted in shorter results being padded in the end. However,
the results from DH code are supposed to be unpadded (and when used
with WPS, the padding is done in WPS code and it is added to the
beginning of the buffer). This fixes WPS key derivation errors
in about 1/256 of runs ("WPS: Incorrect Authenticator") when using
the internal crypto code.

14 years agoSME: Fix build without 802.11r or WPS
Jouni Malinen [Mon, 12 Apr 2010 06:39:36 +0000 (09:39 +0300)]
SME: Fix build without 802.11r or WPS

14 years ago.gitignore for generated language files
Jouni Malinen [Sun, 11 Apr 2010 20:00:51 +0000 (23:00 +0300)]
.gitignore for generated language files

14 years agowpa_gui: Add Qt translator installation and German translation
Stefan Oswald [Sun, 11 Apr 2010 19:58:08 +0000 (22:58 +0300)]
wpa_gui: Add Qt translator installation and German translation

This takes QTranslator into use and adds a German translation of
wpa_gui.

14 years agowpa_gui: Make Status strings visible to linguist
Stefan Oswald [Sun, 11 Apr 2010 19:42:02 +0000 (22:42 +0300)]
wpa_gui: Make Status strings visible to linguist

Linguist cannot see the strings coming from wpa_supplicant, so create
a function that translates these to tr() strings inside wpa_gui
source code.

14 years agowpa_gui: Convert strings to use tr() in user-visible text
Stefan Oswald [Sun, 11 Apr 2010 19:35:02 +0000 (22:35 +0300)]
wpa_gui: Convert strings to use tr() in user-visible text

This is in preparation for allowing wpa_gui to be translated.

14 years agodbus: Add new KeyMgmt interface capabilities
Witold Sowa [Sun, 11 Apr 2010 18:37:28 +0000 (21:37 +0300)]
dbus: Add new KeyMgmt interface capabilities

Add "wpa-ft-psk", "wpa-psk-sha256", "wpa-ft-eap" and "wpa-eap-sha256"
possible KeyMgmt values of interface capabilities to fit values in
BSS RSN options dictionary.

14 years agoAdd BSSID and reason code (if available) to disconnect event
Jouni Malinen [Sun, 11 Apr 2010 18:25:15 +0000 (21:25 +0300)]
Add BSSID and reason code (if available) to disconnect event

This adds more details into the CTRL-EVENT-DISCONNECTED event to
make it easier to figure out which network was disconnected in some
race conditions and to what could have been the reason for
disconnection. The reason code is currently only available with
the nl80211 driver wrapper.

14 years agohostapd_cli: Add deauth/disassoc commands to usage help
Jouni Malinen [Sun, 11 Apr 2010 18:00:16 +0000 (21:00 +0300)]
hostapd_cli: Add deauth/disassoc commands to usage help

14 years agonl80211: Define set_freq for wpa_supplicant, too
Jouni Malinen [Sun, 11 Apr 2010 17:36:16 +0000 (20:36 +0300)]
nl80211: Define set_freq for wpa_supplicant, too

14 years agoAdd wpa_supplicant AP mode events for Public Action frames
Jouni Malinen [Sun, 11 Apr 2010 17:33:33 +0000 (20:33 +0300)]
Add wpa_supplicant AP mode events for Public Action frames

14 years agoAdd WPS Registrar success callback
Jouni Malinen [Sun, 11 Apr 2010 17:21:08 +0000 (20:21 +0300)]
Add WPS Registrar success callback

14 years agoStarted to make set_ap_wps_ie() capable of adding multiple IEs
Jouni Malinen [Sun, 11 Apr 2010 17:16:43 +0000 (20:16 +0300)]
Started to make set_ap_wps_ie() capable of adding multiple IEs

This mechanism can be used to add various IEs to Beacon and Probe
Response frames and it should be made clear that it is not reserved
only for WPS IE.

14 years agowpa_supplicant AP mode: Add function for enabling MAC address filtering
Jouni Malinen [Sun, 11 Apr 2010 17:08:00 +0000 (20:08 +0300)]
wpa_supplicant AP mode: Add function for enabling MAC address filtering

This can be used to allow only a specific station to associate.

14 years agoMake sure AP interface is initialize before accepting WPS commands
Jouni Malinen [Sun, 11 Apr 2010 17:06:12 +0000 (20:06 +0300)]
Make sure AP interface is initialize before accepting WPS commands

14 years agowpa_supplicant AP: More thorough AP mode deinit
Jouni Malinen [Sun, 11 Apr 2010 17:03:39 +0000 (20:03 +0300)]
wpa_supplicant AP: More thorough AP mode deinit

14 years agoAdd more wpa_supplicant AP mode parameters for the driver wrapper
Jouni Malinen [Sun, 11 Apr 2010 17:02:01 +0000 (20:02 +0300)]
Add more wpa_supplicant AP mode parameters for the driver wrapper

This makes it easier to configure AP mode for drivers that take care
of WPA/RSN IE generation.

14 years agoAdd registerable callback for wpa_supplicant AP mode completion
Jouni Malinen [Sun, 11 Apr 2010 16:59:33 +0000 (19:59 +0300)]
Add registerable callback for wpa_supplicant AP mode completion

14 years agoTry to start a new scan more quickly after driver rejection
Jouni Malinen [Sun, 11 Apr 2010 16:56:23 +0000 (19:56 +0300)]
Try to start a new scan more quickly after driver rejection

This speeds up recovery from some cases where the driver may refuse
a new scan request command temporarily.

14 years agoAdd an option to request a connection without a new scan
Jouni Malinen [Sun, 11 Apr 2010 16:55:40 +0000 (19:55 +0300)]
Add an option to request a connection without a new scan

14 years agoAdd option for overriding scan result handler for a single scan
Jouni Malinen [Sun, 11 Apr 2010 16:53:31 +0000 (19:53 +0300)]
Add option for overriding scan result handler for a single scan

14 years agoFT: Fix wpa_sm_set_ft_params wrapper for non-FT build
Jouni Malinen [Sun, 11 Apr 2010 16:49:32 +0000 (19:49 +0300)]
FT: Fix wpa_sm_set_ft_params wrapper for non-FT build

14 years agoAllow driver wrappers to indicate maximum remain-on-channel duration
Jouni Malinen [Sun, 11 Apr 2010 16:42:37 +0000 (19:42 +0300)]
Allow driver wrappers to indicate maximum remain-on-channel duration

14 years agonl80211: Fix key configuration in wpa_supplicant AP mode
Jouni Malinen [Sun, 11 Apr 2010 16:35:24 +0000 (19:35 +0300)]
nl80211: Fix key configuration in wpa_supplicant AP mode

14 years agonl80211: Remove forgotten Action frame registration example
Jouni Malinen [Sun, 11 Apr 2010 16:32:07 +0000 (19:32 +0300)]
nl80211: Remove forgotten Action frame registration example

14 years agoAvoid dropping ctrl_iface on ENOBUFS error burst
Jouni Malinen [Sun, 11 Apr 2010 16:29:24 +0000 (19:29 +0300)]
Avoid dropping ctrl_iface on ENOBUFS error burst

These bursts can result in control interface monitors being detached
even if the external program is still working properly. Use much larger
error threshold for ENOBUFS to avoid this.

14 years agoDeauthenticate instead of disassociate on disconnect command
Jouni Malinen [Sun, 11 Apr 2010 16:27:41 +0000 (19:27 +0300)]
Deauthenticate instead of disassociate on disconnect command

This clears up authentication state in the driver and in case of
cfg80211, unlocks the BSS entry for the previously used AP.

14 years agoSimplify driver_ops for virtual interface add/remove
Jouni Malinen [Sun, 11 Apr 2010 16:23:09 +0000 (19:23 +0300)]
Simplify driver_ops for virtual interface add/remove

There is no absolute requirement for separating address allocation
into separate functions, so simplify the driver wrapper interface
to use just if_add and if_remove instead of adding the new
alloc_interface_addr() and release_interface_addr() functions.

if_add() can now indicate if the driver forced a different interface
name or address on the virtual interface.

14 years agoAllow sub-second resolution for scan requests
Jouni Malinen [Sun, 11 Apr 2010 16:10:01 +0000 (19:10 +0300)]
Allow sub-second resolution for scan requests

This is in preparation to use cases that may benefit from more frequent
scanning.

14 years agoOptimize post-WPS scan based on channel used during provisioning
Jouni Malinen [Sun, 11 Apr 2010 16:06:42 +0000 (19:06 +0300)]
Optimize post-WPS scan based on channel used during provisioning

Scan only the frequency that was used during provisioning during the
first five scans for the connection. This speeds up connection in the
most likely case where the AP remains on the same channel. If the AP is
not found after these initial scans, all channels will be scanned.

14 years agoEAP-MD5: Use conditional success decision
Jouni Malinen [Sun, 11 Apr 2010 10:43:17 +0000 (13:43 +0300)]
EAP-MD5: Use conditional success decision

The server may still reject authentication at this point, so better
use conditional success decision. This allows the potentially
following EAP-Failure message to be processed properly. [Bug 354]

14 years agonl80211: Fix memory leak on send_action error path
Jouni Malinen [Sun, 11 Apr 2010 09:29:16 +0000 (12:29 +0300)]
nl80211: Fix memory leak on send_action error path

14 years agoUse unsigned bitfield for 1-bit values
Jouni Malinen [Sun, 11 Apr 2010 09:27:13 +0000 (12:27 +0300)]
Use unsigned bitfield for 1-bit values

14 years agoSME: Handle association without own extra IEs
Jouni Malinen [Sun, 11 Apr 2010 09:19:02 +0000 (12:19 +0300)]
SME: Handle association without own extra IEs

Need to check for this before calling ieee802_11_parse_elems().

14 years agoFix wpa_sm_has_ptk() no-WPA wrapper location
Jouni Malinen [Sun, 11 Apr 2010 08:39:14 +0000 (11:39 +0300)]
Fix wpa_sm_has_ptk() no-WPA wrapper location

14 years agoAllow advertising of U-APSD functionality in Beacon
Yogesh Ashok Powar [Sun, 11 Apr 2010 08:32:15 +0000 (11:32 +0300)]
Allow advertising of U-APSD functionality in Beacon

hostapd does not implement UAPSD functionality. However, if U-APSD
functionality is implemented outside hostapd, add support to advertise
the functionality in beacon.

Signed-off-by: yogeshp@marvell.com
14 years agoAdd ctrl_iface command for triggering a roam to a specific BSS
Jouni Malinen [Sat, 10 Apr 2010 19:56:55 +0000 (22:56 +0300)]
Add ctrl_iface command for triggering a roam to a specific BSS

'wpa_cli roam <bssid>' can now be used to test roaming within an ESS
(e.g., for FT over-the-air). This command will bypass a new scan and
will select the BSS based on the specified BSSID. It is responsibility
of the caller to make sure that the target AP is in the BSS table.
This can be done, e.g., by running a scan before the roam command,
if needed.

14 years agoFix error messages to print ASCII MAC address, not the parse buffer
Jouni Malinen [Sat, 10 Apr 2010 19:46:54 +0000 (22:46 +0300)]
Fix error messages to print ASCII MAC address, not the parse buffer

14 years agoFT: Validate MDIE and FTIE in FT 4-way handshake message 2/4
Jouni Malinen [Sat, 10 Apr 2010 19:40:35 +0000 (22:40 +0300)]
FT: Validate MDIE and FTIE in FT 4-way handshake message 2/4

14 years agoSME: Do not try to use FT over-the-air if PTK is not available
Jouni Malinen [Sat, 10 Apr 2010 19:39:49 +0000 (22:39 +0300)]
SME: Do not try to use FT over-the-air if PTK is not available

14 years agoFT: Verify that MDIE and FTIE matches between AssocResp and EAPOL-Key 3/4
Jouni Malinen [Sat, 10 Apr 2010 19:06:13 +0000 (22:06 +0300)]
FT: Verify that MDIE and FTIE matches between AssocResp and EAPOL-Key 3/4

14 years agoSplit EAPOL-Key msg 3/4 Key Data validation into helper functions
Jouni Malinen [Sat, 10 Apr 2010 18:55:29 +0000 (21:55 +0300)]
Split EAPOL-Key msg 3/4 Key Data validation into helper functions

14 years agoFT: Add FTIE, TIE[ReassocDeadline], TIE[KeyLifetime] to EAPOL-Key 3/4
Jouni Malinen [Sat, 10 Apr 2010 18:42:54 +0000 (21:42 +0300)]
FT: Add FTIE, TIE[ReassocDeadline], TIE[KeyLifetime] to EAPOL-Key 3/4

These are mandatory IEs to be included in the FT 4-Way Handshake
Message 3.

14 years agoAdd more verbose debugging for EAPOL-Key Key Data field IEs/KDEs
Jouni Malinen [Sat, 10 Apr 2010 18:42:01 +0000 (21:42 +0300)]
Add more verbose debugging for EAPOL-Key Key Data field IEs/KDEs

14 years agoFT: Copy MDIE and FTIE from (Re)Association Response into EAPOL-Key 2/4
Jouni Malinen [Sat, 10 Apr 2010 13:48:40 +0000 (16:48 +0300)]
FT: Copy MDIE and FTIE from (Re)Association Response into EAPOL-Key 2/4

IEEE Std 802.11r-2008 requires that the message 2 includes FTIE and
MDIE from the AP's (Re)Association Response frame in the Key Data
field.