]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
15 years agoRenamed PMKSA cache functions to avoid duplicate symbols with supplicant
Jouni Malinen [Wed, 14 Jan 2009 20:01:26 +0000 (22:01 +0200)] 
Renamed PMKSA cache functions to avoid duplicate symbols with supplicant

This allows hostapd/pmksa_cache.c and src/rsn_supp/pmksa_cache.c to be
linked into the same program.

15 years agoMoved rsn_pmkid() into shared code to avoid duplication
Jouni Malinen [Wed, 14 Jan 2009 19:31:47 +0000 (21:31 +0200)] 
Moved rsn_pmkid() into shared code to avoid duplication

15 years agoeapol_test: Allow generated RADIUS attributes to be replaced
Jouni Malinen [Tue, 13 Jan 2009 19:33:09 +0000 (21:33 +0200)] 
eapol_test: Allow generated RADIUS attributes to be replaced

Do not add the automatically generated RADIUS attributes NAS-IP-Address,
Calling-Station-Id, Framed-MTU, NAS-Port-Type, and Connect-Info if -N
option is used with the same attribute type. This allows these
attributes to be replaced without causing duplicate entries.

15 years agodriver_wext: Add IW_ENCODE_TEMP into SIOCSIWENCODE{,EXT} calls
Dan Williams [Tue, 13 Jan 2009 18:42:15 +0000 (20:42 +0200)] 
driver_wext: Add IW_ENCODE_TEMP into SIOCSIWENCODE{,EXT} calls

This is needed for airo driver to work correctly and no other driver
seems to care, so the change is safe to make. This has been in number of
distro releases for a long time and no issues have been reported.

15 years agoRemoved wpa_sm dereference from pmksa_cache_list()
Jouni Malinen [Tue, 13 Jan 2009 18:22:42 +0000 (20:22 +0200)] 
Removed wpa_sm dereference from pmksa_cache_list()

15 years agoMoved proto == RSN validation from pmksa_cache.c into the caller
Jouni Malinen [Tue, 13 Jan 2009 18:15:06 +0000 (20:15 +0200)] 
Moved proto == RSN validation from pmksa_cache.c into the caller

15 years agoMoved RADIUS Class attribute helpers into RADIUS module
Jouni Malinen [Tue, 13 Jan 2009 18:01:29 +0000 (20:01 +0200)] 
Moved RADIUS Class attribute helpers into RADIUS module

15 years agoPartial fix for test_wpa build
Jouni Malinen [Tue, 13 Jan 2009 17:37:22 +0000 (19:37 +0200)] 
Partial fix for test_wpa build

15 years agoRenamed shadowed variable
Jouni Malinen [Tue, 13 Jan 2009 17:31:51 +0000 (19:31 +0200)] 
Renamed shadowed variable

15 years agoRemoved dead code
Jouni Malinen [Tue, 13 Jan 2009 17:15:42 +0000 (19:15 +0200)] 
Removed dead code

15 years agoFixed copy-paste error in retry configuration (incorrect ioctl used)
Jouni Malinen [Tue, 13 Jan 2009 17:14:38 +0000 (19:14 +0200)] 
Fixed copy-paste error in retry configuration (incorrect ioctl used)

15 years agoRemoved unused set_regulatory_domain driver function
Jouni Malinen [Tue, 13 Jan 2009 17:12:25 +0000 (19:12 +0200)] 
Removed unused set_regulatory_domain driver function

15 years agoFixed build without CONFIG_IEEE80211N
Jouni Malinen [Mon, 12 Jan 2009 20:08:53 +0000 (22:08 +0200)] 
Fixed build without CONFIG_IEEE80211N

15 years agoFixed a typo in printf -> wpa_printf changes
Jouni Malinen [Mon, 12 Jan 2009 20:06:51 +0000 (22:06 +0200)] 
Fixed a typo in printf -> wpa_printf changes

15 years agoFixed build with wpa_printf disabled
Jouni Malinen [Mon, 12 Jan 2009 20:06:06 +0000 (22:06 +0200)] 
Fixed build with wpa_printf disabled

15 years agoRemoved hw_features.o from build if hostapd MLME is not used
Jouni Malinen [Mon, 12 Jan 2009 20:03:58 +0000 (22:03 +0200)] 
Removed hw_features.o from build if hostapd MLME is not used

