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:
parent
634aff87b2
commit
f9897d08c5
@ -45,12 +45,6 @@
|
|||||||
|
|
||||||
#include <rtw_wifi_regd.h>
|
#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_CNT (8)
|
||||||
#define RTW_MAX_MGMT_TX_MS_GAS (500)
|
#define RTW_MAX_MGMT_TX_MS_GAS (500)
|
||||||
|
|
||||||
|
@ -19,12 +19,6 @@
|
|||||||
|
|
||||||
#include <rtw_wifi_regd.h>
|
#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[] = {
|
static struct country_code_to_enum_rd allCountries[] = {
|
||||||
{COUNTRY_CODE_USER, "RD"},
|
{COUNTRY_CODE_USER, "RD"},
|
||||||
};
|
};
|
||||||
@ -342,11 +336,11 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
|
|||||||
if (ch)
|
if (ch)
|
||||||
ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS|
|
ch->flags &= ~(IEEE80211_CHAN_DISABLED|IEEE80211_CHAN_NO_HT40PLUS|
|
||||||
IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_80MHZ|
|
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))
|
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0))
|
||||||
IEEE80211_CHAN_NO_IBSS|IEEE80211_CHAN_PASSIVE_SCAN);
|
IEEE80211_CHAN_NO_IBSS|IEEE80211_CHAN_PASSIVE_SCAN);
|
||||||
#else
|
#else
|
||||||
IEEE80211_CHAN_NO_IR);
|
IEEE80211_CHAN_NO_IR;
|
||||||
#endif
|
#endif
|
||||||
//ch->flags = IEEE80211_CHAN_DISABLED;
|
//ch->flags = IEEE80211_CHAN_DISABLED;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user