diff options
author | Srinivas Girigowda <sgirigow@codeaurora.org> | 2016-07-01 12:05:22 -0700 |
---|---|---|
committer | Kumar Anand <kumaranand@google.com> | 2016-07-15 16:37:33 -0700 |
commit | 0919dfde526ab1f2996334835cbd176906e89d0e (patch) | |
tree | f0131ea6b3f87f14a48ef603300af8eb1f4547e3 /qcwcn/wpa_supplicant_8_lib | |
parent | d61feef589f6f3bd8840a61129d6da2e5c020577 (diff) | |
download | wlan-0919dfde526ab1f2996334835cbd176906e89d0e.tar.gz |
WiFi-HAL: Fix CLANG warnings
Fix CLANG warnings.
Change-Id: If07194f34abc44e1e58e8b38af59ec705a62ce55
CRs-Fixed: 1015162
Bug: 28825972
Diffstat (limited to 'qcwcn/wpa_supplicant_8_lib')
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/Android.mk | 2 | ||||
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 15 |
2 files changed, 5 insertions, 12 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/Android.mk b/qcwcn/wpa_supplicant_8_lib/Android.mk index 85d01ca..a573141 100644 --- a/qcwcn/wpa_supplicant_8_lib/Android.mk +++ b/qcwcn/wpa_supplicant_8_lib/Android.mk @@ -57,7 +57,7 @@ endif include $(CLEAR_VARS) LOCAL_MODULE := lib_driver_cmd_qcwcn LOCAL_SHARED_LIBRARIES := libc libcutils -LOCAL_CFLAGS := $(L_CFLAGS) +LOCAL_CFLAGS := $(L_CFLAGS) -Wall LOCAL_SRC_FILES := $(WPA_SRC_FILE) LOCAL_C_INCLUDES := $(WPA_SUPPL_DIR_INCLUDE) include $(BUILD_STATIC_LIBRARY) diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index a82b980..c5d1c93 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -26,6 +26,7 @@ #define WPA_PS_ENABLED 0 #define WPA_PS_DISABLED 1 +#define UNUSED(x) (void)(x) /* Return type for setBand*/ @@ -42,15 +43,6 @@ typedef struct android_wifi_priv_cmd { static int drv_errors = 0; -static void wpa_driver_send_hang_msg(struct wpa_driver_nl80211_data *drv) -{ - drv_errors++; - if (drv_errors > DRV_NUMBER_SEQUENTIAL_ERRORS) { - drv_errors = 0; - wpa_msg(drv->ctx, MSG_INFO, WPA_EVENT_DRIVER_STATE "HANGED"); - } -} - static void wpa_driver_notify_country_change(void *ctx, char *cmd) { if ((os_strncasecmp(cmd, "COUNTRY", 7) == 0) || @@ -134,7 +126,7 @@ int wpa_driver_nl80211_driver_cmd(void *priv, char *cmd, char *buf, } } else - wpa_printf(MSG_DEBUG, "%s %s len = %d, %lu", __func__, buf, ret, buf_len); + wpa_printf(MSG_DEBUG, "%s %s len = %d, %zu", __func__, buf, ret, buf_len); wpa_driver_notify_country_change(drv->ctx, cmd); } } @@ -153,6 +145,7 @@ int wpa_driver_set_p2p_noa(void *priv, u8 count, int start, int duration) int wpa_driver_get_p2p_noa(void *priv, u8 *buf, size_t len) { + UNUSED(priv), UNUSED(buf), UNUSED(len); /* Return 0 till we handle p2p_presence request completely in the driver */ return 0; } @@ -171,6 +164,6 @@ int wpa_driver_set_ap_wps_p2p_ie(void *priv, const struct wpabuf *beacon, const struct wpabuf *proberesp, const struct wpabuf *assocresp) { - + UNUSED(priv), UNUSED(beacon), UNUSED(proberesp), UNUSED(assocresp); return 0; } |