]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
14 years agoRemove src/crypto from default include path
Jouni Malinen [Sun, 29 Nov 2009 21:04:43 +0000 (23:04 +0200)] 
Remove src/crypto from default include path

In addition, start ordering header file includes to be in more
consistent order: system header files, src/utils, src/*, same
directory as the *.c file.

14 years agoSplit handle_assoc() into number of helper functions
Jouni Malinen [Sun, 29 Nov 2009 20:14:57 +0000 (22:14 +0200)] 
Split handle_assoc() into number of helper functions

14 years agoMark IE input to hostapd_eid_wmm_valid() const
Jouni Malinen [Sun, 29 Nov 2009 20:10:38 +0000 (22:10 +0200)] 
Mark IE input to hostapd_eid_wmm_valid() const

14 years agoCheck AID availability before handling HT state updates on association
Jouni Malinen [Sun, 29 Nov 2009 19:11:10 +0000 (21:11 +0200)] 
Check AID availability before handling HT state updates on association

14 years agoAllocate sta->ht_capabilities dynamically
Jouni Malinen [Sun, 29 Nov 2009 19:07:52 +0000 (21:07 +0200)] 
Allocate sta->ht_capabilities dynamically

This avoids need for conditional inclusion of header file into
sta_info.h and cleans up the code a bit.

14 years agoInclude src/eapol_auth in Doxygen documents
Jouni Malinen [Sun, 29 Nov 2009 18:23:55 +0000 (20:23 +0200)] 
Include src/eapol_auth in Doxygen documents

14 years agoAdd Makefile for the new src/eapol_auth directory
Jouni Malinen [Sun, 29 Nov 2009 18:21:25 +0000 (20:21 +0200)] 
Add Makefile for the new src/eapol_auth directory

14 years agoMake HOSTAPD_DUMP_STATE configurable with CONFIG_NO_DUMP_STATE
Jouni Malinen [Sun, 29 Nov 2009 18:18:47 +0000 (20:18 +0200)] 
Make HOSTAPD_DUMP_STATE configurable with CONFIG_NO_DUMP_STATE

This removes the hardcoded definition from Makefile and cleans up
source code by moving the mail HOSTAPD_DUMP_STATE blocks into separate
files to avoid conditional compilation within files.

14 years agoMove EAPOL authenticator state machine into src/eapol_auth
Jouni Malinen [Sun, 29 Nov 2009 18:03:28 +0000 (20:03 +0200)] 
Move EAPOL authenticator state machine into src/eapol_auth

This is now completely independent from hostapd-specific code, so
it can be moved to be under the src tree.

14 years agoChange EAPOL authenticator hapd pointers to be opaque context
Jouni Malinen [Sun, 29 Nov 2009 17:49:14 +0000 (19:49 +0200)] 
Change EAPOL authenticator hapd pointers to be opaque context

This cleans up the eapol_sm.c interface to not depend on any
hostapd-specific data structures.

14 years agoRemove dependency on sta_info.h from eapol_sm.c
Jouni Malinen [Sun, 29 Nov 2009 17:40:47 +0000 (19:40 +0200)] 
Remove dependency on sta_info.h from eapol_sm.c

Instead of fetching WPS IE from struct sta_info, pass this as a
parameter to eapol_auth_alloc().

14 years agoMake eapol_auth_initialize() static since it is internal to eapol_sm.c
Jouni Malinen [Sun, 29 Nov 2009 17:32:40 +0000 (19:32 +0200)] 
Make eapol_auth_initialize() static since it is internal to eapol_sm.c

14 years agoAdd EAPOL authenticator event callback
Jouni Malinen [Sun, 29 Nov 2009 17:31:50 +0000 (19:31 +0200)] 
Add EAPOL authenticator event callback

This avoids direct calls to WPA authenticator from eapol_sm.c.

14 years agoGet PMKSA cache status as EAPOL alloc flag
Jouni Malinen [Sun, 29 Nov 2009 17:21:56 +0000 (19:21 +0200)] 
Get PMKSA cache status as EAPOL alloc flag

No need to have a direct call from EAPOL authenticator to WPA
authenticator to figure this out for log output.

14 years agoInitialize EAPOL authenticator flags during allocation
Jouni Malinen [Sun, 29 Nov 2009 17:12:45 +0000 (19:12 +0200)] 
Initialize EAPOL authenticator flags during allocation

Store both preauthentication and WPA use status with EAPOL flags.

14 years agoInclude common/eapol_common.h explicit and fix eapol_auth_logger enum
Jouni Malinen [Sun, 29 Nov 2009 17:03:47 +0000 (19:03 +0200)] 
Include common/eapol_common.h explicit and fix eapol_auth_logger enum

14 years agoReplace eap_type_text() with EAP server methods function
Jouni Malinen [Sun, 29 Nov 2009 16:57:15 +0000 (18:57 +0200)] 
Replace eap_type_text() with EAP server methods function

While this may not include knowledge of all EAP methods since this
depends on build configuration, it is better to not have to include
ieee802_1x.h into eapol_sm.c.

14 years agoConver hostapd specific files to include common.h
Jouni Malinen [Sun, 29 Nov 2009 16:46:42 +0000 (18:46 +0200)] 
Conver hostapd specific files to include common.h

Instead of getting this via hostapd.h, include it as the first
non-system header file in all source code files in the same way as
used in all other files.

14 years agoFix IBSS RSN build
Jouni Malinen [Sun, 29 Nov 2009 16:31:16 +0000 (18:31 +0200)] 
Fix IBSS RSN build

14 years agoRemove src/rsn_supp from default header path
Jouni Malinen [Sun, 29 Nov 2009 16:28:08 +0000 (18:28 +0200)] 
Remove src/rsn_supp from default header path

14 years agoAdd driver wrapper callback for WPS push button pressed
Jouni Malinen [Sun, 29 Nov 2009 16:18:02 +0000 (18:18 +0200)] 
Add driver wrapper callback for WPS push button pressed

This avoids the need to include ../hostapd/wps_hostapd.h into the
driver wrappers.

14 years agodriver_prism54: Use hostapd_notif_disassoc() instead of private copy
Jouni Malinen [Sun, 29 Nov 2009 16:13:15 +0000 (18:13 +0200)] 
driver_prism54: Use hostapd_notif_disassoc() instead of private copy

14 years agoRemove some unneeded header file inclusions
Jouni Malinen [Sun, 29 Nov 2009 16:07:08 +0000 (18:07 +0200)] 
Remove some unneeded header file inclusions

14 years agoInclude sta_flags.h explicitly, not via sta_info.h
Jouni Malinen [Sun, 29 Nov 2009 16:00:39 +0000 (18:00 +0200)] 
Include sta_flags.h explicitly, not via sta_info.h

14 years agoRemove src/common from default header file path
Jouni Malinen [Sun, 29 Nov 2009 15:51:55 +0000 (17:51 +0200)] 
Remove src/common from default header file path

This makes it clearer which files are including header from src/common.
Some of these cases should probably be cleaned up in the future not to
do that.

In addition, src/common/nl80211_copy.h and wireless_copy.h were moved
into src/drivers since they are only used by driver wrappers and do not
need to live in src/common.

14 years agoSplit scan processing for RSN preauthentication into parts
Jouni Malinen [Sun, 29 Nov 2009 15:06:03 +0000 (17:06 +0200)] 
Split scan processing for RSN preauthentication into parts

This avoids passing the raw scan results into the RSN code and by
doing so, removes the only dependency on src/drivers from the
src/rsn_supp code (or from any src subdirectory for that matter).

14 years agoAdd Doxygen documentation for directories
Jouni Malinen [Sun, 29 Nov 2009 12:57:30 +0000 (14:57 +0200)] 
Add Doxygen documentation for directories

14 years agoMove uuid_gen_mac_addr() from uuid.c into src/wps
Jouni Malinen [Sun, 29 Nov 2009 11:15:32 +0000 (13:15 +0200)] 
Move uuid_gen_mac_addr() from uuid.c into src/wps

This removes the only src/crypto dependency from src/utils files.

14 years agonl80211: Remove unneeded header file: ieee802_11_common.h
Jouni Malinen [Sun, 29 Nov 2009 11:06:44 +0000 (13:06 +0200)] 
nl80211: Remove unneeded header file: ieee802_11_common.h

driver_nl80211.c does not use anything from this header file.

14 years agoHT: Remove unneeded struct ht_cap_ie wrapper
Jouni Malinen [Sun, 29 Nov 2009 11:04:21 +0000 (13:04 +0200)] 
HT: Remove unneeded struct ht_cap_ie wrapper

It is simpler to just use the HT Capabilities IE payload structure
as-is.

14 years agoRemove unused/unneeded IEEE 802.11n definitions
Jouni Malinen [Sun, 29 Nov 2009 10:43:23 +0000 (12:43 +0200)] 
Remove unused/unneeded IEEE 802.11n definitions

14 years agoFix AP mode HT Capabilities IE to use A-MPDU Parameters from the driver
Jouni Malinen [Sun, 29 Nov 2009 10:21:26 +0000 (12:21 +0200)] 
Fix AP mode HT Capabilities IE to use A-MPDU Parameters from the driver

Instead of using hardcoded maximum A-MPDU length of 64 kB and no
restrictions on minimum MPDU Start Spacing, use the correct values
reported by the driver.

14 years agoRename HT Capabilities IE fields to match with IEEE Std 802.11n-2009
Jouni Malinen [Sun, 29 Nov 2009 10:02:29 +0000 (12:02 +0200)] 
Rename HT Capabilities IE fields to match with IEEE Std 802.11n-2009

14 years agoComplete Doxygen documentation for RADIUS client
Jouni Malinen [Sun, 29 Nov 2009 09:48:28 +0000 (11:48 +0200)] 
Complete Doxygen documentation for RADIUS client

No more warnings from Doxygen about missing documentation from
radius_client.[ch].

14 years agoReplace hostapd devel doc link with shared doc with wpa_supplicant
Jouni Malinen [Sun, 29 Nov 2009 08:50:49 +0000 (10:50 +0200)] 
Replace hostapd devel doc link with shared doc with wpa_supplicant

14 years agoRemove unused RADIUS client reconfig function
Jouni Malinen [Sat, 28 Nov 2009 21:04:35 +0000 (23:04 +0200)] 
Remove unused RADIUS client reconfig function

This is not actually used at all and it looks like the rules for
maintaining the old/new RADIUS configuration are not very clear in the
case the RADIUS client configuration did not change. Consequently, it
is better to just remove this for now and if similar functionality is
ever needed, redesign it to be easier to use without causing hard to
find issues with using freed memory.

Simpler approach to reconfiguring the RADIUS client would involve
just deinitializing the old context unconditionally and initializing
a new one whenever the configuration could have changed.

14 years agoMove acct_interim_interval away from RADIUS client configuration
Jouni Malinen [Sat, 28 Nov 2009 21:03:20 +0000 (23:03 +0200)] 
Move acct_interim_interval away from RADIUS client configuration

This is not used at all inside RADIUS client and as such, it belongs
into hostapd configuration.

14 years agoImproved Doxygen documentation for RADIUS client code
Jouni Malinen [Sat, 28 Nov 2009 21:00:29 +0000 (23:00 +0200)] 
Improved Doxygen documentation for RADIUS client code

14 years agoFix doxygen file level comments
Jouni Malinen [Sat, 28 Nov 2009 19:34:14 +0000 (21:34 +0200)] 
Fix doxygen file level comments

14 years agoFix doxygen references to EAP server/peer module
Jouni Malinen [Sat, 28 Nov 2009 19:28:53 +0000 (21:28 +0200)] 
Fix doxygen references to EAP server/peer module

14 years agoRemove old wpa_supplicant/hostapd doxygen files
Jouni Malinen [Sat, 28 Nov 2009 19:24:15 +0000 (21:24 +0200)] 
Remove old wpa_supplicant/hostapd doxygen files

14 years agoAdd new, shared doxygen documentation for hostapd and wpa_supplicant
Jouni Malinen [Sat, 28 Nov 2009 19:19:48 +0000 (21:19 +0200)] 
Add new, shared doxygen documentation for hostapd and wpa_supplicant

14 years agoFix doxygen file level comments
Jouni Malinen [Sat, 28 Nov 2009 19:14:36 +0000 (21:14 +0200)] 
Fix doxygen file level comments

14 years agoFix init2() driver_ops to get the correct global driver context
Jouni Malinen [Sat, 28 Nov 2009 16:11:16 +0000 (18:11 +0200)] 
Fix init2() driver_ops to get the correct global driver context

Need to provide the private driver context, not the wpa_supplicant
global context, in init2() call.

14 years agoWPS: Update couple of missed Primary Device Type uses
Jouni Malinen [Thu, 26 Nov 2009 09:54:37 +0000 (11:54 +0200)] 
WPS: Update couple of missed Primary Device Type uses

14 years agoWPS: Clean up Primary Device Type handling
Jouni Malinen [Thu, 26 Nov 2009 09:39:29 +0000 (11:39 +0200)] 
WPS: Clean up Primary Device Type handling

Use shared functions for converting Primary Device Type between binary
and string formats. In addition, use array of eight octets instead of a
specific structure with multiple fields to reduce code complexity.

14 years agoResolve some sparse warnings
Jouni Malinen [Tue, 24 Nov 2009 22:57:00 +0000 (00:57 +0200)] 
Resolve some sparse warnings

Mainly, this is including header files to get definitions for functions
which is good to verify that the parameters match. None of these are
issues that would have shown as incorrect behavior of the program.

14 years agoFix internal crypto build with some configurations
Jouni Malinen [Tue, 24 Nov 2009 08:24:54 +0000 (10:24 +0200)] 
Fix internal crypto build with some configurations

crypto_internal.c requires both aes-internal-enc.o and
aes-internal-dec.o, so make sure they get included in the build when
using internal crypto.

14 years agoRemove obsoleted get_scan_results() driver_ops
Jouni Malinen [Mon, 23 Nov 2009 19:33:37 +0000 (21:33 +0200)] 
Remove obsoleted get_scan_results() driver_ops

This has now been replaced with get_scan_results2() in every
in-tree driver.

14 years agoRemove deprecated scan and set_probe_req_ie driver_ops
Jouni Malinen [Mon, 23 Nov 2009 19:13:46 +0000 (21:13 +0200)] 
Remove deprecated scan and set_probe_req_ie driver_ops

These have been replaced with scan2 driver_ops that provides all
parameters in a single call.

14 years agoRemove deprecated driver_ops handlers
Jouni Malinen [Mon, 23 Nov 2009 18:22:38 +0000 (20:22 +0200)] 
Remove deprecated driver_ops handlers

This gets rid of previously deprecated driver_ops handlers set_wpa,
set_drop_unencrypted, set_auth_alg, set_mode. The same functionality
can be achieved by using the init/deinit/associate handlers.

14 years agoFix CONFIG_AP=y build after driver_ops set_key merge
Jouni Malinen [Mon, 23 Nov 2009 15:15:45 +0000 (17:15 +0200)] 
Fix CONFIG_AP=y build after driver_ops set_key merge

14 years agoAdd cleared deprecation notes on iwl,ndiswrapper,madwifi(sta) wrappers
Jouni Malinen [Mon, 23 Nov 2009 15:08:59 +0000 (17:08 +0200)] 
Add cleared deprecation notes on iwl,ndiswrapper,madwifi(sta) wrappers

These driver wrappers should not be used anymore; WEXT should be used
instead. However, there may still be users stuck on older kernel versions
that may require driver specific wrappers, so the source code still
remains in the repository.

14 years agoMerge set_key and hapd_set_key driver_ops into a single function
Jouni Malinen [Mon, 23 Nov 2009 14:58:32 +0000 (16:58 +0200)] 
Merge set_key and hapd_set_key driver_ops into a single function

14 years agoMove HOSTAPD_MTU definition into driver_hostap.c
Jouni Malinen [Mon, 23 Nov 2009 14:21:07 +0000 (16:21 +0200)] 
Move HOSTAPD_MTU definition into driver_hostap.c

This moves the MTU definition into driver_hostap.c since it was really
meant to be specific to this driver. Since this was the last remaining
definition in hostapd_defs.h, remove that header file as unnecessary.

14 years agoRemove unneeded set-MTU operation from drivers
Jouni Malinen [Mon, 23 Nov 2009 14:17:41 +0000 (16:17 +0200)] 
Remove unneeded set-MTU operation from drivers

This code was copied from driver_hostap.c where it is used with the
special wlan#ap interface. It was not supposed to be used to change
the MTU for a normal data interface.

14 years agoMove definitions away from hostapd_defs.h
Jouni Malinen [Mon, 23 Nov 2009 14:14:39 +0000 (16:14 +0200)] 
Move definitions away from hostapd_defs.h

Clean up definitions to reduce need to include header files from the
hostapd directory into files under the src subdirectories.

14 years agonl80211: Build some client functionality unconditionally
Jouni Malinen [Mon, 23 Nov 2009 13:40:29 +0000 (15:40 +0200)] 
nl80211: Build some client functionality unconditionally

Even though this makes the hostapd version a bit larger, the code will
be easier to maintain with the reduced number of complex ifdef blacks.

14 years agonl80211: Remove last remaining WEXT code
Jouni Malinen [Mon, 23 Nov 2009 13:30:05 +0000 (15:30 +0200)] 
nl80211: Remove last remaining WEXT code

Clean up driver_nl80211.c by gettign rid of the last remaining WEXT use.
This requires that a recent mac80211 version is used to get full protection
in station mode via the authorized flag (IEEE 802.1X PAE).

14 years agoMerge set_beacon driver_ops into a single one
Jouni Malinen [Mon, 23 Nov 2009 13:26:05 +0000 (15:26 +0200)] 
Merge set_beacon driver_ops into a single one

Clean up driver interface by merging hostapd and wpa_supplicant
specific set_beacon driver_ops into a single one. In addition,
merge set_beacon_int into to the same operation.

14 years agoPreparations for v0.7.0 release hostap_0_7_0
Jouni Malinen [Sat, 21 Nov 2009 20:49:02 +0000 (22:49 +0200)] 
Preparations for v0.7.0 release

14 years agoWPS: Do not try to send byebye advertisements if socket is not valid
Jouni Malinen [Sat, 21 Nov 2009 20:00:33 +0000 (22:00 +0200)] 
WPS: Do not try to send byebye advertisements if socket is not valid

If initialization fails, we could potentially try to sendto() on -1
socket which would fail. No point in doing that, so just return early
from the function.

14 years agoFix Visual Studio projects to match with source code file changes
Jouni Malinen [Sat, 21 Nov 2009 19:56:31 +0000 (21:56 +0200)] 
Fix Visual Studio projects to match with source code file changes

14 years agoUpdate ChangeLog files for 0.7.0 release
Jouni Malinen [Sat, 21 Nov 2009 19:53:51 +0000 (21:53 +0200)] 
Update ChangeLog files for 0.7.0 release

14 years agoFix a typo in a comment
Jouni Malinen [Sat, 21 Nov 2009 19:13:19 +0000 (21:13 +0200)] 
Fix a typo in a comment

14 years agowpa_gui: Only move to WPS tab if inactive/disconnect and AP ready
Jouni Malinen [Sat, 21 Nov 2009 18:52:55 +0000 (20:52 +0200)] 
wpa_gui: Only move to WPS tab if inactive/disconnect and AP ready

This removes many of the cases where moving to the WPS tab can be
undesired. It is really only useful if we are not currently connected
and there is an AP available that would likely be able to provide us
network connectivity with use of WPS (active PBC more or selected
registrar set).

14 years agoOpenSSL: Remove unneeded MinGW CryptoAPI compat code
Jouni Malinen [Sat, 21 Nov 2009 18:33:41 +0000 (20:33 +0200)] 
OpenSSL: Remove unneeded MinGW CryptoAPI compat code

The current MinGW/w32api versions seem to provide all the needed CryptoAPI
functions, so the code for loading these dynamically from the DLL can be
removed.

14 years agoGnuTLS: Fix compilation with newer GnuTLS versions
Jouni Malinen [Sat, 21 Nov 2009 18:23:58 +0000 (20:23 +0200)] 
GnuTLS: Fix compilation with newer GnuTLS versions

Avoid duplicate defination of TLS_RANDOM_SIZE and TLS_MASTER_SIZE.

14 years agoFix strict aliasing issue with the internal SHA-1 implementation
Jouni Malinen [Sat, 21 Nov 2009 18:17:24 +0000 (20:17 +0200)] 
Fix strict aliasing issue with the internal SHA-1 implementation

Need to define the workspace buffer properly to allow compiler to handle
strict aliasing between the incoming unsigned char[64] buffer as an u32
array. The previous version built with strict aliasing enabled can
result in SHA-1 producing incorrect results and consequently, with
4-way handshake failing.

This is based on a report and patch from Dan Williams <dcbw@redhat.com>
but with a different type (the union) used as a fix to avoid needing
extra type casting.

Discovered as part of the investigation of:

https://bugzilla.redhat.com/show_bug.cgi?id=494262#c32

if sha1 is built with gcc without turning off strict aliasing, it will
fail to correctly generate the hashes and will fail its own testcases as
well.

Signed-off-by: Dan Williams <dcbw@redhat.com>
14 years agoWPS ER: Deinitialize protocol instance with STA after completion
Jouni Malinen [Sat, 21 Nov 2009 16:39:12 +0000 (18:39 +0200)] 
WPS ER: Deinitialize protocol instance with STA after completion

In addition, remove the WPS ER Enrollee entry 10 seconds after
successful completion of the protocol run.

14 years agowpa_gui: Add peers menu option for learning AP configuration (ER)
Jouni Malinen [Sat, 21 Nov 2009 16:26:21 +0000 (18:26 +0200)] 
wpa_gui: Add peers menu option for learning AP configuration (ER)

14 years agoWPS ER: Use random event identifier in event URL
Jouni Malinen [Sat, 21 Nov 2009 16:15:37 +0000 (18:15 +0200)] 
WPS ER: Use random event identifier in event URL

This avoids some issues in cases where the ER has been started and
stopped multiple times on the same address and an AP may have stored
multiple event notification addresses for the same ER. The random
identifier allows the ER to filter out unexpected messages from further
processing.

14 years agoWPS: Cleanup subscription URL list handling
Jouni Malinen [Sat, 21 Nov 2009 16:06:02 +0000 (18:06 +0200)] 
WPS: Cleanup subscription URL list handling

Do not give the allocated memory to the subscription code since it was
not using it as-is anyway. This makes it easier to understand who owns
the allocation an is responsible of freeing it. This may potentially
fix some memory leaks on error paths.

14 years agoWPS ER: Move SSDP functionality into a separate file
Jouni Malinen [Sat, 21 Nov 2009 15:26:23 +0000 (17:26 +0200)] 
WPS ER: Move SSDP functionality into a separate file

14 years agowpa_gui: Add peer dialog option for WPS PBC
Jouni Malinen [Sat, 21 Nov 2009 15:06:41 +0000 (17:06 +0200)] 
wpa_gui: Add peer dialog option for WPS PBC

Use advertised configuration methods to determine whether WPS PBC
and/or PIN methods should be allowed.

14 years agowpa_gui: Add WPS config methods and device password ID into peer data
Jouni Malinen [Sat, 21 Nov 2009 14:47:48 +0000 (16:47 +0200)] 
wpa_gui: Add WPS config methods and device password ID into peer data

14 years agowpa_gui: Move peer tooltip into Properties dialog
Jouni Malinen [Sat, 21 Nov 2009 13:01:23 +0000 (15:01 +0200)] 
wpa_gui: Move peer tooltip into Properties dialog

Clean up the peer dialog information to be more user friendly. Only
show the device type in the tooltip and move the verbose details into
a separate area in a new Properties dialog. The new dialog will also
show some of the standard fields with titles to make them easier to
read.

14 years agoWPS ER: Add more AP information into the ctrl_interface message
Jouni Malinen [Sat, 21 Nov 2009 11:34:23 +0000 (13:34 +0200)] 
WPS ER: Add more AP information into the ctrl_interface message

This allow wpa_gui to show AP BSSID, WPS State (configured/unconfigured),
and primary device type.

14 years agoWPS ER: Fetch AP's M1 to learn device type and WPS state
Jouni Malinen [Sat, 21 Nov 2009 11:13:02 +0000 (13:13 +0200)] 
WPS ER: Fetch AP's M1 to learn device type and WPS state

14 years agoWPS ER: Use (addr,UUID) as the key for AP entries
Jouni Malinen [Sat, 21 Nov 2009 10:51:40 +0000 (12:51 +0200)] 
WPS ER: Use (addr,UUID) as the key for AP entries

This allows multiple WPS AP instances to be supported per IP address.

14 years agoWPS ER: Stop AP unlink loop on match
Jouni Malinen [Sat, 21 Nov 2009 10:18:24 +0000 (12:18 +0200)] 
WPS ER: Stop AP unlink loop on match

There is no need to continue through the list after this, since the
same AP entry can only be listed once.

14 years agoWPS ER: Move STA entry unlinking into a separate function
Jouni Malinen [Sat, 21 Nov 2009 10:18:03 +0000 (12:18 +0200)] 
WPS ER: Move STA entry unlinking into a separate function

14 years agoWPS ER: Fix AP entry freeing on timeout
Jouni Malinen [Sat, 21 Nov 2009 10:12:49 +0000 (12:12 +0200)] 
WPS ER: Fix AP entry freeing on timeout

Must unlink the entry first before trying to remove it to avoid
leaving behind pointers to freed memory.

14 years agoWPS ER: Refresh ER data on WPS_ER_START when already started
Jouni Malinen [Fri, 20 Nov 2009 19:57:30 +0000 (21:57 +0200)] 
WPS ER: Refresh ER data on WPS_ER_START when already started

This sends out the AP and Enrollee notifications for all tracked
devices and generates a new SSDP search to find more APs.

14 years agoWPS ER: Fix Enrollee entry freeing on timeout
Jouni Malinen [Fri, 20 Nov 2009 19:56:39 +0000 (21:56 +0200)] 
WPS ER: Fix Enrollee entry freeing on timeout

Must unlink the entry first before trying to remove it to avoid
leaving behind pointers to freed memory.

14 years agoAdd 'none' driver as an option for wpa_supplicant
Jouni Malinen [Fri, 20 Nov 2009 19:12:49 +0000 (21:12 +0200)] 
Add 'none' driver as an option for wpa_supplicant

This can be used, e.g., with WPS ER when no network interface is
actually used for IEEE 802.1X or wireless operations.

14 years agowpa_gui: Avoid using freed item in enter_pin()
Jouni Malinen [Thu, 19 Nov 2009 19:12:06 +0000 (21:12 +0200)] 
wpa_gui: Avoid using freed item in enter_pin()

The Enrollee entry may be deleted while the PIN query dialog is open.
To avoid crashing on using freed entry, copy the needed data into
local variables before and use the local data after the PIN dialog
has been closed.

14 years agowpa_gui: Add AP and laptop icons for peer dialog
Jouni Malinen [Thu, 19 Nov 2009 19:03:25 +0000 (21:03 +0200)] 
wpa_gui: Add AP and laptop icons for peer dialog

The peer entries are now using different icons based on their type. As
a starting point, a separate AP and laptop icons are used. More icons may
be added in the future to mark different device types (e.g., based on
primary device type information from WPS).

14 years agowpa_gui: Add support for multiple icon files
Mike Shepherd [Thu, 19 Nov 2009 18:49:51 +0000 (20:49 +0200)] 
wpa_gui: Add support for multiple icon files

14 years agowpa_gui: Add preliminary WPS ER support into the peers dialog
Jouni Malinen [Thu, 19 Nov 2009 18:28:41 +0000 (20:28 +0200)] 
wpa_gui: Add preliminary WPS ER support into the peers dialog

14 years agoWPS: Fix MAC Address inside Credential be that of Enrollee's
Jouni Malinen [Wed, 18 Nov 2009 22:31:57 +0000 (00:31 +0200)] 
WPS: Fix MAC Address inside Credential be that of Enrollee's

The WPS 1.0h specification is quite unclear on what exactly should be
used as the MAC Address value in the Credential and AP Settings. It
looks like this should after all be the MAC Address of the Enrollee,
so change Registrar implementation to use that address instead of the
AP BSSID.

In addition, add validation code to the Enrollee implementation to
check the MAC Address value inside Credential (and also inside AP Settings)
to make sure it matches with the Enrollee's own address. However, since
there are deployed implementations that do not follow this interpretation
of the spec, only show the mismatch in debug information to avoid breaking
interoperability with existing devices.

14 years agonl80211/SME: Use reassociation when roaming within the ESS
Jouni Malinen [Tue, 17 Nov 2009 17:25:05 +0000 (19:25 +0200)] 
nl80211/SME: Use reassociation when roaming within the ESS

14 years agowpa_supplicant: Fix ctrl_interface group permissions to allow read/execute
Anders Aspegren Søndergaard [Mon, 16 Nov 2009 14:43:25 +0000 (16:43 +0200)] 
wpa_supplicant: Fix ctrl_interface group permissions to allow read/execute

When using umask 0077, the control interface directory was left without
group read/execute permissions even if the configuration file explicitly
asked for the group to be allowed to access the control interface. Fix
this by adding read/execute permissions for group if a specific group is
defined in the configuration. [Bug 199]

14 years agohostapd: Fix endian bugs in STA HT capability handling
Felix Fietkau [Mon, 16 Nov 2009 11:58:08 +0000 (13:58 +0200)] 
hostapd: Fix endian bugs in STA HT capability handling

14 years agohostapd: Fix BSS channel checks in 40 MHz scan
Felix Fietkau [Mon, 16 Nov 2009 11:52:12 +0000 (13:52 +0200)] 
hostapd: Fix BSS channel checks in 40 MHz scan

14 years agodbus: Allow only root to receive signals
Witold Sowa [Mon, 16 Nov 2009 11:25:51 +0000 (13:25 +0200)] 
dbus: Allow only root to receive signals

Change the dbus policy file to only allow root applications to receive
signals from wpa_supplicant. This keeps WPS Credentials data secret
from non-root listeners.

14 years agowpa_gui-qt4: Fix build with Session Manager disabled in Qt4
Christian Rüb [Mon, 16 Nov 2009 11:20:53 +0000 (13:20 +0200)] 
wpa_gui-qt4: Fix build with Session Manager disabled in Qt4

When trying to build wpa_gui (Qt4 version) from openembedded it fails
because Qt4 is compiled without session manager and thus wpa_gui fails
to compile.

I attached a patch, that enables compiling without Session Manager (via
preprocessor) if it is not compiled into Qt4; otherwise, it behaves as
it does right now.

I checked to build on my host (Debian unstable, Session Manager
enabled) and openembedded (Session Manager disabled).

14 years agoWPS ER: Clear WPS protocol run on PutMessage failure
Jouni Malinen [Sun, 15 Nov 2009 20:56:39 +0000 (22:56 +0200)] 
WPS ER: Clear WPS protocol run on PutMessage failure

14 years agoWPS ER: Deinit WPS protocol data when freeing AP entry
Jouni Malinen [Sun, 15 Nov 2009 20:53:10 +0000 (22:53 +0200)] 
WPS ER: Deinit WPS protocol data when freeing AP entry

14 years agoWPS ER: Deinit ER before WPS registrar/context
Jouni Malinen [Sun, 15 Nov 2009 20:52:17 +0000 (22:52 +0200)] 
WPS ER: Deinit ER before WPS registrar/context

ER code may still touch WPS registrar/context during deinit, so better
do that before freeing the other WPS components.