]> git.ipfire.org Git - thirdparty/hostap.git/commit
Interworking: Fix already-connected check to verify network priority
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Feb 2014 12:06:23 +0000 (14:06 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Feb 2014 12:06:23 +0000 (14:06 +0200)
commitb7fb98f0728934467fced4d41af08343574dde3f
tree69966f26b5b5263e559ed90d926fa9cc15476598
parent7c373ac267c3c1f91c1552c0191d2e42850b7a0c
Interworking: Fix already-connected check to verify network priority

Commit d28f4e44f10a8549d969e5434f7d4d16f462dfcc optimized Interworking
network selection in a case where the operation is run while already
connected to the selected network by skipping the reconnection. However,
this did not take into account that a higher priority network may have
shown up in the new scan results.

Fix this by checking whether network selection based on the latest scan
results (the ones from the interworking_select operation) would result
in a network with higher priority being selected. If so, skip the
optimization and force normal network connection (which will select this
newly found higher priority network). This fixes cases where a
non-Hotspot 2.0 network with higher priority (e.g., home network) shows
up while connected to a Hotspot 2.0 network with lower priority.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/interworking.c