]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix a compiler warning on WPS-AP-without-UPnP builds
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 31 May 2011 17:11:25 +0000 (20:11 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 31 May 2011 17:11:25 +0000 (20:11 +0300)
src/ap/wps_hostapd.c

index fc927f98f3dca1ad12a333f4b157b6163194cb58..640e8cd568cdfc32c670d515f6e98637fb57e94a 100644 (file)
@@ -890,7 +890,7 @@ int hostapd_init_wps_complete(struct hostapd_data *hapd)
 {
        struct wps_context *wps = hapd->wps;
 
-       if (hapd->wps == NULL)
+       if (wps == NULL)
                return 0;
 
 #ifdef CONFIG_WPS_UPNP