wpasupplicant
15 years ago802.11n: scan for overlapping BSSes before starting 20/40 MHz channel
Jouni Malinen [Wed, 4 Feb 2009 19:19:54 +0000 (21:19 +0200)]
802.11n: scan for overlapping BSSes before starting 20/40 MHz channel

Try to match PRI/SEC channel with neighboring 20/40 MHz BSSes per
IEEE 802.11n/D7.0 11.14.3.2. This is not yet complete implementation,
but at least some parts of the 40 MHz coex are improved.

40 MHz operation maybe rejected (i.e., fall back to using 20 MHz) or
pri/sec channels may be switched if needed.

15 years agoVerify that driver supports configured HT capabilities
Jouni Malinen [Wed, 4 Feb 2009 10:49:23 +0000 (12:49 +0200)]
Verify that driver supports configured HT capabilities

15 years agoUPnP: Minor coding style cleanup
Jouni Malinen [Tue, 3 Feb 2009 11:25:49 +0000 (13:25 +0200)]
UPnP: Minor coding style cleanup

15 years agoBetter support in RoboSwitch driver
Jouke Witteveen [Tue, 3 Feb 2009 11:13:54 +0000 (13:13 +0200)]
Better support in RoboSwitch driver

The RoboSwitch driver of wpa_supplicant had one shortcoming: not
supporting the 5365 series. I believe the patch attached fixes this
problem.

Furthermore it contains a small readability rewrite. It basically is an
explicit loop-rollout so that the wpa_driver_roboswitch_leave style
matches that of wpa_driver_roboswitch_join.

15 years agowpa_gui-qt4: Disable WPS tab in the same way as the menu item
Jouni Malinen [Sun, 1 Feb 2009 20:02:32 +0000 (22:02 +0200)]
wpa_gui-qt4: Disable WPS tab in the same way as the menu item

Disable by default and only enable if the running wpa_supplicant has
support for WPS. This is based on a patch from Kel Modderman
<kel@otaku42.de>.

15 years agoRemove orphaned wpa_cli control socket on EADDRINUSE
Jouni Malinen [Sat, 31 Jan 2009 20:22:09 +0000 (22:22 +0200)]
Remove orphaned wpa_cli control socket on EADDRINUSE

If the bind() on /tmp/wpa_ctrl_<pid>_<in-proc-counter> fails with
EADDRINUSE, there is an existing socket file with the name we are trying
to create. Since getpid() is unique, there cannot be another process
using that socket and we can just unlink the file and try again. This
can speed up client connection if wpa_cli is killed without allowing it
to clean up the socket file. [Bug 288]

15 years agoAdd comments on the new Broadcom driver not using driver_broadcom.c
Jouni Malinen [Fri, 30 Jan 2009 19:34:40 +0000 (21:34 +0200)]
Add comments on the new Broadcom driver not using driver_broadcom.c

The newer Broadcom driver ("hybrid Linux driver") supports Linux
wireless extensions and does not need (or even work) with the old
driver wrapper.

15 years agoRemove unused variable from struct hostapd_config
Sebastien Decugis [Fri, 30 Jan 2009 19:21:46 +0000 (21:21 +0200)]
Remove unused variable from struct hostapd_config

I think that the "radius" pointer in the structure hostapd_config is
never used; when the configuration is parsed the related data is stored
in hostapd_bss_config's "radius" var.

15 years agoDo not use country_code default (was: US)
Jouni Malinen [Fri, 30 Jan 2009 10:43:19 +0000 (12:43 +0200)]
Do not use country_code default (was: US)

If country_code is not included in hostapd.conf, refuse to enable IEEE
802.11d and do not try to set the regulatory domain in kernel.

15 years agoAdded notes about WPS UPnP support and external Registrars
Jouni Malinen [Thu, 29 Jan 2009 17:19:30 +0000 (19:19 +0200)]
Added notes about WPS UPnP support and external Registrars

15 years agoWPS: Add support for external Registrars using UPnP transport
Jouni Malinen [Thu, 29 Jan 2009 16:47:02 +0000 (18:47 +0200)]
WPS: Add support for external Registrars using UPnP transport

This adds mostly feature complete external Registrar support with the
main missing part being proper support for multiple external Registrars
working at the same time and processing of concurrent registrations when
using an external Registrar.

