From b5d77e961fa78b71f4a5d03277ca6c26200551f6 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Mon, 24 Jan 2022 14:35:58 +0800 Subject: [PATCH] mxm_wifiex: fix the 17299.p1 wifi driver build warning Signed-off-by: Sherry Sun Approved-by: Tian Yang --- mxm_wifiex/wlan_src/Makefile | 1 + mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/mxm_wifiex/wlan_src/Makefile b/mxm_wifiex/wlan_src/Makefile index 52e850f..c123236 100644 --- a/mxm_wifiex/wlan_src/Makefile +++ b/mxm_wifiex/wlan_src/Makefile @@ -342,6 +342,7 @@ endif #ccflags-y += -Wstringop-truncation #ccflags-y += -Wmisleading-indentation #ccflags-y += -Wunused-const-variable +ccflags-y += -Wno-stringop-truncation ############################################################################# # Make Targets ############################################################################# diff --git a/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c b/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c index e0edf88..38b16d9 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_cfg80211_util.c @@ -2772,7 +2772,6 @@ static int woal_cfg80211_subcmd_link_statistic_get(struct wiphy *wiphy, t_u32 num_radio = 0, iface_stat_len = 0, radio_stat_len = 0; int err = -1, length = 0, i; char *ioctl_link_stats_buf = NULL; - mlan_ds_get_stats stats; t_u64 cur_time = 0; t_u64 inter_msec = 0; t_u64 max_msec = (t_u64)24 * (t_u64)24 * (t_u64)3600 * (t_u64)1000;