1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-26 15:14:02 +00:00

Fix build on older kernels

* Added a kernel check for older kernels, fix compiling. fixes #76
This commit is contained in:
Christian B 2018-03-09 13:38:47 +01:00 committed by GitHub
parent c22c24ed0c
commit 06d23f2287
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1750,6 +1750,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;
@ -1765,6 +1766,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
} }