This code is based on Sony/Saice implementation
(https://www.saice-wpsnfc.bz/) and the changes made by Ted Merrill
(Atheros) to make it more suitable for hostapd design and embedded
systems. Some of the UPnP code is based on Intel's libupnp. Copyrights
and licensing are explained in src/wps/wps_upnp.c in more detail.

15 years agoFixed WPS Authenticator attribute processing after M2D
Jouni Malinen [Wed, 28 Jan 2009 09:59:29 +0000 (11:59 +0200)]
Fixed WPS Authenticator attribute processing after M2D

We must not replace M1 with M2D as the last_msg since we need M1 to
validate a possible M2 after M2D. Since M2D and ACK/NACK replies do not
include Authenticator attribute, we can just ignore M2D as far as
updating last_msg is concerned.

15 years agoUse Data::Data only with Host AP driver; mac80211 can use Data::Nullfunc
Jouni Malinen [Tue, 27 Jan 2009 14:36:27 +0000 (16:36 +0200)]
Use Data::Data only with Host AP driver; mac80211 can use Data::Nullfunc

The inactivity poll was originally supposed to use Data::Nullfunc, but
due to Prism2/2.5/3 firmware issues, this was changed to an empty
Data::Data frame. mac80211 does not have such an issue, so change the
inactivity poll frame to be Data::Nullfunc by default and use the
Data::Data workaround only with Host AP driver.

15 years agodriver_nl80211: Fixed inactivity poll status processing
Jouni Malinen [Tue, 27 Jan 2009 14:34:48 +0000 (16:34 +0200)]
driver_nl80211: Fixed inactivity poll status processing

Previous version was discarding TX status for FromDS data frames, but
those are the exact ones that we need to check for inactivity poll to
work, i.e., they are TX status reports for injected data frames.

In addition, remove the debug printing of TX status for data frame since
that could fill up the debug output if kernel-side filtering cannot be
used with monitor interface.

15 years agodriver_nl80211: use Linux socket filter to improve performance
Johannes Berg [Tue, 27 Jan 2009 10:28:05 +0000 (12:28 +0200)]
driver_nl80211: use Linux socket filter to improve performance

TX status information for all transmitted data frames is not going to
be sent to hostapd anymore, so the CPU load with high traffic load is
going to be significantly reduced.

15 years agoDo not forget wpa_passphrase so that WPS can use it
Jouni Malinen [Sat, 24 Jan 2009 10:51:28 +0000 (12:51 +0200)]
Do not forget wpa_passphrase so that WPS can use it

Send ASCII passphrase instead of derived PSK if the configuration uses
the passphrase.

15 years agoWPS: Add a workaround for incorrect passphrase encoding in Network Key
Jouni Malinen [Sat, 24 Jan 2009 10:50:00 +0000 (12:50 +0200)]
WPS: Add a workaround for incorrect passphrase encoding in Network Key

External Registrar in Vista may include NULL termination in the Network
Key when encoding an ASCII passphrase for WPA/WPA2-PSK. As a workaround,
remove this extra octet if present.

15 years agoWPS: Lock AP Setup on multiple AP PIN validation failures
Jouni Malinen [Fri, 23 Jan 2009 19:57:43 +0000 (21:57 +0200)]
WPS: Lock AP Setup on multiple AP PIN validation failures

If a Registrar tries to configure the AP, but fails to validate the
device password (AP PIN), lock the AP setup after four failures. This
protects the AP PIN against brute force guessing attacks.

15 years agoAdded ap_settings option for overriding WPS AP Settings in M7
Jouni Malinen [Fri, 23 Jan 2009 19:08:55 +0000 (21:08 +0200)]
Added ap_settings option for overriding WPS AP Settings in M7

This optional configuration parameter can be used to override AP
Settings attributes in M7 similarly to extra_cred option for Credential
attribute(s) in M8.

15 years agoFree extra_cred when freeing configuration
Jouni Malinen [Fri, 23 Jan 2009 18:51:26 +0000 (20:51 +0200)]
Free extra_cred when freeing configuration

15 years agoAdd an EAPOL payload length workaround for a WPS implementation
Jouni Malinen [Fri, 23 Jan 2009 16:01:03 +0000 (18:01 +0200)]
Add an EAPOL payload length workaround for a WPS implementation

Buffalo WHR-G125 Ver.1.47 seems to send EAP-WPS packets with too short
EAPOL header length field (14 octets regardless of EAP frame length).
This is fixed in firmware Ver.1.49, but the broken version is included
in many deployed APs. As a workaround, fix the EAPOL header based on the
correct length in the EAP packet. This workaround can be disabled with
eap_workaround=0 option in the network configuration.

15 years agoAllow WPS APs for PIN enrollment even without Selected Registrar
Jouni Malinen [Fri, 23 Jan 2009 11:10:58 +0000 (13:10 +0200)]
Allow WPS APs for PIN enrollment even without Selected Registrar

Some WPS APs do not set Selected Registrar attribute to 1 properly when
using an external Registrar. Allow such an AP to be selected for PIN
registration after couple of scan runs that do not find APs marked with
Selected Registrar = 1. This allows wpa_supplicant to iterate through
all APs that advertise WPS support without delaying connection with
implementations that set Selected Registrar = 1 properly.

15 years agoAllow WPS device strings to be unconfigured
Jouni Malinen [Thu, 22 Jan 2009 19:26:14 +0000 (21:26 +0200)]
Allow WPS device strings to be unconfigured

Previous version was causing a NULL pointer dereference if a required
string was not set in configuration. It is better to make these
optional.

15 years agoWPS: Pad DH Public Key and Shared Key to 192 octets
Jouni Malinen [Thu, 22 Jan 2009 17:32:58 +0000 (19:32 +0200)]
WPS: Pad DH Public Key and Shared Key to 192 octets

WPS spec is not very specific on the presentation used for the DH
values. The Public Key attribute is described to be 192 octets long, so
that could be interpreted to imply that other places use fixed length
presentation for the DH keys. Change the DH derivation to use fixed
length bufferd by zero padding them from beginning if needed. This can
resolve infrequent (about 1/256 chance for both Public Key and Shared
Key being shorter) interop issues.

15 years agoUse WPS state Not Configured instead of Configured in Enrollee
Masashi Honma [Thu, 22 Jan 2009 13:18:03 +0000 (15:18 +0200)]
Use WPS state Not Configured instead of Configured in Enrollee

This is needed to allow external Registrar (at least the implementation
in Windows Vista) to configure the Enrollee.

With this patch and my previous patch (for wps.c) , I could pass "Wi-Fi
WPS Test Plan Version 1.0 [5.1.4. Add to AP using PIN Config method and
PASS PHRASE through wired external registrar]".

15 years agoWPS: Check Device Password ID attribute only if present in AP search
Masashi Honma [Thu, 22 Jan 2009 13:12:18 +0000 (15:12 +0200)]
WPS: Check Device Password ID attribute only if present in AP search

I can't pass the "Wi-Fi WPS Test Plan Version 1.0 [5.1.4. Add to AP
using PIN Config method and PASS PHRASE through wired external
registrar]". The wpa_supplicant-0.6.7 can't recoginize the testbed
AP(BCM94704AGRRev-E.2.4) as WPS PIN AP. Because after PIN entered, the
AP sends Selected Registrar attribute=0 and not send Device Password ID
attribute.

