scan: Clean up code a bit - phase1 is used in all WPS cases
authorJouni Malinen <j@w1.fi>
Sun, 22 May 2016 14:44:28 +0000 (17:44 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 22 May 2016 14:44:28 +0000 (17:44 +0300)
commit88802405f321d5527f1cf11d219bea3d41e76d1c
tree5f2e16f700dfe24379fce30ccd22724ff3bcea36
parente1ae2876d5851658feb91d0b3616738722edb05c
scan: Clean up code a bit - phase1 is used in all WPS cases

There is no need to have a separate if statement to skip the cases where
phase1 is not set. Just check it with the strstr comparison since this
case is not really used in practice.

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