Browse Source

Fix a compiler warning on WPS-AP-without-UPnP builds

Jouni Malinen 14 years ago
parent
commit
6b98a33c86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ap/wps_hostapd.c

+ 1 - 1
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