WPS: Remove unused Credential AP Channel processing
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 3 Feb 2014 08:54:21 +0000 (10:54 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 4 Feb 2014 11:23:35 +0000 (13:23 +0200)
commit0b5ff2ae12de29445e7a61f94f654f8c7e15c2e6
treea828b8a173ac686568501015a5416580b905c37c
parent1536cb5756d35bc1e1d79600f33fae532fd84e40
WPS: Remove unused Credential AP Channel processing

Commit bd3a3737672aaf6eb50dba2b8caa3941c8df42e9 added a mechanism to use
AP Channel attribute from within a Credential attribute to optimize
scans. However, this design is not actually used with the WPS NFC use
cases. With configuration token, the AP Channel attribute is in the same
container with the Credential attribute (and that was also handled in
the previous implementation). With connection handover, AP Channel
information is outside the Credential attribute as well.

Simplify implementation by removing the AP Channel within Credential
case. This allows wpas_wps_use_cred() to get the AP Channel from the
container instead of having to find this during credential iteration.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps.h
src/wps/wps_attr_process.c
wpa_supplicant/wpa_supplicant_i.h
wpa_supplicant/wps_supplicant.c