Commit Graph

195 Commits

Author SHA1 Message Date
kimocoder
c7f8f6e363 Remove leftovers of Intel WIDI and take a general cleanup 2024-05-09 21:22:32 +02:00
Ben Hutchings
5b90ddb5cb ioctl_cfg80211: Add support for standard RSSI notifications
Currently background scanning with wpa_supplicant does not work very
well because rtl8812au does not notify it about changes to RSSI.  To
fix this:

* Implement the cfg80211_ops::set_cqm_rssi_config operation to set the
  parameters for RSSI notifications.
* Add a rtw_cfg80211_cqm_rssi_update() function that calls
  cfg80211_cqm_rssi_notify() if the RSSI has changed significantly
  (based on those parameters).
* When connected in infrastructure mode, call
  rtw_cfg80211_cqm_rssi_update() after processing a beacon and
  updating the RSSI.

Signed-off-by: Ben Hutchings <ben.hutchings@mind.be>
2023-11-07 20:52:13 +01:00
kimocoder
6f7a4e568a Address warning in createbss_hdl() 2023-07-02 02:50:24 +02:00
kimocoder
35308f4dd7 Code optimization 2023-05-02 03:07:11 +02:00
kimocoder
8cb23d8f91 Remove dead code associated with CONFIG_PLATFORM_INTEL_BYT 2023-05-02 01:28:48 +02:00
kimocoder
0c3d4b326c Remove useless warning 2023-05-02 00:34:04 +02:00
kimocoder
d4ad2121c9 get_ra() exists only on PowerPC 2023-05-02 00:25:10 +02:00
gluker
4a0ceabe0b Pragma GCC < 11 warning fix for -Wstringop-overread 2023-04-17 20:14:54 +03:00
gluker
0445b2ba0a Fix compiler (rtw_br_ext.c:969:11) and kernel (net/wireless/sme.c:843) warnings 2023-04-02 04:56:03 +03:00
kimocoder
2aafb1ead6 Add some Android fixes 2022-08-27 03:10:39 +02:00
kimocoder
a116233ca6 Fix compile warning in rtw_sta_mgt.c 2022-06-06 03:11:24 +02:00
kimocoder
91d47c6982 Minor code cleanup 2022-06-06 03:01:42 +02:00
kimocoder
2f52f84096 Optimize kernel v5.15 support 2022-03-05 02:45:08 +01:00
heitbaum
7e61ad89cc rtl8812au: Fix code for kernel 5.17 API change
Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
2022-02-09 13:40:47 +00:00
kimocoder
a72835df07 Fix (test) for IPX header on various distros 2021-12-12 22:34:13 +01:00
kimocoder
7bb51141de Fix kernel v5.15+ compiler warnings 2021-12-12 22:08:06 +01:00
Carlos Garcés
47a38b7c73 Fix kernel 5.15 compilation
Remove IPX support from driver, set as obsolete in Jan 2018.
IPX is not supported by the linux kernel since v5.15-rc1 see commit 6c9b40844751ea30c72f7a2f92f4d704bc6b2927
2021-10-10 12:39:42 +02:00
astsam
37d2ab4137 Fix error creating an access point below channel 36 2021-02-05 23:27:03 +03:00
astsam
5e61763585 Add low frequency 5GHz band 2021-01-29 23:27:17 +03:00
astsam
5e66b8754f Add missing 5GHz channels 2021-01-29 22:48:42 +03:00
astsam
46179742bd Allow inject management and control frames 2021-01-29 22:32:26 +03:00
Carlos Garcés
689bc8c1d1
Fix memory leak 2021-01-11 10:42:21 +01:00
Carlos
ee9619ba0c Fix kernel 5.10-rc1 2020-11-09 18:20:33 +00:00
kimocoder
07c704c0a7 radiotap tx support for injection 2020-09-20 01:33:08 +02:00
kimocoder
d4f1921d37 bugfix: report 48M not 46.5M 2020-09-20 01:19:31 +02:00
kimocoder
e90626b5c3 Fixed kernel v5.8 support 2020-08-16 18:45:23 +02:00
kimocoder
4b6c218e95 Fix multiple warnings when using clang 2020-07-12 03:44:51 +00:00
kimocoder
72f409d750 Fix a possible NUMM dereference 2020-07-12 01:17:12 +00:00
kimocoder
a6e3593c59 Fix outdated timer_init in BTCOEX routines 2020-07-12 00:50:47 +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
llccd
ac96d9daba
Fix kernel hang with active keepalive disabled 2020-05-20 15:19:33 +08:00
kimocoder
39e9af79d8 remove USB_PACKET_OFFSET_SZ 2020-03-07 23:01:53 +00:00
kimocoder
7240269e29 Minor cleanup. Finish merging code, for now. 2020-02-01 10:15:59 +01:00
kimocoder
856e392531 Some tweaks around the code 2020-02-01 09:04:01 +01:00
kimocoder
653b77ac20 Add a simple check to prevent kernel panics from nullptr dereferences 2020-02-01 07:21:46 +01:00
kimocoder
658d3a5168 Report correct band in RX radiotap 2020-02-01 07:17:49 +01:00
kimocoder
19890f07a4 Restore 1mbps by default 2020-02-01 07:13:55 +01:00
kimocoder
2d29bdded9 Add xmit alloc retry 2020-02-01 07:06:42 +01:00
kimocoder
428454364a Add support for kernel v5.4 2020-01-20 08:00:34 +01:00
kimocoder
34258e769f Fix: pcap_activate status -8 and pcap_activate status -1 2020-01-11 20:30:27 +01:00
kimocoder
259dbca12b Fix a kernel 'oops' on adapter disconnect 2020-01-05 04:21:58 +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
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
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
82b14e8092 Fix alloc STA info 2019-11-14 19:58:52 +01:00