summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wachowski <mattwach@google.com>2018-08-09 19:48:44 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2018-08-09 19:48:44 +0000
commit4bb7aab6d191052e075e402229b3ad671febc028 (patch)
tree157ddc3cff5644012b9ab29ff85e70569b600030
parent04dc00fc98a3c285ac8af61980d493661574219c (diff)
parent27583a2c7c1b1fcadb8421ea807df0715465b650 (diff)
downloadandroid_device_generic_goldfish-4bb7aab6d191052e075e402229b3ad671febc028.tar.gz
android_device_generic_goldfish-4bb7aab6d191052e075e402229b3ad671febc028.tar.bz2
android_device_generic_goldfish-4bb7aab6d191052e075e402229b3ad671febc028.zip
Merge "Cleanup some compiler warnings in driver_cmd_nl80211.c." into pi-dev
-rw-r--r--wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c25
1 files changed, 18 insertions, 7 deletions
diff --git a/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
index 7cf4468..9589e85 100644
--- a/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
+++ b/wifi/wpa_supplicant_8_lib/driver_cmd_nl80211.c
@@ -43,8 +43,6 @@ int wpa_driver_nl80211_driver_cmd(
void* priv, char* cmd, char* buf, size_t buf_len) {
struct i802_bss* bss = priv;
struct wpa_driver_nl80211_data* drv = bss->drv;
- struct ifreq ifr;
- android_wifi_priv_cmd priv_cmd;
int ret = 0;
D("%s: called", __FUNCTION__);
@@ -70,27 +68,40 @@ int wpa_driver_nl80211_driver_cmd(
}
-int wpa_driver_set_p2p_noa(void* priv, u8 count, int start, int duration) {
+int wpa_driver_set_p2p_noa(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) u8 count,
+ __attribute__((__unused__)) int start,
+ __attribute__((__unused__)) int duration) {
D("%s: called", __FUNCTION__);
return 0;
}
-int wpa_driver_get_p2p_noa(void* priv, u8* buf, size_t len) {
+int wpa_driver_get_p2p_noa(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) u8* buf,
+ __attribute__((__unused__)) size_t len) {
D("%s: called", __FUNCTION__);
return 0;
}
-int wpa_driver_set_p2p_ps(void* priv, int legacy_ps, int opp_ps, int ctwindow) {
+int wpa_driver_set_p2p_ps(
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) int legacy_ps,
+ __attribute__((__unused__)) int opp_ps,
+ __attribute__((__unused__)) int ctwindow) {
D("%s: called", __FUNCTION__);
return -1;
}
int wpa_driver_set_ap_wps_p2p_ie(
- void* priv, const struct wpabuf* beacon,
- const struct wpabuf* proberesp, const struct wpabuf* assocresp) {
+ __attribute__((__unused__)) void* priv,
+ __attribute__((__unused__)) const struct wpabuf* beacon,
+ __attribute__((__unused__)) const struct wpabuf* proberesp,
+ __attribute__((__unused__)) const struct wpabuf* assocresp) {
D("%s: called", __FUNCTION__);
return 0;
}