]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
11 years agoAndroid: Enable CONFIG_IEEE80211N option for hostapd aosp-jb-from-upstream
Dmitry Shmidt [Tue, 28 Feb 2012 19:21:32 +0000 (11:21 -0800)] 
Android: Enable CONFIG_IEEE80211N option for hostapd

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
11 years agoAllow legacy PS param to be set with SET in addition to P2P_SET
Jouni Malinen [Thu, 9 Aug 2012 19:42:36 +0000 (22:42 +0300)] 
Allow legacy PS param to be set with SET in addition to P2P_SET

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
(manual merge of commit b2ff168128cde761e510eac46092ee2c50099535)

11 years agoAdd RANGE=ALL|N1-N2 selection for ctrl_iface BSS command
Dmitry Shmidt [Sat, 7 Apr 2012 09:49:31 +0000 (12:49 +0300)] 
Add RANGE=ALL|N1-N2 selection for ctrl_iface BSS command

Add ability to get information about several BSS's in one call.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit eff1a95b9763a7b8b5e25c8ef1eb911ab479afa0)

11 years agoAdd MASK=0xH option for the ctrl_iface BSS command
Dmitry Shmidt [Sat, 7 Apr 2012 09:23:21 +0000 (12:23 +0300)] 
Add MASK=0xH option for the ctrl_iface BSS command

This optional parameter to the BSS command can be used to select which
fields are included in the output to avoid having to parse through
unneeded information and to reduce the buffer size.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 5f97dd1c57f1b72b3493ac4237b505bdd4416a57)

11 years agoMove ctrl_iface BSS command response generation into a separate function
Dmitry Shmidt [Sat, 7 Apr 2012 09:06:35 +0000 (12:06 +0300)] 
Move ctrl_iface BSS command response generation into a separate function

This is in preparation for allowing multiple BSS entries to be fetched
with a single command.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 61ce90857e7fb223da7cfd2e589a77de9d322933)

11 years agoP2P: Add driver op for requesting GO/AP channel switch
Jithu Jance [Thu, 9 Aug 2012 18:18:43 +0000 (21:18 +0300)] 
P2P: Add driver op for requesting GO/AP channel switch

Signed-hostap: Jithu Jance <jithu@broadcom.com>

(manual merge of commit ef35f5a0fd2c41f92a3ecc29995c5de1f407d2af)

11 years agoP2P: Add preference setting for concurrent use cases
Jithu Jance [Thu, 9 Aug 2012 18:14:54 +0000 (21:14 +0300)] 
P2P: Add preference setting for concurrent use cases

Add an additional parameter to prioritize either sta or p2p connection
to resolve conflicts arising during single channel concurrency.

Signed-hostap: Jithu Jance <jithu@broadcom.com>

(manual merge of commit b9cfc09a81b1f6449bbd0754a2bdc4d790766662)

11 years agoAdd CONFIG_NO_ROAMING option
Dmitry Shmidt [Tue, 16 Aug 2011 18:55:46 +0000 (11:55 -0700)] 
Add CONFIG_NO_ROAMING option

This can be used to disable wpa_supplicant controlled roaming. It should
be noted that the WPA_DRIVER_FLAGS_BSS_SELECTION capability is the
preferred way for this and CONFIG_NO_ROAMING should be obsoleted once
drivers support the new NL80211_ATTR_ROAM_SUPPORT capability
advertisement.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit e9af53ad39a19264bf5307a1b5923afc2b2f9b06)

11 years agoAndroid: Add PLATFORM_VERSION to VERSION_STR_POSTFIX definition
Dmitry Shmidt [Sat, 25 Feb 2012 15:35:44 +0000 (17:35 +0200)] 
Android: Add PLATFORM_VERSION to VERSION_STR_POSTFIX definition

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 1e1411b04fa1be14e355afce3cfac7218cb4886c)

11 years agoAndroid: Add build configuration files
Dmitry Shmidt [Tue, 15 Nov 2011 14:02:30 +0000 (16:02 +0200)] 
Android: Add build configuration files

These are from Android wpa_supplicant_8.git initial 0.8.X commit
8d520ff1dc2da35cdca849e982051b86468016d8 with some additional edits and
renaming of .config files to android.config.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 5db498920f689d36516c34673b7fa542d3e28223)

11 years agowpa_supplicant: Make Android makefiles available under the BSD license
Dmitry Shmidt [Tue, 15 May 2012 00:34:24 +0000 (20:34 -0400)] 
wpa_supplicant: Make Android makefiles available under the BSD license

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit dfb42efb349e0a5d50126aa2fcf5653e11a01b59)

11 years agoAndroid: Build wpa_supplicant.conf from a template
Dmitry Shmidt [Wed, 1 Jun 2011 21:59:18 +0000 (14:59 -0700)] 
Android: Build wpa_supplicant.conf from a template

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 6e2a570ec47454d6611b34f36c96a1809b6e26c5)

12 years agoIgnore TX status for Data frames from not associated STA aosp-jb-start
Jouni Malinen [Tue, 14 Feb 2012 19:04:14 +0000 (21:04 +0200)] 
Ignore TX status for Data frames from not associated STA

Commit d9a38716ccf90b0ab307f570a30931684a1b8730 did this for
hostapd_eapol_tx_status() but missed the older hostapd_tx_status()
path. Address that case, too.

The TX status event may be received after a station has been
disassociated in cases where the disassociation is following a
transmission of a Data frame. Ignore such events if the STA is not
associated at the moment the event is being processed. This avoids
confusing debug entries and rescheduling of the EAPOL TX timeouts for
STAs that are still in the STA table, but are not really in active EAPOL
session.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoWPS: Fix clearing of SetSelectedRegistrar with multiple interfaces
Jouni Malinen [Mon, 13 Feb 2012 21:02:57 +0000 (23:02 +0200)] 
WPS: Fix clearing of SetSelectedRegistrar with multiple interfaces

