libeap.git
14 years agoRemove obsolete comment about wpa_supplicant header files
Jouni Malinen [Sun, 6 Dec 2009 09:30:39 +0000 (11:30 +0200)]
Remove obsolete comment about wpa_supplicant header files

14 years agoMove EAP method registration away from src/eap_{peer,server}
Jouni Malinen [Sun, 6 Dec 2009 09:28:41 +0000 (11:28 +0200)]
Move EAP method registration away from src/eap_{peer,server}

This makes it easier to make a library out of EAP methods without
losing possiblity of binary size optimization by linker dropping
unreferenced code.

14 years agoRemove unnecessary defines
Jouni Malinen [Sat, 5 Dec 2009 20:51:08 +0000 (22:51 +0200)]
Remove unnecessary defines

The following defines are not really needed in most places, so
remove them to clean up source code and build scripts:
EAP_TLS_FUNCS
EAP_TLS_OPENSSL
EAP_TLS_GNUTLS
CONFIG_TLS_INTERNAL

14 years agoResolve compiler warnings in the test programs
Jouni Malinen [Sat, 5 Dec 2009 20:32:45 +0000 (22:32 +0200)]
Resolve compiler warnings in the test programs

14 years agoAdd forgotten files into libcrypto.a
Jouni Malinen [Sat, 5 Dec 2009 20:25:50 +0000 (22:25 +0200)]
Add forgotten files into libcrypto.a

14 years agoMove more tests from wpa_supplicant/tests into tests
Jouni Malinen [Sat, 5 Dec 2009 20:25:32 +0000 (22:25 +0200)]
Move more tests from wpa_supplicant/tests into tests

14 years agoUse simpler make rules for test programs
Jouni Malinen [Sat, 5 Dec 2009 20:14:55 +0000 (22:14 +0200)]
Use simpler make rules for test programs

14 years agoGet rid of some compiler warnings
Jouni Malinen [Sat, 5 Dec 2009 20:13:33 +0000 (22:13 +0200)]
Get rid of some compiler warnings

14 years agoMove MD4 test from wpa_supplicant/tests into tests
Jouni Malinen [Sat, 5 Dec 2009 20:11:50 +0000 (22:11 +0200)]
Move MD4 test from wpa_supplicant/tests into tests

14 years agoAdd rules for building src/crypto as a library
Jouni Malinen [Sat, 5 Dec 2009 20:03:46 +0000 (22:03 +0200)]
Add rules for building src/crypto as a library

For now, this is hardcoded to support only the internal crypto
implementation.

14 years agoInclude needed header files to avoid compiler warnings
Jouni Malinen [Sat, 5 Dec 2009 19:40:44 +0000 (21:40 +0200)]
Include needed header files to avoid compiler warnings

14 years agoAdd build rules for building a library from src/utils files
Jouni Malinen [Sat, 5 Dec 2009 19:39:41 +0000 (21:39 +0200)]
Add build rules for building a library from src/utils files

This is an initial step on providing an alternative build system that
uses libraries from src subdirectories.

14 years agoRemove Milenage test from hostapd/Makefile
Jouni Malinen [Sat, 5 Dec 2009 19:27:19 +0000 (21:27 +0200)]
Remove Milenage test from hostapd/Makefile

14 years agoMove Milenage test code into the new tests directory
Jouni Malinen [Sat, 5 Dec 2009 19:14:08 +0000 (21:14 +0200)]
Move Milenage test code into the new tests directory

14 years agoMove milenage.[ch] into src/crypto
Jouni Malinen [Sat, 5 Dec 2009 19:00:52 +0000 (21:00 +0200)]
Move milenage.[ch] into src/crypto

14 years agoUse auto-generated dependency files and clean them
Jouni Malinen [Sat, 5 Dec 2009 18:44:12 +0000 (20:44 +0200)]
Use auto-generated dependency files and clean them

14 years agoMove base64 test code into a new tests subdirectory
Jouni Malinen [Sat, 5 Dec 2009 18:43:07 +0000 (20:43 +0200)]
Move base64 test code into a new tests subdirectory

14 years agoIBSS RSN: Add more verbose debug info for key setup
Jouni Malinen [Fri, 4 Dec 2009 20:55:28 +0000 (22:55 +0200)]
IBSS RSN: Add more verbose debug info for key setup

14 years agonl80211: Add extra IEs into IBSS join request
Jouni Malinen [Fri, 4 Dec 2009 20:20:59 +0000 (22:20 +0200)]
nl80211: Add extra IEs into IBSS join request

This allows RSN IE to be added into Beacon and Probe Response frames
when using RSN IBSS.

14 years agoIBSS RSN: Wait for connection event and do not use auth timeout
Jouni Malinen [Fri, 4 Dec 2009 20:09:06 +0000 (22:09 +0200)]
IBSS RSN: Wait for connection event and do not use auth timeout

Wait for connection (IBSS join completed) event before marking state
completed. In addition, do not use the station mode authentication
timeout since that can trigger full disconnection from IBSS when
there is a timeout with just one of the peers.

