Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error building on kernel 4.12 and newer. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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