1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-08 12:15:16 +00:00
Commit Graph

404 Commits

Author SHA1 Message Date
kimocoder
c2668290e3 Allow a little extra size for rtw_hostapd_ioctl() packets 2020-07-12 01:07:28 +00:00
kimocoder
cd02bae0a0 Fix connection on resume when CONFIG_ANDROID enabled 2020-07-12 00:38:06 +00:00
kimocoder
4339edf38f Add checks for p->length and remove some goto statements 2020-07-12 00:33:50 +00:00
Carlos
0a3f017fa4 Fix compilation error with 5-8-rc1
Remove EOL kernel
2020-07-10 11:23:31 +02:00
Mathy Vanhoef
849bbf0698 rtl8812a: add module parameter to retransmit injected frames
The reliability of some attacks is increased by letting the device
retransmit injected frames. Since it may not always be desired to
retransmit injected frames, add a module parameter to enable it
manually.

This was tested with an Alfa AWUS036ACH. Even when using a spoofed
sender MAC address, the retransmission behaviour is as expected.
That is, when an ACK frame towards the spoofed MAC address is received,
the retransmission will stop.
2020-06-26 16:23:46 +04:00
Mathy Vanhoef
1b86121806 rtl8812a: do not overwrite sequence number of injected frames
The sequence number of inject frames was being overwritten. This prevents
certain older attacks against WEP fragmentation older TKIP attacks. Fix
this by tracking if a frames was injected in monitor mode, and if so, do
not overwrite its sequence number.

The patch also adds a module parameter to revert this behaviour if needed.
By setting rtw_monitor_overwrite_seqnum to 1, sequence numbers will again
be set by the driver/device. This may by useful if user-space relied on
the driver/device to set sequence numbers.

This patch was tested using an Alfa AWUS036ACH.
2020-06-26 09:27:54 +04:00
Jeff Collins
89722019ea
Add support for Hawking HW17ACU
Add support for Hawking HW17ACU (RTL8814AU)

Signed-off-by: Jeff Collins <jeffcollins9292@gmail.com>
2020-05-16 04:06:57 -04:00
Daan van Gorkum
761f1d94a5
Bugfix: Phy cannot be moved into another namespace
When CONFIG_NET_NS is enabled one would assume the device can be
moved into another namespace. Currently it will fail with:

command failed: Operation not supported (-95)

There's a check if the kernel is between 2.6.38 and 3.0.0
before it adds the netns flag to wiphy->flags.

With this commit it will always add the netns flag when
CONFIG_NET_NS is enabled.

Signed-off-by: Daan van Gorkum <djvg@djvg.net>
Fixes: https://github.com/aircrack-ng/rtl8812au/issues/518
2020-05-09 16:07:59 +08:00
Christian Bremvåg
8b29c11f9b
Merge pull request #605 from stepheny/dev-v5.6.4.2
Minor fix
2020-03-31 01:54:47 +02:00
Stephen.Y
5d432cd6e2 Minor fix 2020-03-31 07:32:54 +08:00
Quentin Barnes
1076705322 Add RHEL 8 support and support for possible work on future RHEL
releases.
2020-03-28 10:16:11 -05:00
kimocoder
19398a4630 Add kernel v5.6 support 2020-03-08 06:16:31 +00:00
Christian Bremvåg
1bf08b78b1
Update wifi_regd.c 2020-03-08 05:12:54 +01:00
kimocoder
39e9af79d8 remove USB_PACKET_OFFSET_SZ 2020-03-07 23:01:53 +00:00
kimocoder
ea9aade289 remove rtw_cfgvendor support 2020-03-07 22:56:09 +00:00
kimocoder
7240269e29 Minor cleanup. Finish merging code, for now. 2020-02-01 10:15:59 +01:00
kimocoder
e68310ce0d Use for RTL8814A chip (AWWD-165) 2020-02-01 09:55:13 +01:00
kimocoder
6ac6fc9530 rtw_cfgvendor: GFP_ATOMIC and GFP_KERNEL are of type u32 2020-02-01 09:24:50 +01:00
kimocoder
b3a4fa0b1b rtw_android: get_country_code needs additional flags parameter 2020-02-01 09:24:11 +01:00
kimocoder
856e392531 Some tweaks around the code 2020-02-01 09:04:01 +01:00
kimocoder
ec5a9c73e2 Some allround tweaks + removed a debug warning 2020-02-01 07:46:42 +01:00
kimocoder
038f1ea370 Minor cleanup/fix for kernel v4.20 support (get_monotonic_boottime) 2020-02-01 07:34:27 +01:00
kimocoder
19890f07a4 Restore 1mbps by default 2020-02-01 07:13:55 +01:00
Gavin Li
f5a29914e7
Avoid dereference of uninitialized pointer in rtw_ndev_notifier_call()
This should fix some of the crashes.
2020-01-24 16:32:51 -08:00
kimocoder
d7fe9809f4 Better handling of 'fallthrough's 2020-01-20 08:03:10 +01:00
kimocoder
34258e769f Fix: pcap_activate status -8 and pcap_activate status -1 2020-01-11 20:30:27 +01:00
Pawel Rozlach
600e73f36a Enable channels 36-48 for AP usage 2020-01-07 14:53:28 +01:00
65278 (Felix Wischke)
e1a4fd06f3 os_dep/linux/ioctl_linux.c: fix WIRELESS_EXT ifdefs 2019-12-20 12:28:48 +01:00
kimocoder
57a2ce4f20 Revert: Test fix for latest kernel which changed 'asm' to 'asm_inline' 2019-12-17 22:28:41 +01:00
kimocoder
392109f98a Test fix for latest kernel which changed 'asm' to 'asm_inline' 2019-12-17 19:29:57 +01:00
Emerson Pinter
a7b3892eed Fix support for TP-Link Archer T2U v3 2019-12-02 13:16:15 -03:00
int3l
a8d0fec8e0 Reintroduce: Added LED control
This commit is cherry-pick + refactoring of:
ff04a94b00
and
313311c14b