The proposed change as-is removed validation of Selected Registrar
attribute completely. However, that part is not included in this commit
since it can cause problems for environments with multiple WPS-enabled
APs. Another workaround for this will be considered in wpa_supplicant
scanning process (e.g., start trying to use WPS with APs that do not set
Selected Registrar to TRUE after couple of scan runs that do not find
any APs with Selected Registrar TRUE).

15 years agoDocumented interface for external WPS credential processing
Jouni Malinen [Wed, 21 Jan 2009 14:42:11 +0000 (16:42 +0200)]
Documented interface for external WPS credential processing

15 years agoFixed WPS with open and shared WEP networks
Jouni Malinen [Wed, 21 Jan 2009 12:18:14 +0000 (14:18 +0200)]
Fixed WPS with open and shared WEP networks

Do not initialize EAPOL state machine for the STA when hostapd is
configured to use WPS with open or shared WEP networks. This allows the
STA to use EAPOL-Start to indicate it wants to start WPS in such a case
and hostapd does not end up running through EAPOL authentication timeout
and disconnecting the STA if WPS is not used.

There was already code for starting EAPOL state machines based on
received EAPOL packets, but that was not working properly since
portEnabled was not set to TRUE on that code path. This is now fixed,
too.

15 years agoWPS: Added option to disable AP auto-config on first registration
Jouni Malinen [Wed, 21 Jan 2009 11:48:10 +0000 (13:48 +0200)]
WPS: Added option to disable AP auto-config on first registration

This operation can now be moved into an external program by configuring
hostapd with wps_cred_processing=1 and skip_cred_build=1. A new
ctrl_iface message (WPS-REG-SUCCESS <Enrollee MAC addr> <UUID-E>) will
be used to notify external programs of each successful registration and
that can be used as a tricker to move from unconfigured to configured
state.

