* Removed TYPE parameter in access_ok
Kernel 5.0 removed the TYPE parameter for access_ok, therefore the make will fail. This just literally removes 13 characters from Line 603.
* Allow older kernel versions with 5.0
* rtw-ap: Fix compiler warning.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* makefile: Add entry for compiling against openwrt tree.
Users would need to edit it to match their path, but
this should get them started.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* makefile: Allow defining KSRC outside of build.
So, you can do this:
KSRC=/tmp/my/kernel make
And not have to edit the makefile to have this function as desired.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Fix stack-too-large warning on x86-64 compile
Signed-off-by: Ben Greear <greearb@candelatech.com>
* compile: Allow cross-compiling on cmd-line w/out editing Makefile
For instance:
KSRC=/home/greearb/git/openwrt-neo2-dev/build_dir/target-aarch64_cortex-a53_musl/linux-sunxi_cortexa53/linux-4.14.78 \
EXT_EXTRA_CFLAGS=-DCONFIG_LITTLE_ENDIAN ARCH=arm64 CROSS_COMPILE=aarch64-openwrt-linux- MODDESTDIR=/tmp make V=1
Signed-off-by: Ben Greear <greearb@candelatech.com>
* build: Attempt to auto-detect endian-ness.
Will make building in openwrt much easier.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Fix build against openwrt backports tree.
Like breaks builds elsewhere, can fix it up later.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Register wiphy after we probe MAC addr.
This way the phy object has a valid MAC-addr, which can be helpful
for identification.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Make sure MAC is set in wiphy_preinit
This is needed to make sure the phy registers with a proper MAC
address instead of all 00
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Fix build on 4.19 kernel.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Fix compile against 4.20 kernel.
Remove some variable-length arrays (which could be security bugs,
ways to overflow the stack it seems), and remove use of
get_monotonic_boottime.
Signed-off-by: Ben Greear <greearb@candelatech.com>
* Support arm64
In kernel 4.19, I saw a kernel crash where kfree was trying to free
some garbage pointer. This occurred because this structure wasn't
explicitly initialized to 0.
USB driver gets attached and Wi-Fi adapter is usable. However, I did not test this driver but used version 5.3.4 for RTL8811AU, see <github.com/astsam/rtl8812au/issues/51#issuecomment-415834718< and <github.com/aircrack-ng/rtl8812au/pull/255>.
This commit fixes the issue #235. A variable and a function were deleted.
Tested on:
Distributor ID: Debian
Description: Debian GNU/Linux 8.10 (jessie)
Release: 8.10
Codename: Jessie
Kernel: 3.19.0 x86_64 (custom)
1. Fix build regression os_dep/linux/ioctl_cfg80211.c:3654:12: error: ‘struct net_device’ has no member named ‘destructor’; did you mean ‘priv_destructor’?
mon_ndev->destructor = rtw_ndev_destructor;
2. Fix build compat with kernel >= 4.12.0
3. Fix various errors in ioctl_cfg80211.c
A subtraction of two unsigned numbers was compared to zero for a loop
terminating condition. If the numbers are not equal, the loop will continue
until the pointers go beyond the mapped memory region and cause an unhandled
page fault.
Greetings, I'd like to contribute changes to enable support for the new TP-Link T4U USB 3 WiFi router stick. I bought one from a local supplier in South Africa (TP LINK T4U AC1300 WLSS D-BND USB ADAPT).
To get it to work I had to modify the usb_intf.c file, around line 300 to add {USB_DEVICE(0x2357,0x010d),driver_info=RTL8812} under the similar line for product ID 0101.