diff options
author | Masashi Honma <honma@ictec.co.jp> | 2010-08-20 09:44:50 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-08-20 09:44:50 +0300 |
commit | 509a39727f533a5592a5a899b0096f268e7e502a (patch) | |
tree | 166eaf96943c84fb025db0139bb62b35aee55220 /wpa_supplicant/scan.c | |
parent | 8cbd92ee2911defeed72f1c12e29124b5afa5cbb (diff) | |
download | external_wpa_supplicant_8_ti-509a39727f533a5592a5a899b0096f268e7e502a.zip external_wpa_supplicant_8_ti-509a39727f533a5592a5a899b0096f268e7e502a.tar.gz external_wpa_supplicant_8_ti-509a39727f533a5592a5a899b0096f268e7e502a.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.
Diffstat (limited to 'wpa_supplicant/scan.c')
-rw-r--r-- | wpa_supplicant/scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c index 513b8ef..bb24995 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; |