15 years agoAdded wps_cred_processing configuration option for hostapd
Jouni Malinen [Wed, 21 Jan 2009 09:54:12 +0000 (11:54 +0200)]
Added wps_cred_processing configuration option for hostapd

This behaves like the one in wpa_supplicant, i.e., hostapd can be
configured not to process new credentials (AP settings) internally and
instead pass the WPS attributes for an external program to process over
ctrl_iface.

15 years agoEnable wpa_msg() for hostapd
Jouni Malinen [Wed, 21 Jan 2009 09:45:56 +0000 (11:45 +0200)]
Enable wpa_msg() for hostapd

Use wpa_msg() like wpa_supplicant in order to avoid having to use direct
hostapd_ctrl_iface_send() calls.

15 years agoChanged Credential MAC Address to be BSSID in AP/Registrar
Jouni Malinen [Tue, 20 Jan 2009 19:28:31 +0000 (21:28 +0200)]
Changed Credential MAC Address to be BSSID in AP/Registrar

WPS spec is not very clear on which MAC address is used here, but BSSID
makes more sense than Enrollee MAC address.

15 years agoChanged the version to 0.7.0 since development branch is now 0.7.x
Jouni Malinen [Tue, 20 Jan 2009 19:16:29 +0000 (21:16 +0200)]
Changed the version to 0.7.0 since development branch is now 0.7.x

15 years agoIncreased wpa_cli/hostapd_cli ping interval and made it configurable
Jouni Malinen [Tue, 20 Jan 2009 19:12:00 +0000 (21:12 +0200)]
Increased wpa_cli/hostapd_cli ping interval and made it configurable

The default interval is now 5 seconds (used to be 1 second for
interactive mode and 2 seconds for wpa_cli -a). The interval can be
changed with -G<seconds> command line option.

15 years agoImplement set_probe_req_ie() for nl80211 drivers
Jouni Malinen [Tue, 20 Jan 2009 12:06:02 +0000 (14:06 +0200)]
Implement set_probe_req_ie() for nl80211 drivers

15 years agoSync nl80211_copy.h with wireless-testing.git linux/nl80211.h
Jouni Malinen [Tue, 20 Jan 2009 11:56:58 +0000 (13:56 +0200)]
Sync nl80211_copy.h with wireless-testing.git linux/nl80211.h

15 years agoFixed MFP Association Comeback mechanism to use Timeout Interval IE
Jouni Malinen [Mon, 19 Jan 2009 16:42:10 +0000 (18:42 +0200)]
Fixed MFP Association Comeback mechanism to use Timeout Interval IE

The separate Association Comeback Time IE was removed from IEEE 802.11w
and the Timeout Interval IE (from IEEE 802.11r) is used instead. The
editing on this is still somewhat incomplete in IEEE 802.11w/D7.0, but
still, the use of Timeout Interval IE is the expected mechanism.

15 years agoWPS: Add configurable option for processing credentials externally
Jouni Malinen [Sun, 18 Jan 2009 10:27:12 +0000 (12:27 +0200)]
WPS: Add configurable option for processing credentials externally

The wps_cred_process option can be used to configure wpa_supplicant to
send received Credential attributes for external processing over
ctrl_iface and dbus. This allows external programs to update their
configuration when WPS is used to provision new networks.

15 years agoWPS: Provide the unparsed Credential attribute to cred_cb()
Jouni Malinen [Sat, 17 Jan 2009 20:17:12 +0000 (22:17 +0200)]
WPS: Provide the unparsed Credential attribute to cred_cb()

This makes it easier to pass the credential data to external programs
(e.g., Network Manager) for processing. The actual use of this data is
not yet included in hostapd/wpa_supplicant.

15 years agoWPS: Ignore credentials for unsupported authentication type
Jouni Malinen [Sat, 17 Jan 2009 19:45:51 +0000 (21:45 +0200)]
WPS: Ignore credentials for unsupported authentication type

The current implementation does not support WPA/WPA2-Enterprise
credentials. Ignore any credential that is using unsupported
authentication type to avoid potential issues with partially configured
network blocks.

15 years agoFixed WPS credential conversion to wpa_supplicant configuration
Jouni Malinen [Sat, 17 Jan 2009 19:37:15 +0000 (21:37 +0200)]
Fixed WPS credential conversion to wpa_supplicant configuration

Must not set pairwise_cipher/group_cipher for non-WPA/WPA2 networks
since the configuration parser is going to reject such values. In
addition, should not limit group_cipher to just TKIP or TKIP|CCMP just
in case the AP is using WEP as the group cipher. Default group_cipher
value can be used for all cases.

