aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasashi Honma <honma@ictec.co.jp>2010-08-20 06:44:50 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-05 14:30:28 (GMT)
commit1b91b7290fe45967899c251a97def9a88e026778 (patch)
treed96b3282f8ffe42f27fcc852bad2aa85660eac79
parent00e7af47351256eadc1bf84a407f9872d6bcc9c6 (diff)
downloadhostap-07-1b91b7290fe45967899c251a97def9a88e026778.zip
hostap-07-1b91b7290fe45967899c251a97def9a88e026778.tar.gz
hostap-07-1b91b7290fe45967899c251a97def9a88e026778.tar.bz2
WPS: Fix unused variable warning
The wpa_supplicant compilation without CONFIG_WPS option results in messages below. scan.c: In function 'wpa_supplicant_scan': scan.c:246: warning: unused variable 'wps' This trivial patch erases this warning. (cherry picked from commit 509a39727f533a5592a5a899b0096f268e7e502a)
-rw-r--r--wpa_supplicant/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index ac7fd89..edc8c83 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -243,8 +243,8 @@ static void wpa_supplicant_scan(void *eloop_ctx, void *timeout_ctx)
struct wpa_ssid *ssid;
int scan_req = 0, ret;
struct wpabuf *wps_ie = NULL;
- int wps = 0;
#ifdef CONFIG_WPS
+ int wps = 0;
enum wps_request_type req_type = WPS_REQ_ENROLLEE_INFO;
#endif /* CONFIG_WPS */
struct wpa_driver_scan_params params;