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 build error under Linux 4.10 #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# rtl8811au driver for recent version of ubuntu
# Realtek RTL8811AU driver for recent version of ubuntu

This repo contains a driver originally called `rtl8821AU_linux_v4.3.14_13455.20150212_BTCOEX20150128-51` with additional patches to get it to build on Ubuntu xenial 16.04.

I originally got the source code off a cd that came with [this usb wifi adapter](https://www.amazon.com/Heiyo-Network-600Mbps-802-11ac-Wireless/dp/B01N2NJFPG).

I tested on Ubuntu 16.04.2 LTS with kernel 4.4.0-64-generic using a "Heiyo Network Wi-Fi Dongle 802.11ac"
This driver have been tested on:

* Ubuntu 16.04.2 LTS with kernel 4.4.0-64-generic using a "Heiyo Network Wi-Fi Dongle 802.11ac"
* Ubuntu 16.04.2 LTS with kernel 4.10.0-32-generic using a "NetGear, Inc. A6100 AC600 DB Wireless Adapter"

## Building

```
sudo make clean
make -j 8
Expand Down
5 changes: 5 additions & 0 deletions include/drv_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -1171,5 +1171,10 @@ __inline static u8 *myid(struct eeprom_priv *peepriv)
#include <pci_hal.h>
#endif

static inline bool is_compat_task(void)
Copy link
Owner

@sloretz sloretz Aug 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On kernel 4.4 I get a build error complaining about this function being redefined. Looks like kernel 4.10 has a header with a macro that defines this function. Would you mind changing the patch to remove this function, and add an #include <linux/compat.h> instead?

{
return in_ia32_syscall() || in_x32_syscall();
}

#endif //__DRV_TYPES_H__