15 years agoAdded build option for disabling control interface (CONFIG_NO_CTRL_IFACE)
Jouni Malinen [Mon, 12 Jan 2009 19:44:57 +0000 (21:44 +0200)] 
Added build option for disabling control interface (CONFIG_NO_CTRL_IFACE)

15 years agoAdded build option for removing VLAN support (CONFIG_NO_VLAN)
Jouni Malinen [Mon, 12 Jan 2009 19:39:19 +0000 (21:39 +0200)] 
Added build option for removing VLAN support (CONFIG_NO_VLAN)

15 years agoFixed CONFIG_NO_HOSTAPD_LOGGER build
Jouni Malinen [Mon, 12 Jan 2009 19:21:31 +0000 (21:21 +0200)] 
Fixed CONFIG_NO_HOSTAPD_LOGGER build

15 years agoComment out RADIUS configuration parsing if RADIUS client support is
Jouni Malinen [Mon, 12 Jan 2009 14:49:39 +0000 (16:49 +0200)] 
Comment out RADIUS configuration parsing if RADIUS client support is
disabled in the build.

15 years agoReplaced printf() calls with wpa_printf()
Jouni Malinen [Mon, 12 Jan 2009 14:49:04 +0000 (16:49 +0200)] 
Replaced printf() calls with wpa_printf()

15 years agoRemove TLS-PRF from hostapd build if it is not needed
Jouni Malinen [Mon, 12 Jan 2009 13:20:12 +0000 (15:20 +0200)] 
Remove TLS-PRF from hostapd build if it is not needed

15 years agoAdded CONFIG_NO_AES_EXTRAS for hostapd
Jouni Malinen [Mon, 12 Jan 2009 13:15:35 +0000 (15:15 +0200)] 
Added CONFIG_NO_AES_EXTRAS for hostapd

This allows unneeded AES routines to be removed from the build to reduce
binary size.

15 years agoFixed couple of build failures with minimal configuration
Jouni Malinen [Mon, 12 Jan 2009 13:08:33 +0000 (15:08 +0200)] 
Fixed couple of build failures with minimal configuration

15 years agowpa_gui-qt4: silence compile warning + wpsTab enable/disable
Kel Modderman [Sun, 11 Jan 2009 19:44:07 +0000 (21:44 +0200)] 
wpa_gui-qt4: silence compile warning + wpsTab enable/disable

Fix compile warning by renaming gridLayout to wpsGridLayout in
wpagui.ui, it seems to be used internally.

/usr/bin/uic-qt4 eventhistory.ui -o .ui/ui_eventhistory.h
/usr/bin/uic-qt4 scanresults.ui -o .ui/ui_scanresults.h
/usr/bin/uic-qt4 wpagui.ui -o .ui/ui_wpagui.h
Warning: name gridLayout is already used
/usr/bin/uic-qt4 userdatarequest.ui -o .ui/ui_userdatarequest.h
/usr/bin/uic-qt4 networkconfig.ui -o .ui/ui_networkconfig.h

Also disable WPS tab if the running supplicant doesn't support that,
just as the WPS action menu is.

Signed-off-by: Kel Modderman <kel@otaku42.de>
15 years agoSilenced some sparse warnings
Jouni Malinen [Sun, 11 Jan 2009 08:42:07 +0000 (10:42 +0200)] 
Silenced some sparse warnings

15 years agoFixed build with 802.11n disabled
Jouni Malinen [Sat, 10 Jan 2009 19:36:41 +0000 (21:36 +0200)] 
Fixed build with 802.11n disabled

15 years agoInclude SIM simular for EAP-SIM in Windows build
Jouni Malinen [Fri, 9 Jan 2009 19:45:31 +0000 (21:45 +0200)] 
Include SIM simular for EAP-SIM in Windows build

USIM simulator for EAP-AKA was already included, but the SIM version was
forgotten from the build script.

15 years agoCleaned up main() by splitting it into number of helper functions
Jouni Malinen [Fri, 9 Jan 2009 16:04:57 +0000 (18:04 +0200)] 
Cleaned up main() by splitting it into number of helper functions

15 years agoMoved driver callback functions from hostapd.c to a new file
Jouni Malinen [Fri, 9 Jan 2009 15:27:03 +0000 (17:27 +0200)] 
Moved driver callback functions from hostapd.c to a new file