The SetSelectedRegistrar timeout was registered for each registrar
instance, but the only context pointer (struct subscription *) was
shared with each registrar which resulted in the timeout getting
cancelled for some of the registrar instances before the selected
registrar (ER) information was cleared.

In addition, when an ER unsubscribed from receiving events, the
selected registrar information got cleared only from a single
registrar.

Fix these issues by registering a pointer to the registrar
instance in the timeout and by iterating over all UPnP interfaces
when removing a subscription.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoeloop: Fix allocation failure handling in poll() version
Jouni Malinen [Sun, 12 Feb 2012 19:33:42 +0000 (21:33 +0200)] 
eloop: Fix allocation failure handling in poll() version

eloop_sock_table_add_sock() needs to fail if pollfd array allocation
fails instead of returning success and leaving behind no buffer.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoIBSS RSN: Support authorization
Antonio Quartulli [Sun, 12 Feb 2012 16:08:34 +0000 (18:08 +0200)] 
IBSS RSN: Support authorization

In IBSS RSN cfg80211/mac80211 now waits for userspace to authorize new
stations. This patch makes wpa_supplicant notify the driver when a
station can be considered authorized.

Signed-hostap: Antonio Quartulli <ordex@autistici.org>

12 years agoeloop: Support poll() in eloop
Ben Greear [Sun, 12 Feb 2012 15:47:23 +0000 (17:47 +0200)] 
eloop: Support poll() in eloop

When using more than around 200 virtual stations, we start hitting the
max number of file descriptors supported by select(). This patch adds
support for poll(), which has no hard upper limit.

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agoWPS: Fix regression in post-WPS scan optimization
Jouni Malinen [Sun, 12 Feb 2012 11:54:15 +0000 (13:54 +0200)] 
WPS: Fix regression in post-WPS scan optimization

Commit 3c85f144ce7aa3967f881a7584a5b125061ca436 fixed issues with P2P
Action frame TX after disconnection by clearing wpa_s->assoc_freq.
This resulted in a regression to the post-WPS scan optimization that
used wpa_s->assoc_freq to enable fast single-channel scan. Fix this by
copying wpa_s->assoc_freq to a local variable before calling
wpa_supplicant_deauthenticate() that ends up calling
wpa_supplicant_mark_disassoc() which will clear assoc_freq.

Reported-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1
Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoRemove the GPL notification from files contributed by Jouni Malinen
Jouni Malinen [Sat, 11 Feb 2012 14:46:35 +0000 (16:46 +0200)] 
Remove the GPL notification from files contributed by Jouni Malinen

Remove the GPL notification text from the files that were
initially contributed by myself.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoRemove the GPL notification from files contributed by Atheros
Jouni Malinen [Sat, 11 Feb 2012 14:31:36 +0000 (16:31 +0200)] 
Remove the GPL notification from files contributed by Atheros

Remove the GPL notification text from files that were initially
contributed by Atheros Communications or Qualcomm Atheros.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoRemove the GPL notification from EAP-pwd implementation
Jouni Malinen [Sat, 11 Feb 2012 12:19:26 +0000 (14:19 +0200)] 
Remove the GPL notification from EAP-pwd implementation

Remove the GPL notification text from EAP-pwd implementation per
approval from Dan Harkins who contributed these files.
(email from Dan Harkins <dharkins@lounge.org> dated
Wed, 4 Jan 2012 16:25:48 -0800)

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoSelect the BSD license terms as the only license alternative
Jouni Malinen [Sat, 11 Feb 2012 12:04:12 +0000 (14:04 +0200)] 
Select the BSD license terms as the only license alternative

Simplify licensing terms for hostap.git by selecting the BSD license
alternative for any future distribution. This drops the GPL v2
alternative from distribution terms and from contribution requirements.

The BSD license alternative that has been used in hostap.git (the one
with advertisement clause removed) is compatible with GPL and as such
the software in hostap.git can still be used with GPL projects. In
addition, any new contribution to hostap.git is expected to be licensed
under the BSD terms that allow the changes to be merged into older
hostap repositories that still include the GPL v2 alternative.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoEAP-pwd: Add support for fragmentation
Dan Harkins [Sat, 11 Feb 2012 10:46:30 +0000 (12:46 +0200)] 
EAP-pwd: Add support for fragmentation

Signed-hostap: Dan Harkins <dharkins@lounge.org>

12 years agoEAP-pwd: Describe build option for EAP-pwd
Dan Harkins [Sat, 11 Feb 2012 10:17:58 +0000 (12:17 +0200)] 
EAP-pwd: Describe build option for EAP-pwd

Signed-hostap: Dan Harkins <dharkins@lounge.org>

12 years agoEAP-pwd: Fix the argument name in compute_keys()
Dan Harkins [Sat, 11 Feb 2012 10:14:31 +0000 (12:14 +0200)] 
EAP-pwd: Fix the argument name in compute_keys()

The parameters used here are confirm, not commit values.

Signed-hostap: Dan Harkins <dharkins@lounge.org>

12 years agodbus: Make the P2P peer's properties accessible separately
Flávio Ceolin [Sat, 11 Feb 2012 09:36:50 +0000 (11:36 +0200)] 
dbus: Make the P2P peer's properties accessible separately

Since there is the method org.freedesktop.DBus.Properties.GetAll that
returns all properties from a specific interface, it makes more sense to
separate the properties to make it possible to get only a single
property using the method org.freedesktop.DBus.Properties.Get as well.

Signed-hostap: Flávio Ceolin <flavio.ceolin@profusion.mobi>

12 years agoP2P: Do not expire GO peer entry during group rekeying
Piotr Nakraszewicz [Sat, 11 Feb 2012 08:54:40 +0000 (10:54 +0200)] 
P2P: Do not expire GO peer entry during group rekeying

If wpas_go_connected() is called during group rekeying the P2P GO peer
will expire. To prevent that check if group rekeying is not in progress.

