diff --git a/Makefile b/Makefile index 8cd8c5a..137fbbd 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ EXTRA_CFLAGS += -Wno-unused-variable EXTRA_CFLAGS += -Wno-unused-label #EXTRA_CFLAGS += -Wno-unused-parameter EXTRA_CFLAGS += -Wno-unused-function -EXTRA_CFLAGS += -Wimplicit-fallthrough=0 +EXTRA_CFLAGS += -Wno-implicit-fallthrough #EXTRA_CFLAGS += -Wno-parentheses-equality #EXTRA_CFLAGS += -Wno-pointer-bool-conversion EXTRA_CFLAGS += -Wno-unknown-pragmas diff --git a/os_dep/linux/ioctl_cfg80211.c b/os_dep/linux/ioctl_cfg80211.c index e9f4ba9..ca7b7dc 100644 --- a/os_dep/linux/ioctl_cfg80211.c +++ b/os_dep/linux/ioctl_cfg80211.c @@ -2333,6 +2333,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy, 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; @@ -2348,6 +2349,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 }