15 years agoMoved TKIP countermeasures from hostapd.c to its own file
Jouni Malinen [Fri, 9 Jan 2009 15:12:33 +0000 (17:12 +0200)] 
Moved TKIP countermeasures from hostapd.c to its own file

15 years agoCleanup: move related functions closer to eachother
Jouni Malinen [Fri, 9 Jan 2009 15:06:54 +0000 (17:06 +0200)] 
Cleanup: move related functions closer to eachother

15 years agoFixed TKIP countermeasueres for drivers that do not use hostapd MLME
Jouni Malinen [Fri, 9 Jan 2009 15:00:29 +0000 (17:00 +0200)] 
Fixed TKIP countermeasueres for drivers that do not use hostapd MLME

The Michael MIC reporting functions have to be included even when using
driver MLME.

15 years agoAdd wrapper functions for IEEE 802.11 driver calls into driver.h
Jouni Malinen [Fri, 9 Jan 2009 14:55:59 +0000 (16:55 +0200)] 
Add wrapper functions for IEEE 802.11 driver calls into driver.h

These functions allow the driver_*.c wrappers not to include
ieee802_11.h.

15 years agoUse a wrapper function for ieee802_1x_receive() to avoid ieee802_1x.h
Jouni Malinen [Fri, 9 Jan 2009 14:33:59 +0000 (16:33 +0200)] 
Use a wrapper function for ieee802_1x_receive() to avoid ieee802_1x.h

Driver wrappers should not need to include ieee802_1x.h, so use a
wrapper function declared in driver.h.

15 years agoMoved disassociation processing away from driver_*.c
Jouni Malinen [Fri, 9 Jan 2009 14:27:30 +0000 (16:27 +0200)] 
Moved disassociation processing away from driver_*.c

15 years agoMoved association check from driver_*.c into ieee802_1x_receive()
Jouni Malinen [Fri, 9 Jan 2009 14:17:20 +0000 (16:17 +0200)] 
Moved association check from driver_*.c into ieee802_1x_receive()

15 years agoMoved WPA setup etc. association processing away from driver_*.c
Jouni Malinen [Fri, 9 Jan 2009 14:13:07 +0000 (16:13 +0200)] 
Moved WPA setup etc. association processing away from driver_*.c

This is all details that should not need to be handled in driver_*.c.

15 years agoMove RX-from-unknown-STA processing away from driver_*.c
Jouni Malinen [Fri, 9 Jan 2009 13:44:45 +0000 (15:44 +0200)] 
Move RX-from-unknown-STA processing away from driver_*.c

This cleans up the driver wrapper interface by getting rid of sta_info.h
dependency in all drivers that use MLME implementation in hostapd
(driver_hostap.c and driver_nl80211.c).

15 years agoMoved TX status processing for STA entries away from driver_*.c
Jouni Malinen [Fri, 9 Jan 2009 13:33:36 +0000 (15:33 +0200)] 
Moved TX status processing for STA entries away from driver_*.c

Driver wrappers should not need to know about this level of core hostapd
details.

15 years agoShare the same radiotap helper implementation
Jouni Malinen [Fri, 9 Jan 2009 13:22:19 +0000 (15:22 +0200)] 
Share the same radiotap helper implementation

15 years agoMoved rfc1042_header into driver_*.c that use it
Jouni Malinen [Fri, 9 Jan 2009 13:06:48 +0000 (15:06 +0200)] 
Moved rfc1042_header into driver_*.c that use it

No need to share such a small buffer and make hostapd.[ch] more complex
with it.

15 years agoFixed a typo in a comment
Jouni Malinen [Fri, 9 Jan 2009 13:01:50 +0000 (15:01 +0200)] 
Fixed a typo in a comment

15 years agoFixed eapol_test build after RADIUS API changes (const)
Jouni Malinen [Fri, 9 Jan 2009 11:27:56 +0000 (13:27 +0200)] 
Fixed eapol_test build after RADIUS API changes (const)

15 years agoMove generic definitions away from hostapd.h
Jouni Malinen [Thu, 8 Jan 2009 18:14:05 +0000 (20:14 +0200)] 
Move generic definitions away from hostapd.h

This is an initial step in trying to make hostapd.h not needed to be
included in so many files.

15 years agoSplit hostapd/driver.h into two files
Jouni Malinen [Thu, 8 Jan 2009 17:48:52 +0000 (19:48 +0200)] 
Split hostapd/driver.h into two files

