1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-21 22:12:54 +02:00
Commit Graph

26 Commits

Author SHA1 Message Date
Ben Greear
ba6fa69560 Openwrt and new compiler related fixes (#285)
* 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
2019-03-08 09:22:32 -08:00
masa23
fb91faf610 fix ISO C90 forbids mixed declarations and code (#279) 2019-01-14 18:37:00 +05:30
Saikrishna Arcot
076ac48d94 Add explicit memset call to avoid potentially corrupt data. (#277)
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.
2019-01-10 22:07:07 +05:30
Andrew Plummer
f182a70088 Revert "Fixing Build error from unused variable warnings (#240)"
This reverts commit 3059b62c98.

Reinstate del_station to satisfy kernel validation.
2018-02-27 10:38:45 +00:00
Adrian Puente Z
3059b62c98 Fixing Build error from unused variable warnings (#240)
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)
2018-01-31 21:32:39 -08:00
Chen Minqiang
264b64cc43 fix kernel version compat with <4.12.0 2017-07-22 10:16:29 +08:00
Chen Minqiang
2c6399ff11 Fix build regression && fix build compat bugs (#217)
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
2017-07-09 14:19:52 -07:00
Chen Minqiang
00aedbde5c merge new version v4.3.14 from https://github.com/ptpt52/rtl8812au (#160) 2016-10-09 11:54:43 -07:00
Chen Minqiang
070e46b9cb the code is dirty, I am trying to do cleanup it. (#153)
* fix the frame size is larger than 1024 bytes

* fix unused-variable warnning

* fix unused-value warnning

* fix unused-label warnning

* fix unused-function warnning

* fix uninitialized: maybe bug

* disable CONFIG_DEBUG
2016-10-01 08:35:44 -07:00
Fjodor42
e4566b49ae Second attampt at ensuring compilation for 4.8-rc (#148) 2016-09-13 03:29:25 -07:00
Harshavardhana
6bd11fc5bb Revert "Ensure compilation under 4.8-rc1 - fixes #142" (#147) 2016-09-10 19:36:46 -07:00
Fjodor42
09a1e212b6 Ensure compilation under 4.8-rc1 - fixes #142 (#143) 2016-09-09 09:36:54 -07:00
Fjodor42
a87576f63f Fix compilation under Linux 4.7.0-rc (#135) 2016-06-24 20:21:28 -07:00
Jos Dehaes
0aa1823aa7 adapt to api in linux 4.2 2015-09-25 23:11:57 +02:00
Chen Minqiang
fae1e8ccae fix compiling warning on kernel 4.1.0 2015-08-14 22:30:02 +08:00
Joe Acosta
727dcb11f3 remove warnings on 3.13 2015-07-24 11:51:48 -07:00
Joe
9c4e000fba remove warnings and add initialization for struct 2015-07-16 18:42:23 -07:00
AndyPi
8c6e9c7e29 naive changes to osdep/linux/ioctl_cfg80211.c:4561 mgmt_tx parameter changes in 3.14 cribbed from file:/rtl8811AU_linux_v4.3.7_11618.20141029 2015-06-14 15:20:21 +01:00
AndyPi
aa7a4b27b1 const u8 *mac 2015-06-12 12:49:21 +01:00
Harshavardhana
ab1ec54940 Remove STATION_INFO_ASSOC_REQ_IES usage 2015-05-19 11:50:43 -07:00
Harshavardhana
c33c3d4c1e Typo BL->NL for 4.0.0 kernel 2015-05-07 11:31:24 -07:00
Harshavardhana
d5fd80bd70 Support Linux 4.0.0, change enum NL82011 flags to match upstream changes - fixes #41
Also remove garbage characters from all files.
2015-05-06 19:58:26 -07:00
Andreas Hofmann
d6d0ba7221 os_dep/linux/ioctl_cfg80211.c: Set iftype to station when allocating wdev
Signed-off-by: Andreas Hofmann <andreas.hofmann@corscience.de>
2014-12-04 10:44:05 +01:00
Victor Azizi
df3355186d Removed ^M from ioctl_cfg80211.c so now it compiles!
(Something ****** windows line endings ****)
2014-02-24 22:04:41 +01:00
John Lenz
b22cbdf3b9 Update cfg80211 support to work with kernel up to 3.13. Also enable cfg80211 for AP mode 2014-02-18 15:09:14 -06:00
Anand Babu (AB) Periasamy
6b9092c4ad initial import of rtl8812AU_8821AU_linux_v4.2.2_7502.20130517 2013-09-04 13:48:15 -07:00