WPS: Re-fix an interoperability issue with mixed mode and AP Settings
authorJouni Malinen <jouni@qca.qualcomm.com>
Mon, 19 Jan 2015 16:35:59 +0000 (18:35 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 19 Jan 2015 16:35:59 +0000 (18:35 +0200)
commit6b46bfa751a78e8232bfe13f52ad42eb0804c9ad
treefbe675cedc5ecd05a709292ddfc8a8c8f8ab54ae
parent1648cc642711bdb678c8c1d14344b80df2237d6b
WPS: Re-fix an interoperability issue with mixed mode and AP Settings

Commit ce7b56afab8e6065e886b9471fa8071c8d2bd66b ('WPS: Fix an
interoperability issue with mixed mode and AP Settings') added code to
filter M7 Authentication/Encryption Type attributes into a single bit
value in mixed mode (WPA+WPA2) cases to work around issues with Windows
7. This workaround was lost in commit
d7a15d5953beb47964526aa17b4dc2e9b2985fc1 ('WPS: Indicate current AP
settings in M7 in unconfigurated state') that fixed unconfigured state
values in AP Settings, but did not take into account the earlier
workaround for mixed mode.

Re-introduce filtering of Authentication/Encryption Type attributes for
M7 based on the current AP configuration. In other words, merge those
two earlier commits together to include both the earlier workaround the
newer fix.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/wps/wps_enrollee.c