12 years agoFix CONFIG_NO_SCAN_PROCESSING=y build
Jouni Malinen [Sat, 11 Feb 2012 08:51:31 +0000 (10:51 +0200)] 
Fix CONFIG_NO_SCAN_PROCESSING=y build

This fixes a build regression from commit
cd2f4ddfb91c330c778d7464a393c5f26f07d432 by moving
wpa_supplicant_assoc_update_ie() outside the no-scan-processing ifdef
block.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoFix pmksa_cache_get() arguments in !IEEE80211_X_EAPOL builds
Antonio Quartulli [Sat, 11 Feb 2012 08:45:24 +0000 (10:45 +0200)] 
Fix pmksa_cache_get() arguments in !IEEE80211_X_EAPOL builds

In case of !defined(IEEE8021X_EAPOL) the definition of the stub
pmksa_cache_get() in rsn_supp/pmksa_cache.h is not correct. This patch
adds the missing argument to the function definition to fix a
regression from commit 96efeeb66bd8762ab9fccd9fe2b5c3e276ff220c.

Signed-hostap: Antonio Quartulli <ordex@autistici.org>

12 years agoP2P: Avoid re-starting p2p_search in some corner cases
Jouni Malinen [Thu, 9 Feb 2012 10:49:36 +0000 (12:49 +0200)] 
P2P: Avoid re-starting p2p_search in some corner cases

Search (p2p_scan) could already have been started at the point
remain-on-channel end event is being processed, e.g., if an Action frame
TX is reported immediately aftet the end of an earlier remain-on-channel
operation and the response frame is sent using an offchannel operation
while p2p_find is still in progress. Avoid trying to re-run p2p_scan
while the previous one is still running.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Fix p2p_scan() error processing in p2p_search()
Jouni Malinen [Thu, 9 Feb 2012 10:46:44 +0000 (12:46 +0200)] 
P2P: Fix p2p_scan() error processing in p2p_search()

Commit 39185dfa549f076a6be114e0149a3649d302f477 changed the p2p_scan()
callback to return 1 in some cases, but forgot to change this p2p_scan()
call to handle that properly. Fix this by processing any non-zero value
as an error. This regression could leave the P2P module in state where
it believed a P2P scan was still running and refused to start some
operations until that scan gets completed (which would never happen
since it was not really started).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoWPS: Allow wildcard UUID PIN to be used twice
Ganesh Prasadh [Wed, 8 Feb 2012 10:37:57 +0000 (12:37 +0200)] 
WPS: Allow wildcard UUID PIN to be used twice

Previously, PINs that are added with a wildcard UUID were allowed to
be used only by a single Enrollee. However, there may be more than one
Enrollee trying to connect when an AP indicates that active Registrar
is present. As a minimal workaround, allow two Enrollees to try to use
the wildcard PIN. More complete extension could use timeout and allow
larger set of Enrollees to try to connect (while still keeping in mind
PIN disabling requirement after 10 failed attempts).

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoShow BSS entry age (seconds since last update)
Jouni Malinen [Wed, 8 Feb 2012 10:07:54 +0000 (12:07 +0200)] 
Show BSS entry age (seconds since last update)

The BSS ctrl_iface command can sow the age of a BSS table entry to
make it easier for external programs to figure out whether an entry
is still current depending on the use case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Move p2p_add_device() prototype to correct header file
Jouni Malinen [Tue, 7 Feb 2012 14:26:20 +0000 (16:26 +0200)] 
P2P: Move p2p_add_device() prototype to correct header file

