From 6b98a33c86159812a324e7c6cb3c237c4dae3293 Mon Sep 17 00:00:00 2001
From: Jouni Malinen <jouni.malinen@atheros.com>
Date: Tue, 31 May 2011 20:11:25 +0300
Subject: [PATCH] Fix a compiler warning on WPS-AP-without-UPnP builds

---
 src/ap/wps_hostapd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c
index fc927f98f..640e8cd56 100644
--- a/src/ap/wps_hostapd.c
+++ b/src/ap/wps_hostapd.c
@@ -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