driver.h contains the definitions needed in driver wrapper
implementations (driver_*.c) and driver_i.h contains the definitions
that are used in core hostapd code to interact with the driver wrappers.

15 years agoAdded support for removing RADIUS accounting and RADIUS in general
Jouni Malinen [Thu, 8 Jan 2009 17:15:25 +0000 (19:15 +0200)] 
Added support for removing RADIUS accounting and RADIUS in general

CONFIG_NO_ACCOUNTING=y and CONFIG_NO_RADIUS=y build options can now be
used to remove RADIUS support from the hostapd build.

15 years agoRemove MLME code from build if none of the enabled drivers need it
Jouni Malinen [Thu, 8 Jan 2009 16:40:14 +0000 (18:40 +0200)] 
Remove MLME code from build if none of the enabled drivers need it

15 years agoReplaced printf() with wpa_printf()
Jouni Malinen [Thu, 8 Jan 2009 14:57:04 +0000 (16:57 +0200)] 
Replaced printf() with wpa_printf()

15 years agoAdded CONFIG_NO_STDOUT_DEBUG for hostapd
Jouni Malinen [Thu, 8 Jan 2009 14:47:04 +0000 (16:47 +0200)] 
Added CONFIG_NO_STDOUT_DEBUG for hostapd

This is similar to one in wpa_supplicant and can be used to reduce the
binary size by removing debugging messages.

15 years agoMark shared secret const in RADIUS client routines
Jouni Malinen [Thu, 8 Jan 2009 14:41:47 +0000 (16:41 +0200)] 
Mark shared secret const in RADIUS client routines

15 years agoMoved documentation from developer.txt into source code files
Jouni Malinen [Thu, 8 Jan 2009 14:33:00 +0000 (16:33 +0200)] 
Moved documentation from developer.txt into source code files

Use Doxygen comments for functions to replace the old text file that was
not up-to-date anymore.

15 years agoCreate PNG icon before running qmake to avoid resource warning hostap_0_6_7
Jouni Malinen [Tue, 6 Jan 2009 18:22:52 +0000 (20:22 +0200)] 
Create PNG icon before running qmake to avoid resource warning

15 years agoPreparations for 0.6.7 release
Jouni Malinen [Tue, 6 Jan 2009 18:11:15 +0000 (20:11 +0200)] 
Preparations for 0.6.7 release

15 years agowpa_cli: Embed command usage into the wpa_cli_commands array
Eygene Ryabinkin [Mon, 5 Jan 2009 19:32:48 +0000 (21:32 +0200)] 
wpa_cli: Embed command usage into the wpa_cli_commands array

It is better to have command description around the command definitions:
the chances for omitting usage, forgotting to change/delete them, etc.
are smaller than for the separate usage statement. [Bug 290]

Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
15 years agowpa_cli: Improve sensitive command detection for readline history
Eygene Ryabinkin [Mon, 5 Jan 2009 19:05:05 +0000 (21:05 +0200)] 
wpa_cli: Improve sensitive command detection for readline history

I had added flags to the every command description: just now the only
meaningful flag tells that this command has sensitive arguments and it
shouldn't be written to the disk.  I rewrote the logics for the search
for the sensitive commands: special procedure is now loops over all
commands and tries to see if command has sensitive data. [Bug 289]

Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru>
15 years agowpa_cli: fix readline history cleaning
Eygene Ryabinkin [Mon, 5 Jan 2009 18:48:45 +0000 (20:48 +0200)] 
wpa_cli: fix readline history cleaning

First of all, the history had not been written to the disk, since almost
all commands were cleaned up due to the error in the history cleaning:
the return value of the last os_strncasecmp() call was not compared to
zero, but was rather used as is.  So the condition was almost always
true and most commands were removed from the history.

The second problem was that the evaluation of the potentially sensitive
commands was started at the entry number 1, instead of very first entry.

15 years agoFix wpa_supplicant build for uClinux
Ihar Hrachyshka [Mon, 5 Jan 2009 18:32:04 +0000 (20:32 +0200)] 
Fix wpa_supplicant build for uClinux

The code contains a bogus #ifdef for uClinux building. [Bug 286]

15 years agoFixed a typo in usage help
Jouni Malinen [Sun, 4 Jan 2009 20:13:34 +0000 (22:13 +0200)] 
Fixed a typo in usage help

