1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-30 00:47:38 +00:00
Commit Graph

380 Commits

Author SHA1 Message Date
kimocoder
499c160eab Fix interface down on start 2019-10-30 20:32:57 +01:00
Christian Bremvåg
cb5a2d523f
Merge pull request #433 from CGarces/patch-2
Fix additional character at VENDOR_CWD_RAW_DATA
2019-10-30 20:18:19 +01:00
Christian Bremvåg
bc9432f80d
Merge pull request #420 from CGarces/v5.6.4.1
Fix compilation issue kernels < 4.18 (Ubuntu 18.04 and derived distros)
2019-10-22 23:38:51 +02:00
Carlos Garces
19dcc3302e Fix commpilation issue for kernels < 4.18
cfg80211_sinfo_alloc_tid_stats function was included at 8689c051a20195b228e19acb155c7d6e48a86753
2019-10-05 16:34:17 +02:00
Carlos Garcés
2d564d873e
Delete ioctl_cfg80211.c.orig 2019-10-05 15:50:44 +02:00
Carlos Garcés
10cd433145
Fix additional character at VENDOR_CWD_RAW_DATA 2019-10-03 12:41:22 +02:00
Jurica Vukadin
4b162cbf8e Fix oops on interface rename
Interface renaming crashes because rtw_ndev_notifier_call() tries to get the
adapter from ndev before ndev itself is assigned:

