]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/events.c
Interworking: Fix last-network preference to not override priority
authorJouni Malinen <jouni@qca.qualcomm.com>
Thu, 27 Feb 2014 11:47:23 +0000 (13:47 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 27 Feb 2014 11:47:23 +0000 (13:47 +0200)
commit7c373ac267c3c1f91c1552c0191d2e42850b7a0c
tree12153dd2c96fde6e1daaa287fbf9061f12d54dac
parent1815317906c8ffb89fc0e5396fef73a21416a950
Interworking: Fix last-network preference to not override priority

Commit 3d910ef497b11e149cf41e772670f7a7fe3a1e19 tried to make
last-network selection behave more consistently with Interworking
network selection preferences. However, it did not take into account
that other network block may have higher priority. In such cases, the
last added network from Interworking network selection should actually
not be selected for the next connection. Fix this by limiting the
last-network preference to work only within a priority class.

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