From 08e6a8304992ff746721b26b69af4a72f22b2f53 Mon Sep 17 00:00:00 2001 From: Carlos Garces Date: Sat, 13 Apr 2019 17:14:41 +0200 Subject: [PATCH] Fix compilation error on kernels < 3.20 --- os_dep/linux/ioctl_cfg80211.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index f70eae2..36c278a 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -1996,7 +1996,8 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy, sinfo->tx_failed = psta->sta_stats.tx_fail_cnt; sinfo->filled |= STATION_INFO_BSS_PARAM; - + +#if defined (LINUX_VERSION_CODE) && (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)) if (!psta->no_short_preamble_set) sinfo->bss_param.flags |= STATION_INFO_BSS_PARAM_SHORT_PREAMBLE; @@ -2012,7 +2013,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy, sinfo->bss_param.dtim_period = pwrctl->dtim; sinfo->bss_param.beacon_interval = get_beacon_interval(&cur_network->network); - +#endif } /* for Ad-Hoc/AP mode */