[29504.542194] rtl88xxau 3-5:1.0 wlp0s20u5: renamed from wlan0
[29504.561961] BUG: kernel NULL pointer dereference, address: 00000000000008c0
[29504.561966] #PF: supervisor read access in kernel mode
[29504.561968] #PF: error_code(0x0000) - not-present page
[29504.561970] PGD 0 P4D 0
[29504.561974] Oops: 0000 [#1] PREEMPT SMP NOPTI
[29504.561978] CPU: 5 PID: 27127 Comm: systemd-udevd Tainted: G           OE     5.3.1-arch1-1-ARCH #1
[29504.561979] Hardware name:  /DH87RL, BIOS RLH8710H.86A.0331.2018.0327.1547 03/27/2018
[29504.562035] RIP: 0010:rtw_ndev_notifier_call+0x31/0x55 [88XXau]
[29504.562038] Code: d2 74 45 55 53 48 89 f3 48 8b 2a 48 85 ed 74 12 48 89 ef e8 99 fe ff ff 48 83 fb 0b 75 04 84 c0 75 08 b8 00 00 00 00 5b 5d c3 <48> 8b 04 25 c0 08 00 00 48 8d b8 48 45 00 00 ba 10 00 00 00 48 89
[29504.562041] RSP: 0018:ffffb6e28252f7b0 EFLAGS: 00010202
[29504.562043] RAX: 0000000000000001 RBX: 000000000000000b RCX: 0000000000000001
[29504.562045] RDX: ffffffffc149ce80 RSI: 000000000000000b RDI: ffffa35bb1fad000
[29504.562046] RBP: ffffa35bb1fad000 R08: 0000000000800000 R09: ffffffffa489c660
[29504.562047] R10: ffffb6e28252f7c8 R11: ffffb6e38252f6b6 R12: 000000000000000b
[29504.562048] R13: ffffb6e28252f818 R14: ffffffffa4907d20 R15: 0000000000000000
[29504.562050] FS:  00007f638323f840(0000) GS:ffffa35c8eb40000(0000) knlGS:0000000000000000
[29504.562051] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[29504.562053] CR2: 00000000000008c0 CR3: 000000040bcb6006 CR4: 00000000001606e0
[29504.562054] Call Trace:
[29504.562062]  notifier_call_chain+0x4c/0x70
[29504.562067]  dev_change_name+0x219/0x320
[29504.562071]  do_setlink+0xd45/0xf10
[29504.562077]  ? preempt_count_add+0x68/0xa0
[29504.562081]  ? _raw_spin_lock+0x13/0x30
[29504.562083]  ? _raw_spin_unlock+0x16/0x30
[29504.562087]  ? get_partial_node.isra.0.part.0+0xc2/0x210
[29504.562090]  ? __alloc_pages_nodemask+0x1c4/0x10b0
[29504.562093]  rtnl_setlink+0x105/0x170
[29504.562099]  rtnetlink_rcv_msg+0x137/0x3c0
[29504.562101]  ? rtnl_calcit.isra.0+0x120/0x120
[29504.562105]  netlink_rcv_skb+0x75/0x140
[29504.562108]  netlink_unicast+0x177/0x1f0
[29504.562111]  netlink_sendmsg+0x204/0x3d0
[29504.562116]  sock_sendmsg+0x5e/0x60
[29504.562118]  __sys_sendto+0x120/0x190
[29504.562122]  __x64_sys_sendto+0x25/0x30
[29504.562125]  do_syscall_64+0x5f/0x1c0
[29504.562128]  entry_SYSCALL_64_after_hwframe+0x44/0xa9

Move the assignment further down after ndev is known.

Signed-off-by: Jurica Vukadin <jura@vukad.in>
2019-09-28 22:37:51 +02:00
kimocoder
3c9b7800a6 Adding back a working fix for update channel info 2019-09-19 21:28:03 +02:00
kimocoder
2f5c8e6ea9 Fix errors from all patches added earlier 2019-09-19 21:05:16 +02:00
kimocoder
4fe60d92e5 Fix errors from all patches added earlier 2019-09-19 21:05:00 +02:00
kimocoder
9d91ee955a Add missing include 2019-09-19 15:55:47 +00:00
kimocoder
51dbe24468 short GI is supported on all bands 2019-09-19 15:53:31 +00:00
kimocoder
43b099231f Fix update channel info 2019-09-19 15:27:45 +00:00
kimocoder
bb94a25ef6 fix country setting and update vhc configure and rate fix (part 2) 2019-09-19 15:19:15 +00:00
kimocoder
dcad331843 Quiet default logging 2019-09-19 13:27:40 +00:00
kimocoder
a5043d715b Add support for network namespaces 2019-09-19 13:24:09 +00:00
kimocoder
8c1b6f68f0 cfg80211: Fixed unallocated stats 2019-09-19 11:42:27 +00:00
kimocoder
5129cac125 Added support for Edimax EW-7611UCB 2019-09-08 22:10:44 +02:00
kimocoder
abf81a658b Add support for TP-Link Archer T2U v3 2019-09-08 22:07:52 +02:00
kimocoder
a9695de429 Turned off USB ModeSwitch function/switch, may cause some trouble 2019-09-08 21:46:56 +02:00
kimocoder
bd54921c33 Cleanup/fix RAW_DATA policy (kernel v5.3) issue 2019-09-08 20:48:07 +02:00
root
0c7cac8843 Fix & cleanup kernel v5.3 support 2019-09-08 07:40:58 +00:00
kimocoder
0bb520cbfa Some allround fixes (minors) 2019-08-24 05:57:54 +02:00
kimocoder
14204645d5 Nuke CONFIG_LOAD_PHY_PARA_FROM_FILE function 2019-08-24 02:18:32 +02:00
kimocoder
eccee894cd Fix minor indentations 2019-08-24 01:46:25 +02:00
kimocoder
f2b259a389 Minor cleanup 2019-08-24 01:27:28 +02:00
kimocoder
d8b264a27d Fixed a issue when DEBUG was enabled 2019-08-24 01:11:34 +02:00
kimocoder
703d5772d4 Fix interface rename issue 2019-08-24 00:48:52 +02:00
kimocoder
c215cafcaa Cleaned out some Windows & FreeBSD code 2019-08-24 00:41:14 +02:00
kimocoder
bbe93fbd6d Fix compilation issues from earlier 2019-08-23 10:08:36 +02:00
kimocoder
fd796b8bc1 Register wiphy after we probe MAC addr. (moved to wiphy_preinit) 2019-08-18 18:49:07 +02:00
kimocoder
b3aef6d290 Fixed a issue when DEBUG was enabled 2019-08-18 04:45:55 +02:00
kimocoder
e9daed6187 Fix interface rename issue 2019-08-18 04:43:53 +02:00
kimocoder
2777bcd917 Fix the correct interface name instead of being nameless 2019-08-17 22:31:40 +02:00
kimocoder
39ae054a38 Cleaned up a patch applied 2019-08-17 20:11:40 +02:00
kimocoder
619d992fe4 Fixed WiFi Direct in driver 2019-08-17 20:10:54 +02:00
kimocoder
a00101e97a Cleaned up Makefile 2019-08-17 18:47:31 +02:00
kimocoder
e1258a0dde Cleaned out unsupported chipsets from usb_intfs.c 2019-08-17 15:14:11 +02:00
kimocoder
a0bb0e1d42 Added DEBUG to USB - CONFIG_USB_DEBUG in Makefile 2019-08-17 13:09:09 +02:00
kimocoder
33cd907df1 Just some minor permission fix PR 2019-08-17 00:11:15 +02:00
kimocoder
1e62d66f89 Relax regrules (wifi regdom) 2019-08-17 00:04:38 +02:00
kimocoder
c2fd51ad82 Added kernel v5.3+ support - enjoy 2019-08-16 23:44:50 +02:00
kimocoder
4d95fe8727 Enable DFS for 5ghz support 2019-08-16 23:27:14 +02:00
Christian Bremvåg
0a4ce9dddc
staging: replace explicit NULL comparison
Replace explicit NULL comparison with ! operator to
simplify code.

Found with Coccinelle script:
@@
expression ptr;
position p;
statement s0;
@@

ptr@p =
\(kmalloc\|devm_kzalloc\|kmalloc_array\|devm_ioremap\|usb_alloc_urb\|
alloc_netdev\|dev_alloc_skb\)(...)
... when != ptr

if (
(
+ !
ptr
- == NULL
)
) s0
2019-08-16 23:10:38 +02:00
Christian Bremvåg
8f04e62ca7
Fix incorrect response to SIOCGIWESSID
When not associated with an AP, wifi device drivers should respond to the
SIOCGIWESSID ioctl with a zero-length string for the SSID, which is the
behavior expected by dhcpcd.

Currently, this driver returns an error code (-1) from the ioctl call,
which causes dhcpcd to assume that the device is not a wireless interface
and therefore it fails to work correctly with it thereafter.

When not associated with an AP, other wifi device drivers respond to the SIOCGIWESSID ioctl with a zero-length string for the SSID; this is the behaviour expected by dhcpcd.

This driver returns an error code (-1) from the ioctl call - this causes dhcpcd to assume that the device is not a wireless interface and therefore it fails to work correctly with it thereafter.

It would be good if the behaviour of this driver could be brought into line with that of other drivers for similar devices; that is for the response to SIOCGIWESSID to be a zero-length string and a success code rather than an error.
2019-08-16 22:53:33 +02:00
kimocoder
eaf96f0052 Pushing minor cleanups .. 2019-08-16 22:49:56 +02:00
kimocoder
1348762001 Remove signal handling from driver (software) 2019-08-16 22:11:06 +02:00
kimocoder
12d7cac87b Nuke good 'old debug also known as /proc 2019-08-16 19:15:24 +02:00
kimocoder
84f5ceca14 Hard disable old debug read/write file functions 2019-08-16 18:47:04 +02:00
kimocoder
3a405781ba Disbale / clean iw priv 2019-08-16 18:38:23 +02:00
kimocoder
341f3e9c80 Remove customer string 2019-08-16 18:31:23 +02:00
kimocoder
374c25a43f Upstream changed wireless band 2019-08-16 18:22:55 +02:00
kimocoder
a2227b00ca Remove private ioctl's 2019-08-16 18:19:34 +02:00
kimocoder
48ddf9727b Removed some file functions 2019-08-16 18:12:15 +02:00
kimocoder
bb31213a73 Updated cfg80211.h's add_virtual_inf implementations with new parameter 2019-08-16 17:47:09 +02:00
kimocoder
1972751e8f Remove SetPowerTracking() and GetPowerTracking() 2019-08-16 17:36:52 +02:00
kimocoder
7ff8e97218 Enable USB3 mode switch which also enables VHT SS3 2019-08-16 17:29:54 +02:00
kimocoder
31354957a2 adopted from upstream: cfg80211: unify cfg80211_roamed() 2019-08-16 17:27:14 +02:00
kimocoder
273361355d adopted from uptream: nl80211: allow multiple active 2019-08-16 17:10:49 +02:00
kimocoder
2e8d88e075 Missing channel assignment from 4.12 kernel support 2019-08-16 17:05:40 +02:00
kimocoder
d664d7e949 Use endian macros from kernel instead hardcoded 2019-08-16 16:50:59 +02:00
kimocoder
100b73747b Some tweaks and minors around .. 2019-08-16 16:42:12 +02:00
kimocoder
313311c14b Added LED control 2019-08-16 16:34:43 +02:00
kimocoder
9daa7978e9 Merge a collection of fixes 2019-08-16 06:28:27 +02:00
kimocoder
597de9c9b0 Added more iw output - not complete still 2019-08-16 04:20:13 +02:00
Farid Benamrouche
11cb9c2a37 added 8821 and 8814 2019-07-15 17:14:17 +02:00
Christian Bremvåg
df6381f35d
Added kernel v5.1+ support (get_ds -> KERNEL_DS) 2019-06-22 19:41:09 +02:00
kimocoder
472b8b3176 Added HT Greenfield capab + various ported fixes 2019-06-22 17:07:31 +02:00
kimocoder
decdb78ea0 Upload new v5.6.4.1 branch 2019-06-22 15:16:29 +02:00
Christian Bremvåg
598059dae8
Fix a typo leading to compile error 2019-06-17 12:47:25 +02:00
Christian Bremvåg
68351a7a20
Added bunch of VID/PID's from other branches (and vice versa) 2019-06-17 00:28:49 +02:00
Thijs Withaar
74cc8cdbc1 i386: mark floating point operations correctly.
From commit #1603b05c
2019-06-08 10:47:20 +02:00
Thijs Withaar
13456a8af1 wifi_regd: regulations are handled by crda, so don't do that here. 2019-06-08 10:47:12 +02:00
Thijs Withaar
2cb491951f wifi_regd: remove unused code 2019-06-08 08:33:11 +02:00
Christian Bremvåg
003c2aa3da
Merge pull request #365 from satmandu/v5.6.4
Compilation fixes for Kernel 5.1 & 5.2
2019-05-30 22:50:58 +02:00
kimocoder
8a49d214da Added HT Greenfield capabilities 2019-05-30 22:39:27 +02:00
satmandu
75c538098b
Compilation fix for kernel 5.1+
As per 48c223a03c
2019-05-30 14:48:09 -04:00
satmandu
231d5c2d4e
fix missing "(" 2019-05-30 14:40:14 -04:00
satmandu
aa405e0b18
removed space 2019-05-30 14:38:05 -04:00
satmandu
36ff7bcd7f
os_dep: fix compilation warning and kernel 5.2 as per commit to 5.3.4
Adapted patch here: e013a161f8
2019-05-30 14:34:13 -04:00
kimocoder
6c1b4a333b Upload new v5.6.4 driver 2019-05-24 21:43:57 +02:00
shyan003
3de2dde344
Update usb_intf.c 2019-05-24 15:50:23 +08:00
Christian Bremvåg
e013a161f8
Merge pull request #344 from Darnor/v5.3.4
os_dep: fix compilation warning and kernel 5.2
2019-05-22 00:26:41 +02:00
kimocoder
94cd8fba9e Fix used before initialized warning 2019-05-22 00:12:23 +02:00
kimocoder
cccd2f324c Add support for TP-Link Archer T2U Nano AC600 2019-05-22 00:03:27 +02:00
kimocoder
d1d2446e05 Revert back some changes to fix frame injection 2019-05-21 23:50:29 +02:00
Hansruedi Patzen
d8d9399a5b compilation: fix override-init warning
rtl8812au/os_dep/linux/ioctl_cfg80211.c:9512:25: warning: initialized field overwritten [-Woverride-init]
  .set_monitor_channel = cfg80211_rtw_set_monitor_channel,
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-05-15 14:26:01 +02:00
Hansruedi Patzen
e2d6505b67 linux-5.2: disable fallback from rtw_select_queue
The fallback parameter has been removed in the latest kernel (>= 5.2)

See: a350eccee5
2019-05-15 14:25:00 +02:00
kimocoder
aaef1baf31 Trying another channel switching code 2019-04-07 18:46:13 +02:00
kimocoder
54710f5403 Fix used before initialized warning 2019-04-07 18:37:55 +02:00
kimocoder
9e298d0fa3 fix compile when CONFIG_IOCTL_CFG80211 defined 2019-04-07 18:15:47 +02:00
kimocoder
78dbffdf16 Fix radiotap header for RTL8814AU 2019-04-07 18:02:57 +02:00
kimocoder
03933bb002 Check arguments of the set tx power ioctl 2019-04-07 17:45:04 +02:00
kimocoder
3a4df6e3dc Fix channel switch in the monitor mode if both CONFIG_WIRELESS_EXT and CONFIG_CFG80211_WEXT are enabled 2019-04-07 17:10:55 +02:00
kimocoder
232bcd5fbc Set dev_type to wlan 2019-04-06 08:46:46 +02:00
kimocoder
19aa60f1a1 Fix build for 4.19.0-041900rc4-generic from ubuntu kernel-ppa 2019-04-06 08:43:23 +02:00
kimocoder
7bf20f5f82 Fix function call signature on rtw_* function definition 2019-04-06 08:38:14 +02:00
kimocoder
5187e1b094 Fix CONFIG_RTW_DEBUG compilation and levels 2019-04-06 08:17:54 +02:00
kimocoder
35f64254c1 Relax some wifi regional rules 2019-04-06 08:10:11 +02:00
kimocoder
ee01e58834 Adoptations for using the driver on android/nethunter 2019-04-06 01:16:13 +02:00
kimocoder
cb7b83e8a6 Hostapd/WPS support 2019-04-06 00:51:57 +02:00
kimocoder
5b5d01f393 do not remove device if it is not of type monitor 2019-04-06 00:34:58 +02:00
kimocoder
a3ed1ef28a Added some error checking feature 2019-02-16 02:29:58 +01:00
kimocoder
4848f29d19 Protect rtw_cfg80211_unlink_bss() against pnetwork of NULL 2019-02-16 02:22:54 +01:00
kimocoder
eaf2707950 Reorder shutdown to eliminate warning from cfg80211 2019-02-16 02:20:27 +01:00
kimocoder
1ff4839d5b Make proper fix for freeze on unload 2019-02-16 02:11:55 +01:00
kimocoder
91a66fdefe Fix connection error on resume 2019-02-16 01:09:02 +01:00
kimocoder
97674c1259 Minor fixes several places 2019-02-16 00:36:43 +01:00
kimocoder
d1c55e0858 Fix CONFIG_CONCURRENT_MODE building. Missing VIF code. 2019-02-16 00:13:16 +01:00
kimocoder
ed72c44df7 Add explicit memset call to avoid potentially corrupt data 2019-02-15 23:16:15 +01:00
kimocoder
fc3c9149db Fixed the _get_channel function, missing 2 cases 2019-02-15 18:24:00 +01:00
kimocoder
0eda114fda Added support for kernel v5.0+ 2019-02-15 15:51:37 +01:00
Alexander Traud
f150da568a
Add USB Device Obihai OBiWiFi with 3823:6249
USB driver gets attached and Wi-Fi adapter is usable, tested in Ubuntu 18.04 LTS with Secure Boot disabled.
2019-01-08 10:30:26 +01:00
Thijs Withaar
0c3cfa41e4 fully apply CONFIG_DISABLE_REGD_C
Fix floating point in VHT_HW_TX for both x86 and rpi
2018-11-20 22:37:34 +01:00
kimocoder
0a4042afbd Add kernel v4.20 support and minor compiler warning turned off 2018-11-14 23:39:13 +01:00
kimocoder
e972ae8162 Update kernel v4.19 support 2018-11-14 23:36:44 +01:00
kimocoder
926549fe69 Fix problem where interfaces are down at start 2018-11-10 21:34:15 +01:00
kimocoder
dae6545ef1 Fix builds for kernels older than 4.11.0 2018-11-10 21:22:12 +01:00
kimocoder
d3e6831396 More cleanup around Makefile++ 2018-10-20 22:53:01 +02:00
kimocoder
141e1f089f Reverted the PARA_FILE load functions for now 2018-10-20 21:49:49 +02:00
kimocoder
d61dcbd985 remove PARA_FILE load functions, all data is in headerfiles 2018-10-20 19:28:55 +02:00
kimocoder
df5766d9f3 hard disable old debug read/write file functions 2018-10-20 19:14:06 +02:00
kimocoder
efb4d2fe21 minor upstream patch fix: inconsistent teardown 2018-10-20 19:09:42 +02:00
kimocoder
ba4b2097b2 nuke rtw_proc aka debug via /proc 2018-10-20 19:02:03 +02:00
Christian B
3ba0d97eae
Merge pull request #1 from fariouche/v5.3.4
added regd flag to disable radar detection
2018-09-16 18:19:26 +02:00
fariouche
b9df378af3 added regd flag to disable radar detection
set default ht capab to 3 to enable 5GHz RX-STBC
2018-09-16 18:08:48 +02:00
Thijs Withaar
7c93fa7c05 Fix floating point in VHT_HW_TX for both x86 and rpi 2018-09-06 19:03:05 +02:00
Christian B
77d964aad9
Added lots of VID/PID's
* Added lots of adapter support. Taken from the v5.1.5 and v5.2.20 branch
2018-08-30 19:06:54 +02:00
kimocoder
072598e032 Add support for kernel v4.19-rc1 2018-08-29 18:27:44 +02:00
kimocoder
72117bc456 Initialize some variables 2018-08-27 20:31:00 +02:00
kimocoder
5f1fd4fa3c Remove redundant code already in SetHwReg881XAU in usb_halinit.c 2018-08-27 20:23:02 +02:00
kimocoder
993a7752cb Fix kernel regression related to get channel function 2018-08-27 20:18:13 +02:00
kimocoder
d5e34220d0 Added get channel function 2018-08-27 20:11:53 +02:00
kimocoder
3873db1e10 Added HT Greenfield capabilities 2018-08-27 20:05:18 +02:00
kimocoder
5e345a86d5 Fix USB3 and USB modeswitch function 2018-08-25 20:37:42 +02:00
kimocoder
5faae4ff49 Fixed unreachable switches and other compile warnings 2018-08-25 20:29:23 +02:00
kimocoder
d2932f7a54 Uploading new v5.3.4 2018-08-25 18:21:32 +02:00
kimocoder
2d4a79c1b8 Uploading the v5.3.4 version 2018-08-24 22:52:34 +02:00
fariouche
3a38ce9d1f fixed crash when debug flag is set 2018-08-12 17:52:01 +02:00
kimocoder
680f78830c Reinstate: Fix interface rename error 2018-08-11 18:36:59 +02:00
kimocoder
8d15903065 Remove redundant code already in SetHwReg881XAU in usb_halinit.c 2018-08-10 18:51:27 +02:00
kimocoder
61db9f6c5e Fix the get_channel function causing kernel regression 2018-08-10 18:26:15 +02:00
kimocoder
88301eb45a Allow build for kernels with backported cfg80211 API 2018-08-08 19:03:15 +02:00
Christian B
5a21cce8cd
Fix another segfault
* Removed for now, not used anyway since the virtual interface support isn't working.
2018-08-06 19:51:45 +02:00
kimocoder
b39cd0827c Initialize some variables 2018-08-05 20:31:51 +02:00
kimocoder
79e44be3d0 adopt upstream: net: Fix inconsistent teardown 2018-08-04 20:09:03 +02:00
kimocoder
8132170418 Added get channel function 2018-07-29 18:28:40 +02:00
kimocoder
4d896a9145 Fix compilation error under kernel v3.13 2018-07-29 18:12:29 +02:00
kimocoder
af62fe4337 Fix interface rename error 2018-07-29 18:04:28 +02:00
kimocoder
cfdf854042 Fix USB3 modeswitch 2018-07-24 21:00:22 +02:00