I'm not sure how this got lost in the latest version on GitHub (I guess merging issues).
But all credits go to @gordboy, @kimocoder and all the other authors.
2019-11-29 23:20:46 +02:00
kimocoder
75a5725e0b Added LED control 2019-11-29 11:03:59 +02:00
icjuego
ecf67b12c7
Fix compilation for kernels < 4.10 2019-11-21 01:33:36 +00:00
kimocoder
28a8d26f11 Fixes for compiling against OpenWRT tree 2019-11-18 16:12:51 +01:00
kimocoder
55484785cc Fix for log level + Turned down level to decrease spam 2019-11-14 22:16:02 +01:00
kimocoder
a3070c3a5c Enable TX queue in monitor mode 2019-11-14 20:41:30 +01:00
kimocoder
b5f97c1696 Fixed 8821au (8811au) support, fixed fw bug. fixes #466 2019-11-14 20:37:13 +01:00
kimocoder
3116f1e01a Added more 'iw' output 2019-11-14 20:19:03 +01:00
kimocoder
49fb2e6d17 Make Makefile and Kconfig consistent 2019-11-14 19:33:34 +01:00
kimocoder
9ebd5ad043 Fixed frame injection 2019-11-14 10:31:01 +01:00
kimocoder
98182de4f1 Fixed frame injection 2019-11-14 10:30:35 +01:00
kimocoder
2236ed7313 Added RadioTap iterator from kernel v4.9 2019-11-14 01:50:27 +01:00
kimocoder
6deda60be2 Fix the Network Namespace (CONFIG_NET_NS) support 2019-11-14 01:47:00 +01:00
kimocoder
d867a451d3 Enable rx_stbc bit for 5G in HT mode 2019-11-13 20:48:10 +01:00
kimocoder
d00f413a82 Fix error switching to 80MHz channels under certain conditions 2019-11-13 20:45:55 +01:00
kimocoder
b5fb4d6830 Enable the channel 14 and 80 MHz width channels in the regdom 2019-11-13 20:40:05 +01:00
kimocoder
caa18fb70f Enable TX queue in monitor mode 2019-11-13 20:04:25 +01:00
kimocoder
9bf4a34f73 adopt upstream: net: Fix inconsistent teardown 2019-11-13 17:35:03 +01:00
kimocoder
9248e99dcc Fix interface rename error 2019-11-13 17:27:34 +01:00
kimocoder
02e8c82c9b Fixed crash when debug flag is set 2019-11-13 17:24:08 +01:00
kimocoder
b9f88289b2 Fix floating point in VHT_HW_TX for both x86 and RPI 2019-11-13 17:14:47 +01:00
kimocoder
42cc12cc84 Fixed a missing channel function in regdom 2019-11-13 16:48:06 +01:00
kimocoder
fa35b99b42 Implemented txpower control 2019-11-13 16:36:58 +01:00
kimocoder
8fc76b7fe3 Added HT Greenfield capabilities 2019-11-13 16:18:11 +01:00
kimocoder
ae31db1a4c Added 1 more VID/PID (Archer AC600 T2U Nano) 2019-11-11 19:45:02 +01:00
kimocoder
7ad5618762 Fix build support to older GCCs by adding fallthroughs 2019-11-11 04:07:55 +01:00
kimocoder
7b0ba5a1ca Fix problem where interfaces are down at start 2019-11-11 03:54:59 +01:00
kimocoder
d415163096 Fix CONFIG_CONCURRENT_MODE building due to missing VIF 2019-11-11 03:26:05 +01:00
kimocoder
dbc8d10201 Fix connection error on resume 2019-11-11 03:02:26 +01:00
kimocoder
ad32b0d9a8 A fix to avoid freeze on unplugging adapter 2019-11-11 02:54:47 +01:00
kimocoder
909606a1b8 Hardcode adapter alias to 'wlanX..' 2019-11-11 02:45:42 +01:00
kimocoder
8bdef804c3 Fix channel switch in the monitor mode if both CONFIG_WIRELESS_EXT and CONFIG_CFG80211_WEXT are enabled 2019-11-11 02:43:26 +01:00
kimocoder
f431b12c58 Hostapd/WPS support added 2019-11-11 02:07:56 +01:00
kimocoder
8eec8cd4a3 Some overall fixes.. includes + various 2019-11-11 02:04:51 +01:00
kimocoder
a92167dc8b Adds definite sizes for MTUs 2019-11-11 01:08:21 +01:00
kimocoder
2fb4e08249 Fixed build/compile error + some compiler warnings + minor cleanup 2019-11-11 01:04:53 +01:00
Christian Bremvåg
6b06b8de47
Found a misplaced #else possibly related to scan issue 2019-11-10 12:21:31 +01:00
Christian Bremvåg
7f778d288b
A minor fix to scanning (according to upstream) 2019-11-10 11:51:07 +01:00
kimocoder
7c9ab6fe6f Add a bunch of VID/PID's + Add 8814/8821AU support 2019-11-09 18:53:04 +00:00
Christian Bremvåg
a7279f8240
Add 8814AU VID/PID's 2019-11-09 19:37:56 +01:00
Christian Bremvåg
3a1f3cf3a3
Add a bunch of VID/PID's 2019-11-09 19:36:15 +01:00
kimocoder
bc95c21031 Some Makefile updates + other minor fixes 2019-10-31 01:43:41 +01:00
root
65b4d276b1 Upload v5.6.4.2 2019-10-30 23:08:53 +00:00
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