15 years agoeapol_test: Add a universal way of adding extra RADIUS attributes
Tomasz Wolniewicz [Sun, 4 Jan 2009 20:10:56 +0000 (22:10 +0200)] 
eapol_test: Add a universal way of adding extra RADIUS attributes

This change replaces -I and -i options (Chargeable-User-Identity) with a
new -N option that can add any RADIUS attribute into the Access-Request
messages without having to modify eapol_test for each new attribute.

15 years agoSilenced number of Doxygen warnings
Jouni Malinen [Sun, 4 Jan 2009 13:07:54 +0000 (15:07 +0200)] 
Silenced number of Doxygen warnings

15 years agoRemove wpa_gui from doxygen documentations
Jouni Malinen [Sun, 4 Jan 2009 12:58:47 +0000 (14:58 +0200)] 
Remove wpa_gui from doxygen documentations

The *.ui.h were causing number of warnings and they do not need to be
included in documentation.

15 years agoFixed IMAGE_PATH for doxygen run in root directory
Jouni Malinen [Sun, 4 Jan 2009 12:44:33 +0000 (14:44 +0200)] 
Fixed IMAGE_PATH for doxygen run in root directory

15 years agoRemove temporary Qt build directories from Doxygen run
Jouni Malinen [Sun, 4 Jan 2009 12:28:20 +0000 (14:28 +0200)] 
Remove temporary Qt build directories from Doxygen run

15 years agoRemove unwanted wpa_supplicant -> struct wpa_supplicant links
Jouni Malinen [Sun, 4 Jan 2009 12:25:58 +0000 (14:25 +0200)] 
Remove unwanted wpa_supplicant -> struct wpa_supplicant links

Replace " wpa_supplicant" with " %wpa_supplicant" except for
"struct wpa_supplicant". This makes it easier to write Doxygen comments
since there is no need to add the ugly '%' prefix to each instance of
wpa_supplicant text showing up.

15 years agoResolve a Doxygen warning
Jouni Malinen [Sun, 4 Jan 2009 12:06:13 +0000 (14:06 +0200)] 
Resolve a Doxygen warning

15 years agoFixed Doxygen function links
Jouni Malinen [Sun, 4 Jan 2009 11:54:07 +0000 (13:54 +0200)] 
Fixed Doxygen function links

No need to use explicit @link command, but must include () after
function name (and in couple of cases, use the current function name).

15 years agoCompleted Doxygen documentation for functions declared in wps/wps.h
Jouni Malinen [Sun, 4 Jan 2009 11:43:05 +0000 (13:43 +0200)] 
Completed Doxygen documentation for functions declared in wps/wps.h

15 years agoUse NULL, not 0, when comparing a pointer
Jouni Malinen [Sat, 3 Jan 2009 19:01:20 +0000 (21:01 +0200)] 
Use NULL, not 0, when comparing a pointer

15 years agoAdded endianness annotation for sparse
Jouni Malinen [Sat, 3 Jan 2009 19:00:38 +0000 (21:00 +0200)] 
Added endianness annotation for sparse

15 years agoFixed sparse warnings about integer vs. pointer use
Jouni Malinen [Sat, 3 Jan 2009 18:46:32 +0000 (20:46 +0200)] 
Fixed sparse warnings about integer vs. pointer use