14 years agoSME: Do not process disassoc frame unless SME is used
Jouni Malinen [Fri, 4 Dec 2009 19:44:13 +0000 (21:44 +0200)]
SME: Do not process disassoc frame unless SME is used

This avoids an infinite loop with driver_test.c when using IBSS.

14 years agoFix build with both CONFIG_AP=y and CONFIG_IBSS_RSN=y enabled
Jouni Malinen [Fri, 4 Dec 2009 19:34:34 +0000 (21:34 +0200)]
Fix build with both CONFIG_AP=y and CONFIG_IBSS_RSN=y enabled

14 years agoFix hostapd build with WPS disabled
Jouni Malinen [Thu, 3 Dec 2009 22:29:10 +0000 (00:29 +0200)]
Fix hostapd build with WPS disabled

14 years agonl80211: Add support for IBSS networks
Jouni Malinen [Thu, 3 Dec 2009 22:15:32 +0000 (00:15 +0200)]
nl80211: Add support for IBSS networks

14 years agodbus: switch dbus APIs initialization order
Witold Sowa [Thu, 3 Dec 2009 19:17:49 +0000 (21:17 +0200)]
dbus: switch dbus APIs initialization order

Initialize the new DBus API before the old one, so new applications
which can use both, the old and the new API will be notified first
that new API is available.

14 years agodbus: Enable -u option when only the new DBus API is included
Witold Sowa [Thu, 3 Dec 2009 19:12:42 +0000 (21:12 +0200)]
dbus: Enable -u option when only the new DBus API is included

14 years agoFix wpa_priv compilation after driver_ops changes
Jouni Malinen [Thu, 3 Dec 2009 19:03:58 +0000 (21:03 +0200)]
Fix wpa_priv compilation after driver_ops changes

14 years agoFix wpa_priv memory leak in wpa_priv_get_scan_results2()
Dmitry Shmidt [Thu, 3 Dec 2009 18:59:27 +0000 (20:59 +0200)]
Fix wpa_priv memory leak in wpa_priv_get_scan_results2()

I suspect that new scan results format demands more complex free
procedure.

14 years agoAdd more Doxygen documentation for RADIUS server implementation
Jouni Malinen [Wed, 2 Dec 2009 19:29:32 +0000 (21:29 +0200)]
Add more Doxygen documentation for RADIUS server implementation

14 years agonl80211: Clear BSS state mismatches with deauth as a workaround
Jouni Malinen [Wed, 2 Dec 2009 15:54:57 +0000 (17:54 +0200)]
nl80211: Clear BSS state mismatches with deauth as a workaround

There seem to be some cases in which wpa_supplicant and
cfg80211/mac80211 seem to have different understanding on
authentication/association state. Since cfg80211/mac80211 is very strict
on when it accepts new authentication/association/scan commands, try our
best at clearing such state mismatches by explicitly deauthenticating
from BSSes with which the driver claims we are associated with if we do
not have local information about such association.

14 years agoSME: Deauthenticate to clear state after disassociation events
Jouni Malinen [Wed, 2 Dec 2009 15:26:28 +0000 (17:26 +0200)]
SME: Deauthenticate to clear state after disassociation events

cfg80211/mac80211 can get into somewhat confused state if the AP only
disassociates us and leaves us in authenticated state. For now, force
the state to be cleared with deauthentication to avoid confusing errors
if we try to associate with the AP again. This gets rid of 30 second
delay (scan timeout) in cases where only a disassociation frame is
received from the AP.

14 years agonl80211: Add debug prints for BSS status in scan results
Jouni Malinen [Wed, 2 Dec 2009 14:45:31 +0000 (16:45 +0200)]
nl80211: Add debug prints for BSS status in scan results

Print what the kernel believes the current BSS status (authenticated
or associated) is in scan results. In addition, check whether this
matches with the state that wpa_supplicant believes the driver to be
in.

This does not change the actual behavior, but will provide information
that will help in debugging potential issues where cfg80211/mac80211
seems to get into a different state from wpa_supplicant. In addition,
this provides an easy location for a workaround that could be added to
clear cfg80211/mac80211 state for unknown BSSes.

14 years agoFix driver initialization not to crash if driver does not use init2()
Jouni Malinen [Wed, 2 Dec 2009 14:43:09 +0000 (16:43 +0200)]
Fix driver initialization not to crash if driver does not use init2()

8a5ab9f5e56cd2f5781c2d92f41495e60d544780 fixed global driver context
for init2(), but it also broke driver initialization with driver
wrappers that do not use init2().. Fix this by setting wpa_s->global
before it gets dereferenced.

14 years agoMove internal EAPOL authenticator defines into their own file
Jouni Malinen [Sun, 29 Nov 2009 21:16:04 +0000 (23:16 +0200)]
Move internal EAPOL authenticator defines into their own file

This is an initial step in further cleaning up the EAPOL authenticator
use to avoid requiring direct accesses to the internal data structures.
For now, number of external files are still including the internal
definitions from eapol_auth_sm_i.h, but eventually, these direct
references should be removed.

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).