This was supposed to be an internal API to be used only within
src/p2p/*.c.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Allow BSS entry to be fetched based on GO P2P Device Address
Jouni Malinen [Tue, 7 Feb 2012 14:23:21 +0000 (16:23 +0200)] 
P2P: Allow BSS entry to be fetched based on GO P2P Device Address

"BSS p2p_dev_addr=<P2P Device Address>" can now be used to fetch a
specific BSS entry based on the P2P Device Address of the GO to avoid
having to iterate through the full BSS table when an external program
needs to figure out whether a specific peer is currently operating as
a GO.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Set Invitation Type to 1 for GO inviting to a persistent group
Jouni Malinen [Mon, 6 Feb 2012 19:54:36 +0000 (21:54 +0200)] 
P2P: Set Invitation Type to 1 for GO inviting to a persistent group

When a GO is operating a persistent group and invites a peer that has
been a P2P client in that persistent group, the Invitation Type in the
Invitation Request frame can be set to 1 to indicate that this is a
reinvocation of a persistent group. Do this based on the maintained
list of P2P clients that have been provided the credentials to this
group.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoP2P: Wait for PD-before-join response
Jouni Malinen [Sun, 5 Feb 2012 18:52:24 +0000 (20:52 +0200)] 
P2P: Wait for PD-before-join response

Even though the Provision Discovery Response frame from PD-before-join
does not really provide any additional information, it can be better to
wait for it before starting the join operation. This adds a minimal
extra latency in the most common case and cleans up the sequence of
driver operations and debug log by avoiding potential processing of the
Provision Discovery Response while already running a scan for the actual
connection.

If transmission of Provision Discovery Request fails, join operation is
started without the additional wait. In addition, a new timeout is used
to start the join if Provision Discovery Response is lost for any
reason.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoP2P: Skip event notification on PD Response in join-group case
Jouni Malinen [Sun, 5 Feb 2012 18:20:36 +0000 (20:20 +0200)] 
P2P: Skip event notification on PD Response in join-group case

Provision Discovery is used as a notification to the GO in the case we
are about join a running group. In such case, there is not much point in
indicating the provision discovery response events to external programs
especially when the PIN-to-be-displayed was different from the one
returned for the p2p_connect command. Skip this confusing event
completely for join-a-running-group case.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoP2P: Remove unneeded go_neg_peer check from PD
Johannes Berg [Sun, 5 Feb 2012 17:05:45 +0000 (19:05 +0200)] 
P2P: Remove unneeded go_neg_peer check from PD

When the GO negotiation peer is assigned, the state also cannot be IDLE,
SEARCH, or LISTEN_ONLY.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
12 years agobgscan_simple: Refinements to fast-scan backoff
Paul Stewart [Sun, 5 Feb 2012 16:43:06 +0000 (18:43 +0200)] 
bgscan_simple: Refinements to fast-scan backoff

These changes account for situations where the CQM threshold
might be approximately the same as the currently received signal,
and thus CQM events are triggered often due to measurement
error/small fluctuations.  This results in scanning occurring
too frequently.

Firstly, inhibit the immediate scan when the short-scan count
is at the maximum.  This keeps bursts of CQM toggling from
causing a torrent of back-to-back scans.  This does not inhibit
immediate scans if the CQM triggers a second time (if the signal
falls lower past the hysteresis).  This reduces the scan rate in
the worst case (fast-rate toggling high/low CQM events) to the
short scan interval.

Secondly, change the behavior of the short scan count so it acts like
a "leaky bucket".  As we perform short-scans, the bucket fills until
it reaches a maximal short-scan count, at which we back-off and
revert to a long scan interval.  The short scan count decreases by
one (emptying the bucket) every time we complete a long scan interval
without a low-RSSI CQM event.

This reduces the impact of medium-rate toggling of high/low CQM
events, reducing the number of short-interval scans that occur before
returning to a long-interval if the system was recently doing
short scans.

12 years agoTry fallback drivers if global init for preferred drivers fails
Dan Williams [Sat, 4 Feb 2012 18:09:00 +0000 (20:09 +0200)] 
Try fallback drivers if global init for preferred drivers fails

Driver global init was considered a hard failure. Thus if, for example,
you used the Broadcom STA driver and didn't have nl80211 or cfg80211
loaded into the kernel, and specified a driver value of "nl80211,wext",
the nl80211 driver's global init would fail with the following message:

nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'

but since global init was a hard failure, creating the supplicant
interface would fail and the WEXT driver would not be tried.
Give other drivers a chance instead.

Signed-hostap: Dan Williams <dcbw@redhat.com>
intended-for: hostap-1

12 years agoP2P: Fix the setter function for DBus group properties
Todd Previte [Sat, 4 Feb 2012 11:13:59 +0000 (13:13 +0200)] 
P2P: Fix the setter function for DBus group properties

The setter function uses the same hostapd_data structure as the getter
which causes it to crash if called on a P2P client. To overcome this
issue, the role is checked to ensure it is called on a group owner and
the pointer is examined for validity. The function will return an error
if called on a non-GO system.

Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1

12 years agoP2P: Fix DBus crash and return additional P2P group properties
Todd Previte [Sat, 4 Feb 2012 11:08:12 +0000 (13:08 +0200)] 
P2P: Fix DBus crash and return additional P2P group properties

When using DBus to get group properties, a segmentation fault is
generated on P2P clients due to a NULL pointer for the ap_iface struct.
The current implementation only returns vendor extensions when called on
a P2P group owner.

The code now checks the P2P role which allows for role-specific
information to be provided. This also fixes the crash issue by only
looking for the correct structures based on the current P2P role.

Signed-hostap: Todd Previte <toddx.a.previte@intel.com>
Signed-hostap: Angie Chinchilla <angie.v.chinchilla@intel.com>
intended-for: hostap-1

12 years agoUse PMKSA cache entries with only a single network context
Jouni Malinen [Sat, 4 Feb 2012 10:32:35 +0000 (12:32 +0200)] 
Use PMKSA cache entries with only a single network context

When looking for PMKSA cache entries to use with a new association, only
accept entries created with the same network block that was used to
create the cache entry.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoDelay scan request on select_network if disconnecting
Jouni Malinen [Sat, 4 Feb 2012 10:28:16 +0000 (12:28 +0200)] 
Delay scan request on select_network if disconnecting

The disconnection command results in disassociation and deauthentication
events which were previously processed during the scan in case of
select_network command being used while associated with another network.
While this works in most cases, it can result in confusing event
messages in ctrl_iface and debug log. Avoid this by using a short delay
between the disconnection and scan request to allow the disconnection
events to be processed prior to starting the new scan.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoClear EAPOL authenticator authFail for PMKSA caching/FT
Jouni Malinen [Sat, 4 Feb 2012 10:21:42 +0000 (12:21 +0200)] 
Clear EAPOL authenticator authFail for PMKSA caching/FT

This fixes a corner case where a STA that has PMKSA cache entry (or
valid FT keys) could try to use full EAPOL/EAP authentication and fail.
If the STA will then try to use the still valid PMKSA cache entry (or
FT) before the STA entry has been cleared, authFail could have been left
to TRUE. That will make EAPOL authenticator PAE state machine enter HELD
state even though authSuccess was already forced to TRUE. This results
in the STA getting disconnected even though it should be allowed to
continue with 4-way handshake. While this is unlikely to happen in
practice, it is better to get this fixed by clearing authFail when
setting authSuccess.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoIgnore TX status for Data frames from not associated STA
Jouni Malinen [Sat, 4 Feb 2012 10:18:56 +0000 (12:18 +0200)] 
Ignore TX status for Data frames from not associated STA

The TX status event may be received after a stations has been
disassociated in cases where the disassociation is following a
transmission of a Data frame. Ignore such events if the STA is not
associated at the moment the event is being processed. This avoids
confusing debug entries and rescheduling of the EAPOL TX timeouts for
STAs that are still in the STA table, but are not really in active EAPOL
session.

Signed-hostap: Jouni Malinen <j@w1.fi>
intended-for: hostap-1

12 years agoInterworking: Fix EAP-TTLS/MSCHAP configuration
Jouni Malinen [Tue, 31 Jan 2012 14:20:43 +0000 (16:20 +0200)] 
Interworking: Fix EAP-TTLS/MSCHAP configuration

Copy-paste error ended up using CHAP when MSCHAP was supposed to be
set.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoWPS: Disable AP PIN after 10 consecutive failures
Jouni Malinen [Mon, 30 Jan 2012 15:31:06 +0000 (17:31 +0200)] 
WPS: Disable AP PIN after 10 consecutive failures

While the exponential increase in the lockout period provides an
efficient mitigation mechanism against brute force attacks, this
additional trigger to enter indefinite lockout period (cleared by
restarting hostapd) will limit attacks even further by giving maximum of
10 attempts (without authorized user action) even in a very long term
attack.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoSupport HT capability overrides
Ben Greear [Sun, 29 Jan 2012 19:01:31 +0000 (21:01 +0200)] 
Support HT capability overrides

This allows HT capabilities overrides on kernels that
support these features.

MCS Rates can be disabled to force to slower speeds when using HT.
Rates cannot be forced higher.

HT can be disabled, forcing an 802.11a/b/g/n station to act like
an 802.11a/b/g station.

HT40 can be disabled.

MAX A-MSDU can be disabled.
A-MPDU Factor and A-MPDU Density can be modified.

Please note that these are suggestions to the kernel. Only mac80211
drivers will work at all. The A-MPDU Factor can only be decreased and
the A-MPDU Density can only be increased currently.

Signed-hostap: Ben Greear <greearb@candelatech.com>

12 years agoRemove duplicated TERMINATING event
Jouni Malinen [Sun, 29 Jan 2012 18:23:07 +0000 (20:23 +0200)] 
Remove duplicated TERMINATING event

Now that CTRL-EVENT-TERMINATING even is sent at the end of interface
removal in case wpa_supplicant process is going to terminate, there
is no need for this duplicated event in the signal handler.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoMove ctrl_iface deinit into the end of interface deinit
Dmitry Shmidt [Sun, 29 Jan 2012 18:21:07 +0000 (20:21 +0200)] 
Move ctrl_iface deinit into the end of interface deinit

This allows TERMINATING ctrl_iface event to be sent at the end of the
deinit sequence to avoid race conditions with new operations that this
event may trigger while wpa_supplicant would still be running through
the deinitialization path.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoDeinit driver before notifying interface has been removed
Dmitry Shmidt [Sun, 29 Jan 2012 18:18:48 +0000 (20:18 +0200)] 
Deinit driver before notifying interface has been removed

This avoids issues with some external program starting to use the
interface based on the interface removal event before wpa_supplicant
has completed deinitialization of the driver interface.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agoLet wpa_supplicant_deinit_iface() know that process is terminating
Dmitry Shmidt [Sun, 29 Jan 2012 18:15:48 +0000 (20:15 +0200)] 
Let wpa_supplicant_deinit_iface() know that process is terminating

This will be needed to be able to move ctrl_iface TERMINATING event to
the end of interface removal.

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
12 years agonl80211: Sync with linux/nl80211.h in wireless-testing.git
Jouni Malinen [Sun, 29 Jan 2012 17:53:34 +0000 (19:53 +0200)] 
nl80211: Sync with linux/nl80211.h in wireless-testing.git

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agowpa_auth: Fix race in rejecting 4-way handshake for entropy
Nicolas Cavallari [Sun, 29 Jan 2012 16:11:43 +0000 (18:11 +0200)] 
wpa_auth: Fix race in rejecting 4-way handshake for entropy

When there is not enough entropy and there are two station associating
at the same time, one of the stations will be rejected, but during
that rejection, the "reject_4way_hs_for_entropy" flag gets cleared. This
may allow the second station to avoid rejection and complete a 4-Way
Handshake with a GTK that will be cleared as soon as more entropy is
available and another station connects.

This reworks the logic to ban all 4-way handshakes until enough entropy
is available.

Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>

12 years agoSME: Fix processing of Authentication timeout and failure
Eyal Shapira [Sun, 29 Jan 2012 15:44:31 +0000 (17:44 +0200)] 
SME: Fix processing of Authentication timeout and failure

current_bss and pending_bssid weren't cleaned up so BSS
kept appearing in the scan results even when it was actually gone.
Use wpa_supplicant_mark_disassoc() to cleanup the wpa_s context
instead of just dropping wpa_state back to DISCONNECTED.

Reported-by: Vishal Mahaveer <vishalm@ti.com>
Signed-hostap: Eyal Shapira <eyal@wizery.com>

12 years agoInterleave wildcard and specific SSID scans when max_ssids=1
Eyal Shapira [Sun, 29 Jan 2012 15:39:08 +0000 (17:39 +0200)] 
Interleave wildcard and specific SSID scans when max_ssids=1

For drivers limited to scan a single SSID at a time, this prevents
waiting too long for a wildcard scan in case there are several
scan_ssid networks in the configuration.

Signed-hostap: Eyal Shapira <eyal@wizery.com>

12 years agoInstall only the binaries into BINDIR
Jouni Malinen [Sun, 29 Jan 2012 12:20:41 +0000 (14:20 +0200)] 
Install only the binaries into BINDIR

There is no point in installing *.service files into BINDIR.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agobuild: Fix install target parent directory prerequisites
Grant Erickson [Sun, 29 Jan 2012 12:18:22 +0000 (14:18 +0200)] 
build: Fix install target parent directory prerequisites

This changes the install target such that parent directories of
installed paths area created and each path is only installed
on a dependency basis.

Signed-off-by: Grant Erickson <marathon96@gmail.com>
12 years agodbus: Remove unused D-Bus version defines
Jouni Malinen [Sun, 29 Jan 2012 10:53:12 +0000 (12:53 +0200)] 
dbus: Remove unused D-Bus version defines

These have not been used since commit
8ddef94bd41747ba658ed4ed5dfa9e62b4b84cfa.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agonl80211: Subscribe management frames for WPA_IF_AP_BSS types
Yogesh Ashok Powar [Sun, 29 Jan 2012 10:33:05 +0000 (12:33 +0200)] 
nl80211: Subscribe management frames for WPA_IF_AP_BSS types

In multiple BSSes scenario for the drivers that do not use
monitor interface and do not implement AP SME, RX MGMT
frame subscription happens only for the default bss (first_bss).

Subscribe for RX MGMT frames for such BSSes.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
12 years agonl80211: Derive frequency for BSSes other than the first
Yogesh Ashok Powar [Sun, 29 Jan 2012 10:28:35 +0000 (12:28 +0200)] 
nl80211: Derive frequency for BSSes other than the first

Commit e4fb21676972952b5434e8c2a049e239d457abe6 moved frequency
storage from driver struct to bss struct and is assigned in
wpa_driver_nl80211_set_freq. As this wpa_driver_nl80211_set_freq is
triggered only on the first_bss, bss->freq for other BSSes is never
being set to the correct value. This sends MLME frames on frequency zero
(initialized value of freq) for BSSes other than the first.

To fix this derive frequency value from first_bss.

Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com>
12 years agoIBSS RSN: Provide ibss_rsn_get_peer() helper function
Antonio Quartulli [Sun, 29 Jan 2012 10:23:27 +0000 (12:23 +0200)] 
IBSS RSN: Provide ibss_rsn_get_peer() helper function

This is a useful function that simplifies some code and can eventually
be used somewhere else in future.

Signed-hostap: Antonio Quartulli <ordex@autistici.org>

12 years agowpa_debug: Support outputting hexdumps into syslog
Nicolas Cavallari [Sun, 29 Jan 2012 10:13:43 +0000 (12:13 +0200)] 
wpa_debug: Support outputting hexdumps into syslog

This patch allows to log hexdumps into syslog.

This is useful when testing, as syslog's network logging
helps to collect debug outputs from several machines.

Signed-hostapd: Nicolas Cavallari <cavallar@lri.fr>

12 years agoEAP-AKA peer: Append realm when learning the pseudonym
Simon Baatz [Sat, 28 Jan 2012 17:41:19 +0000 (19:41 +0200)] 
EAP-AKA peer: Append realm when learning the pseudonym

The pseudonym identity should use a realm in environments where a realm is
used. Thus, the realm of the permanent identity is added to the pseudonym
username sent by the server.

Signed-hostap: Simon Baatz <gmbnomis@gmail.com>

12 years agoEAP-SIM peer: Append realm when learning the pseudonym
Simon Baatz [Sat, 28 Jan 2012 17:38:46 +0000 (19:38 +0200)] 
EAP-SIM peer: Append realm when learning the pseudonym

The pseudonym identity should use a realm in environments where a realm is
used. Thus, the realm of the permanent identity is added to the pseudonym
username sent by the server.

Signed-hostap: Simon Baatz <gmbnomis@gmail.com>

12 years agodbus: Fix endianness bug in Frequency and Signal properties
Sylvestre Gallon [Sat, 28 Jan 2012 15:57:48 +0000 (17:57 +0200)] 
dbus: Fix endianness bug in Frequency and Signal properties

These properties did not work on big endian PowerPC (always 100% for
Signal and 0 for Frequency) due to endianness problem (u32 to u16 data
loss).

Signed-off-by: Sylvestre Gallon <ccna.syl@gmail.com>
12 years agoRename systemd template files to avoid @ in the file name
Jouni Malinen [Sat, 28 Jan 2012 15:12:30 +0000 (17:12 +0200)] 
Rename systemd template files to avoid @ in the file name

Perforce does not like @ in the file name and since these template files
do not really need to have that in the name, make the files in
repository friendlier to Perforce. The generated *.service file will
maintain their old names.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agonl80211: Add IBSS BSSID fixing support
Nicolas Cavallari [Sat, 28 Jan 2012 09:35:32 +0000 (11:35 +0200)] 
nl80211: Add IBSS BSSID fixing support

If a BSSID and fixed-bssid are requested, fix the BSSID, so
the driver does not attempt to merge.

Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>

12 years agoSupport fixing the BSSID in IBSS mode
Nicolas Cavallari [Sat, 28 Jan 2012 09:33:47 +0000 (11:33 +0200)] 
Support fixing the BSSID in IBSS mode

When the "bssid=" option is set for an IBSS network and ap_scan = 2,
ask the driver to fix this BSSID, if possible.

Previously, any "bssid=" option were ignored in IBSS mode when ap_scan=2.

Signed-hostap: Nicolas Cavallari <cavallar@lri.fr>

12 years agodbus: Create DBus getter/setter for FastReauth
Paul Stewart [Sat, 28 Jan 2012 09:21:37 +0000 (11:21 +0200)] 
dbus: Create DBus getter/setter for FastReauth

Provide a means over DBus to set the conf->fast_reauth
property, which controls whether TLS session resumption
should be attempted for EAP-TLS 802.1X networks.

Signed-off-by: Paul Stewart <pstew@chromium.org>
12 years agoWPS: Fix an interoperability issue with mixed mode and AP Settings
Jouni Malinen [Fri, 27 Jan 2012 20:32:15 +0000 (22:32 +0200)] 
WPS: Fix an interoperability issue with mixed mode and AP Settings

It looks like Windows 7 WPS implementation does not like multiple
Authentication/Encryption Type bits to be set in M7 AP Settings
attributes, i.e., it refused to add a network profile if the AP
was configured for WPA/WPA2 mixed mode and AP PIN was used to
enroll the network.

Leave only a single bit set in the Authentication/Encryption Type
attributes in M7 when the AP is acting as an Enrollee to avoid this
issue.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Fix WSC IE inclusion for P2P disabled case
Jouni Malinen [Fri, 27 Jan 2012 19:09:34 +0000 (21:09 +0200)] 
P2P: Fix WSC IE inclusion for P2P disabled case

wpas_wps_in_use() was forcing WPS to be enabled unconditionally if P2P
support was included in the build. This is not really the correct
behavior for the case when P2P has been disabled at runtime. Change the
code here to verify runtime configuration of P2P before forcing WPS to
be enabled. This allows WSC IE to be left out from Probe Request frames
when scanning for APs without P2P or WPS being in use.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agonl80211: Fix send_action on off-channel in P2P GO role
Jouni Malinen [Thu, 26 Jan 2012 15:44:11 +0000 (17:44 +0200)] 
nl80211: Fix send_action on off-channel in P2P GO role

A P2P Action frame may need to be sent on another channel than the GO's
operating channel. This information was lost in
wpa_driver_nl80211_send_action() in the case the interface was in AP
mode. Pass the frequence and related parameters to send_mlme mechanism
to allow the correct frequence to be used with the send frame command in
AP (P2P GO) mode.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoFix ap_sta_disconnect() to clear EAPOL/WPA authenticator state
Jouni Malinen [Wed, 25 Jan 2012 20:32:58 +0000 (22:32 +0200)] 
Fix ap_sta_disconnect() to clear EAPOL/WPA authenticator state

Number of places in hostapd use ap_sta_disconnect() instead of
ap_sta_disassociate() or ap_sta_deauthenticate(). There are some
differences between these functions, e.g., in the area how quickly
the EAPOL state machines get deinitialized. This can result in
somewhat unexpected events since the EAPOL/WPA authenticator
state machines could remain running after deauthentication.

Address this by forcing EAPOL/WPA authenticator state machines
to disabled state whenever ap_sta_disconnect() is called instead
of waiting for the deauthentication callback or other timeout
to clear the STA.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agopcsc: Fix compiler warning on signed vs. unsigned comparison
Jouni Malinen [Wed, 25 Jan 2012 15:41:59 +0000 (17:41 +0200)] 
pcsc: Fix compiler warning on signed vs. unsigned comparison

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoP2P: Do not expire peer entry if we are connected to the peer
Jouni Malinen [Wed, 25 Jan 2012 15:27:47 +0000 (17:27 +0200)] 
P2P: Do not expire peer entry if we are connected to the peer

Even though we may not update P2P peer entry while connected to the
peer as a P2P client, we should not be expiring a P2P peer entry while
that peer is the GO in a group where we are connected as a P2P client.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoP2P: Do not expire peer entry if peer is connected as a client
Jouni Malinen [Wed, 25 Jan 2012 15:00:59 +0000 (17:00 +0200)] 
P2P: Do not expire peer entry if peer is connected as a client

Even though we may not receive a Probe Response from the peer during
the connection, we should not be expiring a P2P peer entry while that
peer is connected to a group where we are the GO.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agonl80211: P2P: Pass cookie parameter in send action frame
Deepthi Gowri [Mon, 23 Jan 2012 18:12:06 +0000 (20:12 +0200)] 
nl80211: P2P: Pass cookie parameter in send action frame

The cookie value needs to be fetched in GO mode, too, to be able to
indicate TX status callbacks with drivers that handle AP mode SME
functionality internally. This fixes issues with client discoverability
where TX status callback for GO Discoverability Request is needed to
trigger the GO to send Device Discoverability Response.

12 years agoStop sched_scan in number of cases where it should not be running
Jouni Malinen [Mon, 23 Jan 2012 16:26:09 +0000 (18:26 +0200)] 
Stop sched_scan in number of cases where it should not be running

When a P2P group is removed, we better not leave possibly started
sched_scan running. This could happen when a separate group interface
was not used.

In addition, it looks safer to explicitly stop sched_scan before
starting P2P Listen or Find operations to make sure the offloaded
scanning is not running when doing similar P2P operations.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoUpdate WPA/RSN IE properly for driver based BSS selection
Sujith Manoharan [Mon, 23 Jan 2012 15:34:39 +0000 (17:34 +0200)] 
Update WPA/RSN IE properly for driver based BSS selection

This patch fixes an issue with roaming for drivers that set
WPA_DRIVER_FLAGS_BSS_SELECTION (currently ath6kl). On moving to an AP
with a different BSSID, an EVENT_ASSOC is received and the subsequent
4-way handshake may fail because of a mismatch between the RSN IE in
message 3/4 and in Beacon/Probe Response. This happens only when the APs
use different RSN IE contents and ap_scan is set to 1, since
wpa_supplicant fails to update its cached IEs.

Initial association may fail, too, in case of multiple APs with
the same SSID, since BSSID selection is done by the driver and again
a mismatch could be seen.

Fix these two issues by clearing and updating the cached IEs on
receiving an Association event from the driver. Also, retrieve the
scan results when the new BSS information is not present locally.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
12 years agoAdd preliminary MNC length determination based on IMSI
Jouni Malinen [Sun, 22 Jan 2012 19:33:57 +0000 (21:33 +0200)] 
Add preliminary MNC length determination based on IMSI

Some SIM cards do not include MNC length with in EF_AD. Try to figure
out the MNC length based on the MCC/MNC values in the beginning of the
IMSI. This covers a prepaid Elisa/Kolumbus card that would have ended
up using incorrect MNC length based on the 3-digit default.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoAvoid unnecessary memory allocation in building of SIM realm
Jouni Malinen [Sun, 22 Jan 2012 19:29:35 +0000 (21:29 +0200)] 
Avoid unnecessary memory allocation in building of SIM realm

The temporary IMSI buffer can be used for this without needing the
extra memory allocation. In addition, the implementation is easier
to understand when the extra identity prefix value for EAP-SIM/AKA
is not included while fetching MCC/MNC from the IMSI.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoEAP-SIM/EAP-AKA peer: Support realms according to 3GPP TS 23.003
Simon Baatz [Sun, 22 Jan 2012 19:11:24 +0000 (21:11 +0200)] 
EAP-SIM/EAP-AKA peer: Support realms according to 3GPP TS 23.003

If the identity is derived from the SIM, use a realm according
to 3GPP TS 23.003.

Signed-hostap: Simon Baatz <gmbnomis@gmail.com>

12 years agoReject too short IMSI in EAP-SIM/AKA identity generation
Jouni Malinen [Sun, 22 Jan 2012 19:12:51 +0000 (21:12 +0200)] 
Reject too short IMSI in EAP-SIM/AKA identity generation

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoeapol_test: Show MNC length in debug output
Jouni Malinen [Sun, 22 Jan 2012 18:59:00 +0000 (20:59 +0200)] 
eapol_test: Show MNC length in debug output

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoSIM/USIM: Add function to get the MNC length from the SIM/USIM
Simon Baatz [Sun, 22 Jan 2012 17:28:24 +0000 (19:28 +0200)] 
SIM/USIM: Add function to get the MNC length from the SIM/USIM

The EF-AD (administrative data) file may contain information about the
length of the MNC (2 or 3 digits) in the IMSI. This can be used to
construct the realm according to 3GPP TS 23.003 during EAP-SIM or
EAP-AKA authentication.

Signed-hostap: Simon Baatz <gmbnomis@gmail.com>

12 years agoP2P: Notify upper framework on stopping the p2p_find(SEARCH)
Jithu Jance [Sun, 22 Jan 2012 15:20:53 +0000 (17:20 +0200)] 
P2P: Notify upper framework on stopping the p2p_find(SEARCH)

This patch notifies the upper framework that an on-going discovery has
been stopped. This is useful in cases where a p2p_find with a timeout
value initiated by the upper framework has been finished or when the
framework initiated "p2p_find" is stopped by a "p2p_connect".

Signed-hostap: Jithu Jance <jithu@broadcom.com>

12 years agoWork around interop issue with WPA type EAPOL-Key 4/4 in WPA2 mode
Jouni Malinen [Sun, 22 Jan 2012 10:23:28 +0000 (12:23 +0200)] 
Work around interop issue with WPA type EAPOL-Key 4/4 in WPA2 mode

Some deployed station implementations seem to send msg 4/4 with
incorrect type value in WPA2 mode. Add a workaround to ignore that issue
so that such stations can interoperate with hostapd authenticator. The
validation checks were added in commit
f8e96eb6fd960a017793942cff0eb43b09f444c6.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agodbus: Validate SSID length in new D-Bus scan request
Sam Leffler [Sun, 22 Jan 2012 10:00:44 +0000 (12:00 +0200)] 
dbus: Validate SSID length in new D-Bus scan request

Validate the length of each SSID passed in a new D-Bus protocol
Scan request.

12 years agoP2P: Use Device ID attribute to filter Probe Request frames as GO
Jouni Malinen [Sun, 8 Jan 2012 17:35:33 +0000 (09:35 -0800)] 
P2P: Use Device ID attribute to filter Probe Request frames as GO

The Device ID attribute was already used in Listen state, but it was
ignored in GO role. Verify that there is a match with Device ID in
GO rule, too, before replying to the Probe Request frame.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoP2P: Allow Device ID to be specified for p2p_find command
Jouni Malinen [Sun, 8 Jan 2012 17:25:29 +0000 (09:25 -0800)] 
P2P: Allow Device ID to be specified for p2p_find command

dev_id=<P2P Device Addr> can now be specified as an argument to
p2p_find to request P2P find for a specific P2P device.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoAllow SNonce update after sending EAPOL-Key 3/4 if 1/4 was retransmitted
Jouni Malinen [Mon, 2 Jan 2012 20:36:11 +0000 (22:36 +0200)] 
Allow SNonce update after sending EAPOL-Key 3/4 if 1/4 was retransmitted

Some supplicant implementations (e.g., Windows XP WZC) update SNonce for
each EAPOL-Key 2/4. This breaks the workaround on accepting any of the
pending requests, so allow the SNonce to be updated even if we have
already sent out EAPOL-Key 3/4.

While the issue was made less likely to occur when the retransmit
timeout for the initial EAPOL-Key msg 1/4 was increased to 1000 ms,
this fixes the problem even if that timeout is not long enough.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoDo not disconnect STA based on inactivity on driver failure
Jouni Malinen [Mon, 2 Jan 2012 19:27:06 +0000 (21:27 +0200)] 
Do not disconnect STA based on inactivity on driver failure

Now that we can use driver_nl80211.c with non-mac80211 drivers that
implement SME/MLME internally, we may not get inactivity time from the
driver. If that is the case, we need to skip disconnection based on
maximum inactivity timeout. This fixes some unexpected disconnection
cases with ath6kl in AP mode.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

12 years agoRemove test-https on "make clean"
Jouni Malinen [Sun, 1 Jan 2012 17:09:18 +0000 (19:09 +0200)] 
Remove test-https on "make clean"

This is not included in the TESTS list, but should be removed anyway.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoUpdate copyright notices to include year 2012
Jouni Malinen [Sun, 1 Jan 2012 16:59:16 +0000 (18:59 +0200)] 
Update copyright notices to include year 2012

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoDo not trigger fast reconnection on locally generated deauth/disassoc
Jouni Malinen [Sun, 1 Jan 2012 16:53:12 +0000 (18:53 +0200)] 
Do not trigger fast reconnection on locally generated deauth/disassoc

The deauthentication and disassociation events from nl80211 were being
processed identically regardless of whether the frame was generated by
the local STA or the AP. This resulted in fast reconnection mechanism
getting triggered even in the case where the disconnection was detected
locally (e.g., due to beacon loss) while this was supposed to happen
only in the case where the AP is sending an explicit Deauthentication
or Disassociation frame with a specific reason code.

Fix this by adding a new deauth/disassoc event variable to indicate
whether the event was generated locally.

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agoFix BSS property names in the example D-Bus script
Jouni Malinen [Sun, 1 Jan 2012 16:50:31 +0000 (18:50 +0200)] 
Fix BSS property names in the example D-Bus script

Signed-hostap: Jouni Malinen <j@w1.fi>

12 years agodbus: Fix extra semicolon
Syam Sidhardhan [Sun, 1 Jan 2012 12:39:24 +0000 (14:39 +0200)] 
dbus: Fix extra semicolon

Signed-off-by: Syam Sidhardhan <syamsidhardh@gmail.com>