The configuration parsing functions seemed to have worked fine before,
but these were real bugs even if they did not show up in practice.
hostapd_ip_diff() was broken for IPv6 addresses (overwrote address and
always returned 1.

15 years agoRemoved sparse destinations since "CC=cgcc make" works fine
Jouni Malinen [Sat, 3 Jan 2009 18:39:52 +0000 (20:39 +0200)] 
Removed sparse destinations since "CC=cgcc make" works fine

15 years agoMark functions static if not used elsewhere and use proper prototypes
Jouni Malinen [Sat, 3 Jan 2009 18:38:42 +0000 (20:38 +0200)] 
Mark functions static if not used elsewhere and use proper prototypes

15 years agoInclude the header file to validate function prototype.
Jouni Malinen [Sat, 3 Jan 2009 18:21:12 +0000 (20:21 +0200)] 
Include the header file to validate function prototype.

15 years agoMoved WPS Registrar initialization from EAP peer to wps_supplicant.c
Jouni Malinen [Sat, 3 Jan 2009 18:18:35 +0000 (20:18 +0200)] 
Moved WPS Registrar initialization from EAP peer to wps_supplicant.c

This matches the style used in hostapd, i.e., Registrar is initialized
only once and callbacks are now processed in wps_supplicant.c.

15 years agoRemoved registrar pointer from wps_config and wps_data
Jouni Malinen [Sat, 3 Jan 2009 18:09:35 +0000 (20:09 +0200)] 
Removed registrar pointer from wps_config and wps_data

wps_context::registrar can be used as the only location for this
pointer.

15 years agoRemoved duplicated authenticator yes/no from wps_config and wps_data
Jouni Malinen [Sat, 3 Jan 2009 17:57:22 +0000 (19:57 +0200)] 
Removed duplicated authenticator yes/no from wps_config and wps_data

wps_context::ap is available for this purpose and there is no need to
change between AP and not AP between protocol runs.

15 years agoRemoved unused WPS_PENDING processing result
Jouni Malinen [Sat, 3 Jan 2009 17:52:20 +0000 (19:52 +0200)] 
Removed unused WPS_PENDING processing result

15 years agoAdded Doxygen documentation for WPS code
Jouni Malinen [Sat, 3 Jan 2009 17:50:49 +0000 (19:50 +0200)] 
Added Doxygen documentation for WPS code

15 years agoCreate all doxygen docs from root directory to get proper path names
Jouni Malinen [Sat, 3 Jan 2009 07:59:12 +0000 (09:59 +0200)] 
Create all doxygen docs from root directory to get proper path names

This updated all doxygen runs to use the same style that was used for
wpa_supplicant full documents. The full vs. fast configurations are now
otherwise identical apart from fast not generating dot files or
latex/pdf version of the documentation.

15 years agoFixed number of doxygen warnings
Jouni Malinen [Fri, 2 Jan 2009 20:28:04 +0000 (22:28 +0200)] 
Fixed number of doxygen warnings

15 years agoAdded more src subdirectories into doxygen docs
Jouni Malinen [Fri, 2 Jan 2009 20:27:17 +0000 (22:27 +0200)] 
Added more src subdirectories into doxygen docs

15 years agoUpdated doxygen configuration files to work with new doxygen
Jouni Malinen [Fri, 2 Jan 2009 19:57:51 +0000 (21:57 +0200)] 
Updated doxygen configuration files to work with new doxygen

The doxygen run is not exactly warning free yet, but this gets a step
closer to being able to produce something useful again.

15 years agoMove addr_un definitions to avoid using out-of-scope buffer
Jouni Malinen [Fri, 2 Jan 2009 19:53:21 +0000 (21:53 +0200)] 
Move addr_un definitions to avoid using out-of-scope buffer

15 years agoInitialize wpa_ie_len to 0 if WPA IE is not set on all paths
Jouni Malinen [Fri, 2 Jan 2009 19:50:22 +0000 (21:50 +0200)] 
Initialize wpa_ie_len to 0 if WPA IE is not set on all paths

The new WPS code was not setting this in error case.

15 years agoInclude ieee802_11_defs.h explicitly instead of assuming it gets included
Jouni Malinen [Fri, 2 Jan 2009 19:14:21 +0000 (21:14 +0200)] 
Include ieee802_11_defs.h explicitly instead of assuming it gets included

Some build configurations failed to compile because this file did not
get included.

15 years agoReplaced string comparison operator '==' with '=' to work with dash
Jouni Malinen [Fri, 2 Jan 2009 19:06:36 +0000 (21:06 +0200)] 
Replaced string comparison operator '==' with '=' to work with dash

15 years agoWPS: Generate UUID based on MAC address, if not set
Jouni Malinen [Thu, 1 Jan 2009 20:56:52 +0000 (22:56 +0200)] 
WPS: Generate UUID based on MAC address, if not set

Generate a SHA1 hash -based UUID from the local MAC address if the UUID
was not configured. This makes it easier to prepare for WPS since there
is no need to generate an UUID.

15 years agoWPS: Cleanup UUID and MAC address configuration
Jouni Malinen [Thu, 1 Jan 2009 20:56:02 +0000 (22:56 +0200)] 
WPS: Cleanup UUID and MAC address configuration

No need to configure these separately for each Enrollee in wps_config
since wps_context is now used both for Registrar and Enrollee.

15 years agoInclude pending MFP defines in nl80211_copy.h
Jouni Malinen [Wed, 31 Dec 2008 16:10:14 +0000 (18:10 +0200)] 
Include pending MFP defines in nl80211_copy.h

This can be used to get rid of the extra cpp define since we have our
local copy of wireless.h and nl80211.h.

15 years agoSync nl80211.h copy with the current kernel version
Jouni Malinen [Wed, 31 Dec 2008 16:00:07 +0000 (18:00 +0200)] 
Sync nl80211.h copy with the current kernel version

15 years agoRenamed nl80211 HT channel parameters to match with kernel
Jouni Malinen [Wed, 31 Dec 2008 15:59:13 +0000 (17:59 +0200)] 
Renamed nl80211 HT channel parameters to match with kernel

15 years agoMFP: Require MFP is it is enabled and AP scan shows support for it
Jouni Malinen [Wed, 31 Dec 2008 15:53:31 +0000 (17:53 +0200)] 
MFP: Require MFP is it is enabled and AP scan shows support for it

When using ap_scan=1, we know before the association request that MFP
will be supported, so we can as well require it. This helps mac80211 in
configuring whether to enable MFP.

15 years agoMFP: Fix SA Query Action Category
Jouni Malinen [Wed, 31 Dec 2008 15:52:05 +0000 (17:52 +0200)] 
MFP: Fix SA Query Action Category

IEEE 802.11w/D7.0 incorrectly changed the Action Category from 8 to 7
when renaming Ping to SA Query. Category 7 is reserved for HT (IEEE
802.11n) and IEEE 802.11w will need to continue to use the category 8
that was allocated for it.

15 years agoFixed SA Query Request length
Jouni Malinen [Wed, 31 Dec 2008 15:50:14 +0000 (17:50 +0200)] 
Fixed SA Query Request length

Do not send extra 24 octets of random data in the end.

15 years agoClear BIP keys, too, when removing broadcast keys with MFP enabled
Jouni Malinen [Wed, 31 Dec 2008 15:49:43 +0000 (17:49 +0200)] 
Clear BIP keys, too, when removing broadcast keys with MFP enabled

15 years agoMFP: Remove mac80211 workaround of IGTK in monitor netdev
Jouni Malinen [Wed, 31 Dec 2008 15:48:13 +0000 (17:48 +0200)] 
MFP: Remove mac80211 workaround of IGTK in monitor netdev

mac80211 can now figure out which key to use for injected frames (in
most cases), so we can remove the workaround for configuring IGTK on the
monitor interface that is used for injecting frames.

15 years agoAdded ctrl_interface command for sending a SA Query request
Jouni Malinen [Tue, 30 Dec 2008 16:04:29 +0000 (18:04 +0200)] 
Added ctrl_interface command for sending a SA Query request

This can be useful for testing IEEE 802.11w functionality, so provide
means for manual request to send a SA Query request.

15 years agoFix TLS message processing if Flags field is not present
Jouni Malinen [Tue, 30 Dec 2008 10:28:02 +0000 (12:28 +0200)] 
Fix TLS message processing if Flags field is not present

Previous version assumed that the Flags field is always present and
ended up reading one octet past the end of the buffer should the Flags
field be missing. The message length would also be set incorrectly
(size_t)-1 or (size_t)-5, but it looks like reassembly code ended up
failing in malloc before actually using this huge length to read data.

RFC 2716 uses a somewhat unclear description on what exactly is included
in the TLS Ack message ("no data" can refer to either Data field in 4.1
or TLS Data field in 4.2), so in theory, it would be possible for some
implementations to not include Flags field. However,
EAP-{PEAP,TTLS,FAST} need the Flags field in Ack messages, too, for
indicating the used version.

The EAP peer code will now accept the no-Flags case as an Ack message if
EAP workarounds are enabled (which is the default behavior). If
workarounds are disabled, the message without Flags field will be
rejected.

[Bug 292]

15 years agoDisconnect the STA if EAP timeout is reached
Jouni Malinen [Mon, 29 Dec 2008 17:16:48 +0000 (19:16 +0200)] 
Disconnect the STA if EAP timeout is reached

There is not really much else the Authenticator can do if it does not
receive valid EAP response from the Supplicant/EAP peer. EAP-Failure
would need to be sent before trying to start again with
EAP-Request/Identity, but that is not allowed before the EAP peer
actually replies. Anyway, forcing a new association is likely to clean
up peer state, too, so it can help fixing some issues that could have
caused the peer not to be able to reply in the first place.