15 years agoChanged the Network Index value to 1 since that is the default value
Jouni Malinen [Sat, 17 Jan 2009 19:14:13 +0000 (21:14 +0200)]
Changed the Network Index value to 1 since that is the default value

15 years agoIBSS RSN: Added key configuration
Jouni Malinen [Sat, 17 Jan 2009 16:14:41 +0000 (18:14 +0200)]
IBSS RSN: Added key configuration

15 years agoAdded a separate ctx pointer for wpa_msg() calls in WPA supp
Jouni Malinen [Sat, 17 Jan 2009 15:54:40 +0000 (17:54 +0200)]
Added a separate ctx pointer for wpa_msg() calls in WPA supp

This is needed to allow IBSS RSN to use per-peer context while
maintaining support for wpa_msg() calls to get *wpa_s as the pointer.

15 years agoIBSS RSN: Set the PSK based on network configuration
Jouni Malinen [Sat, 17 Jan 2009 15:47:25 +0000 (17:47 +0200)]
IBSS RSN: Set the PSK based on network configuration

15 years agoIBSS RSN: Set more hardcoded RSN IEs for now
Jouni Malinen [Sat, 17 Jan 2009 15:39:57 +0000 (17:39 +0200)]
IBSS RSN: Set more hardcoded RSN IEs for now

This allows 4-way handshakes to be completed successfully.

15 years agoIBSS RSN: Added couple of required WPA supplicant callback functions
Jouni Malinen [Sat, 17 Jan 2009 15:31:21 +0000 (17:31 +0200)]
IBSS RSN: Added couple of required WPA supplicant callback functions

15 years agoProcess received EAPOL frames in IBSS RSN code if in IBSS mode
Jouni Malinen [Sat, 17 Jan 2009 15:25:11 +0000 (17:25 +0200)]
Process received EAPOL frames in IBSS RSN code if in IBSS mode

15 years agoAdded support for IBSS scanning into driver_test
Jouni Malinen [Sat, 17 Jan 2009 14:44:05 +0000 (16:44 +0200)]
Added support for IBSS scanning into driver_test

15 years agoDisable per-BSSID authentication for RSN IBSS
Jouni Malinen [Sat, 17 Jan 2009 14:41:47 +0000 (16:41 +0200)]
Disable per-BSSID authentication for RSN IBSS

RSN IBSS uses authentication per-STA and that is initialized separately,
so there is no need to enable the per-BSS like authentication that is
used with APs.

15 years agoSave and restore wpa_gui state when session manager restarts the app
Jouni Malinen [Sat, 17 Jan 2009 11:45:05 +0000 (13:45 +0200)]
Save and restore wpa_gui state when session manager restarts the app

This makes wpa_gui remember whether it was only in the tray when the
session was terminated and starts only in the tray if session manager
restarts it automatically.

15 years agoAdded an option to add (or override) Credential attribute(s) in M8
Jouni Malinen [Fri, 16 Jan 2009 20:50:41 +0000 (22:50 +0200)]
Added an option to add (or override) Credential attribute(s) in M8

15 years agoFixed auth_send_eapol() to use correct ctx structure
Jouni Malinen [Thu, 15 Jan 2009 23:18:11 +0000 (01:18 +0200)]
Fixed auth_send_eapol() to use correct ctx structure

15 years agoUse a hardcoded RSN IE for testing to start Authenticator
Jouni Malinen [Thu, 15 Jan 2009 23:11:50 +0000 (01:11 +0200)]
Use a hardcoded RSN IE for testing to start Authenticator

This needs to be replaced with proper RSN IE from the peer STA (e.g.,
from Probe Response).

15 years agoImplement EAPOL sending callbacks for IBSS RSN
Jouni Malinen [Thu, 15 Jan 2009 22:56:31 +0000 (00:56 +0200)]
Implement EAPOL sending callbacks for IBSS RSN

15 years agoAdded initial step for IBSS RSN support
Jouni Malinen [Wed, 14 Jan 2009 23:21:55 +0000 (01:21 +0200)]
Added initial step for IBSS RSN support

This commit adds a new build option, CONFIG_IBSS_RSN=y, that can be used
to enable RSN support for IBSS. This links in RSN Authenticator code
from hostapd and adds code for managing per-peer information for IBSS. A
new wpa_cli command or driver event can be used to request RSN
authentication with an IBSS peer. New RSN Authenticator and Supplicant
will be allocated for each peer.

The basic state machine setup code is included in this commit, but the
state machines are not properly started yet. In addition, some of the
callback functions are not yet complete.

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)