Jouni Malinen [Tue, 18 Nov 2008 13:06:03 +0000 (15:06 +0200)]
Remove extra typedefs since they do not seem to be needed anymore
These typedefs were causing build issues with new kernel/C library headers,
so lets get rid of them since they do not seem to be needed anymore. This
applies only if CONFIG_FULL_DYNAMIC_VLAN is enabled which is not even
mentioned in the defconfig file, so this should not change behavior more
most users.
Jouni Malinen [Tue, 18 Nov 2008 13:01:24 +0000 (15:01 +0200)]
Improved the error message for passive scan not being available
If the driver wrapper does not implement passive_scan handler, do not try
to use strerror() to figure out what the error meant. This is not really an
error that the user should be notified about.
Jouni Malinen [Tue, 18 Nov 2008 12:55:32 +0000 (14:55 +0200)]
driver_nl80211: Remove monitor interface if AP initialization fails
Jouni Malinen [Tue, 18 Nov 2008 12:51:43 +0000 (14:51 +0200)]
Changed channel flags configuration to read the information from the driver
(e.g., via driver_nl80211 when using mac80211) instead of using hostapd as
the source of the regulatory information (i.e., information from CRDA is
now used with mac80211); this allows 5 GHz channels to be used with hostapd
(if allowed in the current regulatory domain).
Jouni Malinen [Sun, 16 Nov 2008 19:29:12 +0000 (21:29 +0200)]
OpenSSL 0.9.9 API change for EAP-FAST session ticket overriding API
Updated OpenSSL code for EAP-FAST to use an updated version of the
session ticket overriding API that was included into the upstream
OpenSSL 0.9.9 tree on 2008-11-15 (no additional OpenSSL patch is
needed with that version anymore).
Jouni Malinen [Sun, 16 Nov 2008 09:30:34 +0000 (11:30 +0200)]
Updated interop results for ACS 4.2
Jouni Malinen [Sun, 16 Nov 2008 09:10:29 +0000 (11:10 +0200)]
EAP-FAST: Reorder TLVs in PAC Acknowledgment to fix interop issues
It looks like ACS did not like PAC Acknowledgment TLV before Result TLV, so
reorder the TLVs to match the order shown in a
draft-cam-winget-eap-fast-provisioning-09.txt example. This allows
authenticated provisioning to be terminated with Access-Accept (if ACS has
that option enabled). Previously, provisioning was otherwise successful,
but the server rejected connection due to not understanding the PAC Ack
("Invalid TEAP Data recieved").
Jouni Malinen [Wed, 12 Nov 2008 04:15:27 +0000 (06:15 +0200)]
Modified the OpenSSL patch to use session ticket -specific function
This is the first step in replacing SSL_set_hello_extension() with a new
SSL_set_session_ticket_ext() function that can only be used to override the
session ticket extension, not any arbitrary TLS extension.
SSL_set_hello_extension() is still present as a simple wrapper in this
version to avoid changing the API and to make testing with wpa_supplicant
and hostapd easier. It can be eventually removed when the patch is going in
into OpenSSL distribution.
Jouni Malinen [Wed, 12 Nov 2008 03:06:03 +0000 (05:06 +0200)]
Updated indentation in the patch to match style used elsewhere in OpenSSL
Kel Modderman [Tue, 11 Nov 2008 15:41:19 +0000 (17:41 +0200)]
wpa_gui-qt4: tweak icon Makefile
Output the xpm icons in more convenient location.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Martin Michlmayr [Tue, 11 Nov 2008 15:36:37 +0000 (17:36 +0200)]
wpa_gui-qt4: FTBFS with GCC 4.4: missing #include
GCC 4.4 cleaned up some more C++ headers. You always have to #include
headers directly and cannot rely for things to be included indirectly.
> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DCONFIG_CTRL_IFACE
-DCONFIG_CTRL_IFACE_UNIX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui
-I/usr/include/qt4 -I. -I.. -I../../src/utils -I../../src/common -I.moc -I.ui -o
.obj/wpagui.o wpagui.cpp
> wpagui.cpp: In constructor 'WpaGui::WpaGui(QWidget*, const char*,
Qt::WFlags)':
> wpagui.cpp:98: error: 'printf' was not declared in this scope
From: Martin Michlmayr <tbm@cyrius.com>
Bug: http://bugs.debian.org/505041
Signed-off-by: Kel Modderman <kel@otaku42.de>
Jouni Malinen [Sat, 8 Nov 2008 02:43:12 +0000 (04:43 +0200)]
Added an optional mitigation mechanism for certain attacks against TKIP by
delaying Michael MIC error reports by a random amount of time between 0 and
60 seconds if multiple Michael MIC failures are detected with the same PTK
(i.e., the Authenticator does not rekey PTK on first failure report). This
is disabled by default and can be enabled with a build option
CONFIG_DELAYED_MIC_ERROR_REPORT=y in .config.
This may help in making a chopchop attack take much longer time by forcing
the attacker to wait 60 seconds before knowing whether a modified frame
resulted in a MIC failure.
Jouni Malinen [Fri, 7 Nov 2008 18:09:44 +0000 (20:09 +0200)]
EAP-SIM/AKA: fixed initialization to verify PIN even if identity is set
Previously, hardcoded identity in the network configuration skipped both
IMSI reading and PIN verification. This broke cases where PIN is needed for
GSM/UMTS authentication. Now, only IMSI reading is skipped if identity is
hardcoded.
Jouni Malinen [Fri, 7 Nov 2008 06:34:07 +0000 (08:34 +0200)]
EAP-AKA: Validate RES Length field in AT_RES
This change breaks interoperability with older wpa_supplicant versions
(everything up to and including wpa_supplicant 0.5.10 and 0.6.5) which
incorrectly used this field as number of bytes, not bits, in RES.
Jouni Malinen [Fri, 7 Nov 2008 06:30:34 +0000 (08:30 +0200)]
Fixed EAP-AKA RES Length field in AT_RES as length in bits, not bytes
Jouni Malinen [Thu, 6 Nov 2008 20:57:09 +0000 (22:57 +0200)]
EAP-FAST server: allow expired PAC for PAC refresh
Instead of falling back to full TLS handshake on expired PAC, allow the
PAC to be used to allow a PAC update with some level of server
authentication (i.e., do not fall back to full TLS handshake since we
cannot be sure that the peer would be able to validate server certificate
now). However, reject the authentication since the PAC was not valid
anymore. Peer can connect again with the newly provisioned PAC after this.
Jouni Malinen [Thu, 6 Nov 2008 19:07:53 +0000 (21:07 +0200)]
EAP-FAST: Include Tunnel PAC request only after EAP authentication
Jouni Malinen [Thu, 6 Nov 2008 17:57:21 +0000 (19:57 +0200)]
Added support for enforcing frequent PTK rekeying
Added a new configuration option, wpa_ptk_rekey, that can be used to
enforce frequent PTK rekeying, e.g., to mitigate some attacks against TKIP
deficiencies. This can be set either by the Authenticator (to initiate
periodic 4-way handshake to rekey PTK) or by the Supplicant (to request
Authenticator to rekey PTK).
With both wpa_ptk_rekey and wpa_group_rekey (in hostapd) set to 600, TKIP
keys will not be used for more than 10 minutes which may make some attacks
against TKIP more difficult to implement.
Jouni Malinen [Thu, 6 Nov 2008 02:21:32 +0000 (04:21 +0200)]
Added Milenage-GSM simulator for EAP-SIM
CONFIG_SIM_SIMULATOR=y in .config and password="Ki:OPc" in network config
to enable.
Jouni Malinen [Wed, 5 Nov 2008 21:44:26 +0000 (23:44 +0200)]
driver_ndis: Added a workaround for a driver that removes SSID IE in scan
A driver was found to remove SSID IE from NDIS_WLAN_BSSID_EX IEs, but the
correct SSID is included in NDIS_802_11_SSID structure inside the BSSID
data. If this is seen in scan results, create a matching SSID IE and add it
to the end of IEs to fix scan result parsing.
Jouni Malinen [Wed, 5 Nov 2008 21:02:13 +0000 (23:02 +0200)]
Added Milenage USIM emulator for EAP-AKA (can be used to simulate test
USIM card with a known private key; enable with CONFIG_USIM_SIMULATOR in
.config and password="Ki:OPc:SQN" in network configuration).
Jouni Malinen [Sat, 1 Nov 2008 15:20:25 +0000 (17:20 +0200)]
Preparations for 0.6.5 release
Jouni Malinen [Sat, 1 Nov 2008 15:09:28 +0000 (17:09 +0200)]
Fixed fwrite error path in eap_fast_write_pac not to free buf
Caller expects the buffer to be allocated on error, so eap_fast_write_pac()
must be consistent with its behavior on error paths.
Jouni Malinen [Sat, 1 Nov 2008 12:46:00 +0000 (14:46 +0200)]
Added a comment about VS2008EE and updated WinPcap/OpenSSL versions
Jouni Malinen [Sat, 1 Nov 2008 12:32:10 +0000 (14:32 +0200)]
Added a note about hostapd driver_nl80211 and AP mode in wireless-testing
Jouni Malinen [Sat, 1 Nov 2008 12:28:34 +0000 (14:28 +0200)]
Fixed ctrl_iface BSS command to fetch scan results, if needed
This makes BSS command work line SCAN_RESULTS and allows wpa_gui to get
some scan results without explicit scan results even when using ap_scan=2.
Johannes Berg [Sat, 1 Nov 2008 11:45:34 +0000 (13:45 +0200)]
driver_nl80211: Remove set_ssid from nl80211 driver
This is no longer required (and does not work with current
wireless-testing anymore).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Jouni Malinen [Sat, 1 Nov 2008 11:03:09 +0000 (13:03 +0200)]
Updated VS2005 project files with new and removed C files
Jouni Malinen [Sat, 1 Nov 2008 11:02:50 +0000 (13:02 +0200)]
Use os_snprintf() instead of snprintf()
Jouni Malinen [Wed, 29 Oct 2008 19:57:01 +0000 (21:57 +0200)]
Use the common ieee802_11_parse_elems() implementations for mlme.c
Jouni Malinen [Wed, 29 Oct 2008 19:48:14 +0000 (21:48 +0200)]
Moved ieee802_11_parse_elems() into common code
Jouni Malinen [Wed, 29 Oct 2008 19:33:46 +0000 (21:33 +0200)]
Removed the unused hapd argument to ieee802_11_parse_elems()
Jouni Malinen [Wed, 29 Oct 2008 17:35:17 +0000 (19:35 +0200)]
driver_nl80211: Added TX queue parameter configuration
Jouni Malinen [Wed, 29 Oct 2008 17:34:27 +0000 (19:34 +0200)]
driver_nl80211: Added basic rate configuration
Jouni Malinen [Wed, 29 Oct 2008 17:33:24 +0000 (19:33 +0200)]
Verify fread(), fwrite(), and system() return values
These were starting to trigger compiler warning with recent glibc header
files and gcc.
Jouni Malinen [Wed, 29 Oct 2008 17:30:23 +0000 (19:30 +0200)]
Fixed size_t printf format for 64-bit targets
Jouni Malinen [Wed, 29 Oct 2008 17:28:35 +0000 (19:28 +0200)]
nl80211: Finish dumps properly (ported from iw.git)
Jouni Malinen [Wed, 29 Oct 2008 17:25:15 +0000 (19:25 +0200)]
Set TX queue parameters during initialization
This was already called from reconfig.c, but the call from hostapd.c had
been forgotten.
Jouni Malinen [Sat, 25 Oct 2008 17:21:31 +0000 (20:21 +0300)]
Fixed EAPOL skip for PMKSA caching case to remain in authenticated state
Need to make sure that portValid is TRUE in order to avoid PAE state
machine going into DISCONNECTED state on eapol_sm_step(). This could be
triggered at least with OKC.
Jouni Malinen [Tue, 21 Oct 2008 10:54:54 +0000 (13:54 +0300)]
Fix group key rekeying when reauth happens during pending group key update
We need to cancel the group key update for a STA if a reauthentication
request is received while the STA is in pending group key update. When
canceling the update, we will also need to make sure that the PTK Group Key
state machine ends up in the correct state (IDLE) to allow future updates
in case of WPA2.
Jouni Malinen [Sun, 19 Oct 2008 07:02:57 +0000 (10:02 +0300)]
EAP-FAST peer: Fixed not to add PAC Request in PAC Acknowledgement message
Jouni Malinen [Sun, 19 Oct 2008 06:55:59 +0000 (09:55 +0300)]
EAP-FAST: Allow A-ID and A-ID-Info to be configured separately
Changed EAP-FAST configuration to use separate fields for A-ID and
A-ID-Info (eap_fast_a_id_info) to allow A-ID to be set to a fixed
16-octet len binary value for better interoperability with some peer
implementations; eap_fast_a_id is now configured as a hex string.
Jouni Malinen [Wed, 15 Oct 2008 03:34:39 +0000 (06:34 +0300)]
Fixed WPA/RSN IE validation to verify the proto (WPA vs. WPA2) is enabled
Previous version could have allowed a broken client to complete WPA (or
WPA2) authentication even if the selected proto was not enabled in hostapd
configuration.
Jouni Malinen [Tue, 14 Oct 2008 04:39:51 +0000 (07:39 +0300)]
Avoid some gcc 4.3 warnings about deprecated string conversions
Jouni Malinen [Wed, 8 Oct 2008 14:25:47 +0000 (17:25 +0300)]
EAP-FAST: Make PAC-Key lifetime values configurable
The hardcoded values in eap_fast.c were replaced with values read from
hostapd.conf.
Jouni Malinen [Wed, 8 Oct 2008 13:55:23 +0000 (16:55 +0300)]
EAP-FAST: Added support for disabling anonymous/authenticated provisioning
eap_fast_prov config parameter can now be used to enable/disable different
EAP-FAST provisioning modes:
0 = provisioning disabled
1 = only anonymous provisioning allowed
2 = only authenticated provisioning allowed
3 = both provisioning modes allowed
Jouni Malinen [Wed, 8 Oct 2008 12:50:01 +0000 (15:50 +0300)]
Change the order of Result TLV and PAC TLV to avoid interop issues
draft-cam-winget-eap-fast-provisioning-06.txt or RFC 4851 do not seem to
mandate any particular order for TLVs, but some interop issues were noticed
with an EAP-FAST peer implementation when Result TLV followed PAC TLV. The
example in draft-cam-winget-eap-fast-provisioning-06.txt shows the TLVs in
the other order, so change the order here, too, to make it less likely to
hit this type of interop issues.
Jouni Malinen [Tue, 7 Oct 2008 15:53:02 +0000 (18:53 +0300)]
wpa_gui-qt4: Set EAP-FAST provisioning parameters if inner method is 'any'
Jouni Malinen [Thu, 2 Oct 2008 17:26:00 +0000 (20:26 +0300)]
Updated the comment on MS-Packet-Info mismatch based on [MS-SOH] info
Jouni Malinen [Thu, 2 Oct 2008 17:22:17 +0000 (20:22 +0300)]
SoH: Add null termination for empty url in MS-Quarantine-State.
Jouni Malinen [Thu, 2 Oct 2008 16:34:22 +0000 (19:34 +0300)]
SoH: Add all the mandatory attributes into SSoH vendor specific attribute
This adds all the attributes that are marked as mandatory for SoH in
IF-TNCCS-SOH v1.0. MS-Machine-Inventory does not contain correct data
(i.e., all version fields are just marked as inapplicable) and
MS-MachineName is hardcoded to wpa_supplicant@w1.fi for now.
Jouni Malinen [Thu, 2 Oct 2008 14:38:13 +0000 (17:38 +0300)]
Fixed EAP-FAST peer not to add double Result TLV when ACKing PAC
Jouni Malinen [Thu, 2 Oct 2008 14:27:24 +0000 (17:27 +0300)]
Register a quick auth timeout if EAPOL fails to avoid long waits
This may be needed if the AP does not disconnect in case of EAP-FAST
unauthenticated provisioning (EAP-Failure). Adding the local short timeout
will speed up the process in such a case by reducing the wait (which can
often be up to 60 seconds).
Jouni Malinen [Thu, 2 Oct 2008 13:26:18 +0000 (16:26 +0300)]
Added debug_timestamp option to Windows registry
Jouni Malinen [Thu, 2 Oct 2008 13:25:41 +0000 (16:25 +0300)]
NDIS: Set authMode=WPA2, if needed, when flushing PMKID cache
Some drivers may refuse OID_802_11_PMKID if authMode is not set to WPA2,
so let's set it temporarily, if needed, when flushing PMKID cache.
Jouni Malinen [Thu, 2 Oct 2008 11:12:32 +0000 (14:12 +0300)]
Set update_config=1 in the example Windows registry config
Jouni Malinen [Thu, 2 Oct 2008 11:10:53 +0000 (14:10 +0300)]
Save config after blob updates from EAP (if update_config=1)
This allows EAP-FAST PAC updates to be stored when using config blobs
instead of external files.
Jouni Malinen [Thu, 2 Oct 2008 11:09:43 +0000 (14:09 +0300)]
wpa_gui-qt4: Fixed phase2 format for EAP-FAST GTC+MSCHAPv2 case
Jouni Malinen [Thu, 2 Oct 2008 09:40:24 +0000 (12:40 +0300)]
Fixed a typo
Jouni Malinen [Thu, 2 Oct 2008 09:39:31 +0000 (12:39 +0300)]
wpa_gui-qt4: Set EAP-FAST provisioning parameters
Jouni Malinen [Thu, 2 Oct 2008 09:24:57 +0000 (12:24 +0300)]
wpa_gui-qt4: Unset string variables instead of setting them to ""
This allows identity (etc.) variables to be removed from configuration
which is different from setting them to an empty string. For example,
EAP-SIM and EAP-AKA can now be configured to use identity string generation
from SIM/USIM by clearing the identity string in wpa_gui.
Jouni Malinen [Thu, 2 Oct 2008 09:16:25 +0000 (12:16 +0300)]
Extended ctrl_iface SET_NETWORK to allow variables to be unset
Setting the value of the SET_NETWORK command to NULL (without quotation)
unsets the variable, i.e., removes it from configuration file. This is
needed to allow GUI programs to clear variables, e.g., identity for
EAP-AKA/SIM.
Jouni Malinen [Wed, 1 Oct 2008 13:43:36 +0000 (16:43 +0300)]
wpa_gui-qt4: Added support for configuring Phase 2 method
Jouni Malinen [Wed, 1 Oct 2008 11:44:24 +0000 (14:44 +0300)]
Add pcsc="" to configuration for EAP-SIM and EAP-AKA
This allows real SIM/USIM cards to be used by enabling PC/SC.
Jouni Malinen [Wed, 1 Oct 2008 11:17:35 +0000 (14:17 +0300)]
Silenced some of the driver-related messages for driver=none case
No need to print these to confuse users that configure hostapd as a RADIUS
server without any AP functionality.
Jouni Malinen [Wed, 1 Oct 2008 11:07:55 +0000 (14:07 +0300)]
Added a new driver wrapper, "none", for RADIUS server only configuration
This can be used to limit hostapd code size and clean up debug output for
configurations that do not use hostapd to control AP functionality.
Jouni Malinen [Wed, 1 Oct 2008 10:55:04 +0000 (13:55 +0300)]
Fixed EAP-TTLS server to verify eap_ttls_phase2_eap_init() return code
It is possible that the initialization of the Phase 2 EAP method fails and
if that happens, we need to stop EAP-TTLS server from trying to continue
using the uninitialized EAP method. Otherwise, the server could trigger
a segmentation fault when dereferencing a NULL pointer.
Kel Modderman [Wed, 1 Oct 2008 06:48:11 +0000 (09:48 +0300)]
wpa_gui-qt4: add support for starting in system tray only
Allow application to be started in the system tray only when started with
the `-t' command line argument.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Kel Modderman [Wed, 1 Oct 2008 06:44:58 +0000 (09:44 +0300)]
wpa_gui-qt4: clean up closeEvent handler
When the system tray icon is created, qApp's setQuitOnLastWindowClosed
property is set to false, therefore do _not_ ignore widget close events, or
else wpa_gui will refuse to exit when the window manager is logging out.
While at it, remove WpaGui::fileExit() and connect fileExitAction to
quit().
Signed-off-by: Kel Modderman <kel@otaku42.de>
Jouni Malinen [Tue, 30 Sep 2008 13:46:22 +0000 (16:46 +0300)]
nl80211: clean up netlink code
This is a port of commit
cafe38cae01b0fcbc3b795ce02decf4ad93bee8f
from Johannes Berg <johannes@sipsolutions.net> for hostapd to
wpa_supplicant driver_nl80211.c.
Johannes Berg [Mon, 29 Sep 2008 16:37:24 +0000 (19:37 +0300)]
nl80211 hostapd driver: clean up netlink code
Put it into a single place instead of having it all over.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Johannes Berg [Mon, 29 Sep 2008 16:21:51 +0000 (19:21 +0300)]
nl80211 driver: correctly set the encrypt bit for eapol frames
A recent kernel change led to all EAPOL frames being encrypted rather than
just those for the group handshake. This is due to transmit processing in
the kernel now using the proper interface which would encrypt those frames
with the group key because hostapd wasn't requesting that they not be
encrypted. This changes the nl80211 driver to not request encryption unless
the EAPOL frame should be encrypted.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Jouni Malinen [Mon, 29 Sep 2008 14:28:10 +0000 (17:28 +0300)]
FT: Do not call wpa_ft_prepare_auth_request() if FT is not used
This saves some extra processing for the non-FT case if FT is built in, but
not used for the association.
Jouni Malinen [Mon, 29 Sep 2008 14:09:26 +0000 (17:09 +0300)]
Added set_mode() handler for privsep
Jouni Malinen [Mon, 29 Sep 2008 13:59:51 +0000 (16:59 +0300)]
Fixed build without CONFIG_CLIENT_MLME
Dan Williams [Mon, 29 Sep 2008 13:45:49 +0000 (16:45 +0300)]
Add an optional set_mode() driver_ops handler for setting mode before keys
A bug just got reported as a result of this for mac80211 drivers.
https://bugzilla.redhat.com/show_bug.cgi?id=459399
The basic problem is that since taking the device down clears the keys
from the driver on many mac80211-based cards, and since the mode gets
set _after_ the keys have been set in the driver, the keys get cleared
on a mode switch and the resulting association is wrong. The report is
about ad-hoc mode specifically, but this could happen when switching
from adhoc back to managed mode.
Jouni Malinen [Sun, 28 Sep 2008 15:06:12 +0000 (18:06 +0300)]
Update the OpenSSL EAP-FAST patch for current snapshot (
20080928)
This reverts the addition of ssl3_digest_cached_records() call from the
previous update (
3d1aa251a3783305fe31b280bb570ce9153bd982) since OpenSSL
has apparently reverted some earlier changes that broke EAP-FAST.
Jouni Malinen [Sun, 28 Sep 2008 14:09:22 +0000 (17:09 +0300)]
Added OpenSSL 0.9.8i patch for EAP-FAST
Jouni Malinen [Sat, 27 Sep 2008 07:49:56 +0000 (10:49 +0300)]
Validate WEXT event iwe->u.data.length before using the event data
This is needed to avoid crashing wpa_supplicant with invalid event messages
that may be received when using 64-bit kernel with 32-bit userspace.
Jouni Malinen [Sat, 27 Sep 2008 07:46:06 +0000 (10:46 +0300)]
Silenced compiler warnings on size_t printf format and shadowed variables
Jouni Malinen [Fri, 26 Sep 2008 14:24:40 +0000 (17:24 +0300)]
Split wpa_supplicant_select_bss() into three and remove odd debug message
This function was getting way too long, so let's split it into WPA and
non-WPA cases as separate functions. In addition, remove the confusing
"Try to find non-WPA AP" debug message if a WPA-enabled AP is already
selected (as reported by Andriy Tkachuk).
Kel Modderman [Fri, 26 Sep 2008 12:42:12 +0000 (15:42 +0300)]
Don't bother showing a status message when returning to the system tray,
but still show a one time tray message to indicate to the user that the
program is still running in the tray if they triggered the window manager
close button.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Kel Modderman [Thu, 25 Sep 2008 18:12:08 +0000 (21:12 +0300)]
wpa_gui-qt4: remove lastWindowClosed() signal handler
Do not connect lastWindowClosed() to quit(), instead explicitly close the
application if File->Exit or window manager close button is activated.
This allows the tray app to avoid being closed with last visible window,
and launch scan and event history windows individually.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Bernard Gray [Thu, 25 Sep 2008 18:09:44 +0000 (21:09 +0300)]
wpa_gui-qt4: enhance svg icon
Enhance the wpa_gui-qt4 icon:
* removed unused layer
* moved spurious rectangle back where it belongs
* removed flat edge from top of the lower white glow object
Signed-off-by: Bernard Gray <bernard.gray@gmail.com>
Kel Modderman [Thu, 25 Sep 2008 18:06:32 +0000 (21:06 +0300)]
wpa_gui-qt4: add status fields to tray message
Add extra state status fields to the tray icon message bubble. Do not
display an empty message.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Andriy Tkachuk [Wed, 24 Sep 2008 10:02:17 +0000 (13:02 +0300)]
Fix build with CONFIG_CLIENT_MLME, but without CONFIG_IEEE80211W
mlme.c: In function 'ieee80211_rx_mgmt_action':
mlme.c:1990: warning: implicit declaration of function
'ieee80211_rx_mgmt_ping_action'
...
mlme.o(.text+0x3007): In function `ieee80211_sta_rx':
/home/ant/hostap/hostap06/hostap/wpa_supplicant/mlme.c:1990: undefined reference
to `ieee80211_rx_mgmt_ping_action'
collect2: ld returned 1 exit status
Dan Nicholson [Wed, 24 Sep 2008 09:51:08 +0000 (12:51 +0300)]
Don't post scan results when initial scan is emtpy
When the initial scan is made, just the cached results from the driver
are used. If this is empty, it's useless to post the results since
another scan is being scheduled immediately. This just causes extra
processing from listeners for no gain.
Dan Nicholson [Wed, 24 Sep 2008 09:48:33 +0000 (12:48 +0300)]
Restore scan request settings if initial association failed
The scan path to initiate another scan if the initial association failed
was broken due to wpa_s->scan_req being zeroed earlier in
wpa_supplicant_scan(). This caused the second scan to bail out early
since it thought this was not a requested scan.
Jouni Malinen [Wed, 24 Sep 2008 09:29:04 +0000 (12:29 +0300)]
Add a new auto-generated file to be ignored
Kel Modderman [Wed, 24 Sep 2008 09:26:57 +0000 (12:26 +0300)]
wpa_gui-qt4: add system tray support
Add system tray icon support to wpa_gui-qt4. The tray icon remains quiet
when the main dialog is visible, so it should not cause too much pain for
more conservative users of wpa_gui. The addition involves the following
changes:
* when closing wpa_gui via window manager close box, wpa_gui close event is
ignored and it is minimised to system tray. A status message is displayed
(or popup dialog box if tray messages are not supported) to provide a
visual hint that the program is still running in the background.
* add File->Exit slot handler to facilitate application quit from main
dialog
* provide a context menu with a short list of useful actions
* show/hide main dialog when icon is triggered (single click)
* ensure main dialog is visible when event handler or scan results is
chosen from tray icon context menu
* show tray messages on connected and disconnected events, display a status
message a few seconds after connected events
Signed-off-by: Kel Modderman <kel@otaku42.de>
Kel Modderman [Wed, 24 Sep 2008 09:24:49 +0000 (12:24 +0300)]
wpa_gui-qt4: remove qPixmapFromMimeSource from ui files
When integrating the new art, this UI entry:
<pixmapfunction>qPixmapFromMimeSource</pixmapfunction>
Caused the following error:
.obj/wpagui.o: In function `Ui_WpaGui::setupUi(QMainWindow*)':
wpagui.cpp:(.text._ZN9Ui_WpaGui7setupUiEP11QMainWindow[Ui_WpaGui::setupUi(QMainWindow*)]+0xd3): undefined reference to `qPixmapFromMimeSource(QString const&)'
collect2: ld returned 1 exit status
Removing qPixmapFromMimeSource seems to have no unwanted side effects, and
allows successful build again. Research leads me to believe it depends on
Qt3Support, which we do not want.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Kel Modderman [Wed, 24 Sep 2008 09:22:50 +0000 (12:22 +0300)]
wpa_gui-qt4: use new svg as application icon
Enhance wpa_gui's appearance by integrating the new svg icon via a resource
file.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Kel Modderman [Wed, 24 Sep 2008 09:20:58 +0000 (12:20 +0300)]
wpa_gui-qt4: desktop entry file
A desktop entry file for wpa_gui.
Signed-off-by: Kel Modderman <kel@otaku42.de>
Bernard Gray [Wed, 24 Sep 2008 09:19:31 +0000 (12:19 +0300)]
wpa_gui-qt4: add svg icon
Introducing an original wpa_gui icon, in svg format, with Makefile for
easy conversion to other icon formats. The icon is thanks to Bernard Gray.
Signed-off-by: Bernard Gray <bernard.gray@gmail.com>
Signed-off-by: Kel Modderman <kel@otaku42.de>
Jouni Malinen [Wed, 24 Sep 2008 05:46:05 +0000 (08:46 +0300)]
Fixed eap_example build to match with EAP-PEAP changes
Jouni Malinen [Mon, 1 Sep 2008 08:48:43 +0000 (11:48 +0300)]
IEEE 802.11w: Use comeback duration to delay association
Jouni Malinen [Mon, 1 Sep 2008 08:38:13 +0000 (11:38 +0300)]
FT: Fixed FTIE for authentication after a failed association
Jouni Malinen [Mon, 1 Sep 2008 08:00:59 +0000 (11:00 +0300)]
MFP + FT: Added support for sending IGTK in FTIE
Jouni Malinen [Sun, 31 Aug 2008 19:57:28 +0000 (22:57 +0300)]
Added support for using SHA256-based stronger key derivation for WPA2
IEEE 802.11w/D6.0 defines new AKMPs to indicate SHA256-based algorithms for
key derivation (and AES-CMAC for EAPOL-Key MIC). Add support for using new
AKMPs and clean up AKMP processing with helper functions in defs.h.
Jouni Malinen [Sun, 31 Aug 2008 08:15:56 +0000 (11:15 +0300)]
Cleaned up TX callback request processing
Move the use of 802.11 header protocol field into driver_hostap.c since
this is a Host AP driver specific mechanism and other driver wrappers
should not really need to know about it.