WPS: Reject station-mode WPS operations when AP mode is enabled
authorJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 15:09:38 +0000 (17:09 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 2 Jan 2015 20:50:27 +0000 (22:50 +0200)
commitbd47d68035f9efbf272ad13fab22f786fd0746aa
treee4c9445216f613d0e4efdad6dc54217e22749bcd
parentf47a562c73698221c4f78ebcb5efa667ea8dab0d
WPS: Reject station-mode WPS operations when AP mode is enabled

Start of station-mode WPS PBC/PIN/Registrar/NFC operation would result
in the AP mode getting disabled. This can be particularly confusing for
the P2P GO case where the group would need to be stopped cleanly. As
such, it is better to reject these invalid operations rather than trying
to handle all corner cases needed to allow this to work robustly.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/wps_supplicant.c