Merge pull request #232 from CGarces/centos8_fix

Add RHEL/CENTOS 8 support
This commit is contained in:
Carlos Garcés
2021-04-03 16:52:43 +02:00
committed by GitHub
5 changed files with 120 additions and 114 deletions

View File

@@ -85,6 +85,11 @@
typedef signed int sint;
#ifndef RHEL_RELEASE_CODE
#define RHEL_RELEASE_VERSION(a,b) (((a) << 8) + (b))
#define RHEL_RELEASE_CODE 0
#endif
#ifndef PVOID
typedef void *PVOID;
/* #define PVOID (void *) */

View File

@@ -1033,9 +1033,11 @@ typedef enum _HT_CAP_AMPDU_DENSITY {
* A-PMDU buffer sizes
* According to IEEE802.11n spec size varies from 8K to 64K (in powers of 2)
*/
#define IEEE80211_MIN_AMPDU_BUF 0x8
#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,19,0))
#define IEEE80211_MAX_AMPDU_BUF 0x40
#ifndef IEEE80211_MIN_AMPDU_BUF
#define IEEE80211_MIN_AMPDU_BUF 0x8
#endif
#ifndef IEEE80211_MAX_AMPDU_BUF
#define IEEE80211_MAX_AMPDU_BUF 0x40
#endif
/* Spatial Multiplexing Power Save Modes */