Fix for kernel v3.20

This commit is contained in:
kimocoder 2021-12-12 22:40:54 +01:00
parent a72835df07
commit 3a6402e9e7
2 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@ EXTRA_CFLAGS += -Wno-unused-variable
EXTRA_CFLAGS += -Wno-unused-label EXTRA_CFLAGS += -Wno-unused-label
#EXTRA_CFLAGS += -Wno-unused-parameter #EXTRA_CFLAGS += -Wno-unused-parameter
EXTRA_CFLAGS += -Wno-unused-function EXTRA_CFLAGS += -Wno-unused-function
EXTRA_CFLAGS += -Wimplicit-fallthrough=0 EXTRA_CFLAGS += -Wno-implicit-fallthrough
#EXTRA_CFLAGS += -Wno-parentheses-equality #EXTRA_CFLAGS += -Wno-parentheses-equality
#EXTRA_CFLAGS += -Wno-pointer-bool-conversion #EXTRA_CFLAGS += -Wno-pointer-bool-conversion
EXTRA_CFLAGS += -Wno-unknown-pragmas EXTRA_CFLAGS += -Wno-unknown-pragmas

View File

@ -2333,6 +2333,7 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy,
sinfo->filled |= STATION_INFO_BSS_PARAM; 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) if (!psta->no_short_preamble_set)
sinfo->bss_param.flags |= STATION_INFO_BSS_PARAM_SHORT_PREAMBLE; 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.dtim_period = pwrctl->dtim;
sinfo->bss_param.beacon_interval = get_beacon_interval(&cur_network->network); sinfo->bss_param.beacon_interval = get_beacon_interval(&cur_network->network);
#endif
} }