diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2021-12-12 23:45:09 -0800 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2021-12-12 23:45:09 -0800 |
commit | c7ad73c8f680f2d737d736ab80924fa64ff454b4 (patch) | |
tree | 16e3f72b41f0ca546f27cb93e164c03e44391352 | |
parent | b930d47c5cb60606710c97708b78b2ed51f3f187 (diff) | |
parent | be97bb60f6238eaa0f339277a6e3a719c0aafdee (diff) |
Change-Id: I75171475d60ec869f4cb98452c4e6cc7cb4ecc43
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/Android.mk | 4 | ||||
-rw-r--r-- | qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/qcwcn/wpa_supplicant_8_lib/Android.mk b/qcwcn/wpa_supplicant_8_lib/Android.mk index e33f9cc..1d21546 100644 --- a/qcwcn/wpa_supplicant_8_lib/Android.mk +++ b/qcwcn/wpa_supplicant_8_lib/Android.mk @@ -54,6 +54,10 @@ ifdef CONFIG_P2P L_CFLAGS += -DCONFIG_P2P endif +ifneq ( ,$(filter S 12, $(PLATFORM_VERSION))) +L_CFLAGS += -DCONFIG_ANDROID_S +endif + L_CFLAGS += -Werror ######################## diff --git a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c index 48538ff..949ba91 100644 --- a/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c +++ b/qcwcn/wpa_supplicant_8_lib/driver_cmd_nl80211.c @@ -95,7 +95,11 @@ static int wpa_driver_cmd_set_ani_level(struct i802_bss *bss, int mode, int ofdm } } nla_nest_end(msg, params); +#ifndef CONFIG_ANDROID_S ret = send_and_recv_msgs(drv, msg, NULL, NULL); +#else + ret = send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL); +#endif if (!ret) return 0; wpa_printf(MSG_ERROR, "%s: Failed set_ani_level, ofdmlvl=%d, ret=%d", @@ -152,7 +156,11 @@ static int wpa_driver_cmd_set_congestion_report(struct i802_bss *bss, char *cmd) } } nla_nest_end(msg, params); +#ifndef CONFIG_ANDROID_S ret = send_and_recv_msgs(drv, msg, NULL, NULL); +#else + ret = send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL); +#endif wpa_printf(MSG_INFO, "%s: set congestion report: enable=%d, threshold=%d," "interval=%d", __FUNCTION__, enable, threshold, interval); if (!ret) @@ -190,7 +198,11 @@ static int wpa_driver_cmd_set_tx_power(struct i802_bss *bss, char *cmd) return -ENOBUFS; } +#ifndef CONFIG_ANDROID_S ret = send_and_recv_msgs(drv, msg, NULL, NULL); +#else + ret = send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL); +#endif if (!ret) return 0; @@ -1986,7 +1998,11 @@ static int wpa_driver_cmd_get_thermal_info(struct i802_bss *bss, int *result, in } nla_nest_end(msg, params); +#ifndef CONFIG_ANDROID_S ret = send_and_recv_msgs(drv, msg, thermal_info_handler, result); +#else + ret = send_and_recv_msgs(drv, msg, thermal_info_handler, result, NULL, NULL); +#endif if (!ret) return 0; wpa_printf(MSG_ERROR, "%s: Failed get thermal info, ret=%d(%s)", |