Skip to content

Commit

Permalink
Fix #1 allowing the build on kernel 4.12 and newer.
Browse files Browse the repository at this point in the history
  • Loading branch information
avisiedo committed Nov 11, 2018
1 parent 1f09c7a commit 38ad3c7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rtlwifi/wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#undef pr_fmt
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#include <linux/version.h>
#include <linux/sched.h>
#include <linux/firmware.h>
#include <linux/etherdevice.h>
Expand Down Expand Up @@ -218,6 +219,12 @@ enum rf_tx_num {
#define WOL_REASON_REALWOW_V2_WAKEUPPKT BIT(9)
#define WOL_REASON_REALWOW_V2_ACKLOST BIT(10)


#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
#define RX_FLAG_40MHZ RATE_INFO_BW_40
#define RX_FLAG_HT RX_ENC_HT
#endif

struct rtlwifi_firmware_header {
__le16 signature;
u8 category;
Expand Down

0 comments on commit 38ad3c7

Please sign in to comment.