1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Fix build error + compiler warnings

This commit is contained in:
kimocoder 2019-01-26 01:07:47 +01:00
parent 634aff87b2
commit f9897d08c5
2 changed files with 2 additions and 14 deletions

View File

@ -45,12 +45,6 @@
#include <rtw_wifi_regd.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
#define ieee80211_band nl80211_band
#endif
#define RTW_MAX_MGMT_TX_CNT (8)
#define RTW_MAX_MGMT_TX_MS_GAS (500)

View File

@ -19,12 +19,6 @@
#include <rtw_wifi_regd.h>
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 0))
#define IEEE80211_BAND_2GHZ NL80211_BAND_2GHZ
#define IEEE80211_BAND_5GHZ NL80211_BAND_5GHZ
#define IEEE80211_NUM_BANDS NL80211_NUM_BANDS
#endif
static struct country_code_to_enum_rd allCountries[] = {
{COUNTRY_CODE_USER, "RD"},
};
@ -342,11 +336,11 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
if (ch)
ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS|
IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_80MHZ|
IEEE80211_CHAN_NO_160MHZ|IEEE80211_CHAN_NO_IR);
IEEE80211_CHAN_NO_160MHZ);
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
IEEE80211_CHAN_NO_IBSS|IEEE80211_CHAN_PASSIVE_SCAN);
#else
IEEE80211_CHAN_NO_IR);
IEEE80211_CHAN_NO_IR;
#endif
//ch->flags = IEEE80211_CHAN_DISABLED;
}