Browse Source

Fix compiler warnings for non-WPS build

Jouni Malinen 15 years ago
parent
commit
9c3a2284de
1 changed files with 3 additions and 2 deletions
  1. 3 2
      wpa_supplicant/wps_supplicant.h

+ 3 - 2
wpa_supplicant/wps_supplicant.h

@@ -15,13 +15,14 @@
 #ifndef WPS_SUPPLICANT_H
 #define WPS_SUPPLICANT_H
 
+struct wpa_scan_res;
+
 #ifdef CONFIG_WPS
 
 #include "wps/wps.h"
 #include "wps/wps_defs.h"
 
 struct wpa_bss;
-struct wpa_scan_res;
 
 struct wps_new_ap_settings {
 	const char *ssid_hex;
@@ -96,7 +97,7 @@ static inline int wpas_wps_ssid_wildcard_ok(struct wpa_supplicant *wpa_s,
 }
 
 static inline int wpas_wps_scan_pbc_overlap(struct wpa_supplicant *wpa_s,
-					    struct wpa_scan_res *selected,
+					    struct wpa_bss *selected,
 					    struct wpa_ssid *ssid)
 {
 	return 0;