Commit Graph

171 Commits

Author SHA1 Message Date
Gunjan Gupta
7bb20d7063 uwe5622: reduce system load 2024-01-31 23:55:58 +05:30
Aurélien Jacobs
ae3d8ade60 Fix uwe5622 compilation with fortify 2024-01-17 22:51:14 +01:00
Paolo Sabatino
8786526914 rtl8723cs: fix driver compilation on kernel 6.7 2024-01-11 23:38:57 +01:00
Gunjan Gupta
2ea9d98656 xradio: remove upstreamed patch 2023-12-25 12:20:50 +05:30
Gunjan Gupta
03cbbdff7b driver-harness: fix compilation failure with 6.7 kernel as observed with allwinner kernels 2023-12-24 09:13:08 +01:00
Paolo Sabatino
af031aeefd uwe5622: tidy up patch files organization
* move uwe5622 driver patches into specific misc directory
 * remove "_allwinner" suffix in function call
2023-12-08 18:25:10 +01:00
Paolo Sabatino
2b342b2366 rockchip64: move uwe5622 adjust patch to misc 2023-12-08 18:25:10 +01:00
Gunjan Gupta
9131aac1c9 Switch entirely to fifteenhex repo for xradio driver as it performs better 2023-12-02 17:30:31 +05:30
Patrick Yavitz
dfec271b3a v3: rtw88: sdio: Honor the host max_req_size in the RX path
The 3rd revision of the patch has been applied upstream.
https://lore.kernel.org/linux-wireless/87cyvqsabo.fsf@kernel.org/T/#t

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-12-01 16:26:19 +03:00
Patrick Yavitz
e43a03811f patch: misc: rtw88: 6.1: 6.1.63 fixups
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/net/wireless/realtek/rtw88/debug.c?id=v6.1.63&id2=v6.1.62

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-11-20 17:41:19 +05:30
Patrick Yavitz
2fa2277672 patch: misc: rtw88: 6.7
linux 6.7.y support

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-11-17 17:19:53 +01:00
Alban Browaeys
312738fa70 Revert "Add a patch that breaks compilation of wifi driver 8723ds on a kernel 6.6 (#5912)"
Fix is now merged in upstream master branch.

This reverts commit 563de0bd8a.
2023-11-17 06:47:47 +01:00
Igor
563de0bd8a
Add a patch that breaks compilation of wifi driver 8723ds on a kernel 6.6 (#5912)
+ attach sources to commmit ID
2023-11-14 18:21:21 +01:00
Igor
dc5d461c95
Move Makefile section from patch (#5909)
There are many changes in this file and its impossible to cover this with a patch for now current and all kernels back
We are using same hack in UWE drivers.
2023-11-14 12:04:15 +01:00
Gunjan Gupta
2980065b8c uwe5622: Fix kernel warning for incorrect netdev-dev_addr 2023-10-20 17:37:40 +05:30
Patrick Yavitz
bf7a249972 patch: misc: rtw88: update TX power along with regulations
The new regulation of China has been released, so update to the latest
TX power table that also includes some changes of QATAR and UK.

https://lore.kernel.org/linux-wireless/20231004085051.205683-1-pkshih@realtek.com/T/#t

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-11 11:06:11 +02:00
Patrick Yavitz
44eb3e2424 patch: misc: rtw88: 6.1: wireless-next 2023-10-06
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-10-11 11:06:11 +02:00
Ricardo Pardini
41d79906c3 rockchip64 + sunxi*: drivers_network: add patch for uwe5622, fixing build on 6.6.y 2023-10-03 13:54:03 +02:00
c0rnelius
7c8252b26f
RTW88: 6.5: Upstream wireless: 2023-09-23 (#5735)
Upstream code has trickled down into 6.5.y, so adjust patching
accordingly.

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-23 09:15:04 -04:00
Gunjan Gupta
2d0447b391 uwe5622: fix compilation for sunxi64 on 6.3+ kernels 2023-09-19 20:08:18 +02:00
Igor Pecovnik
71740f87f5 Fix uwe5622 driver patch 2023-09-13 13:14:43 +02:00
Patrick Yavitz
50bc272443 PARTIAL REVERT: re-add rtw88 linux-6.2 / 6.3
Re-add rtw88 patches for kernels 6.2 and 6.3 as they are
still used.

001 and 002 have been merged into one patch to match the changes
made in PR: https://github.com/armbian/build/pull/5697

Resolves: https://github.com/armbian/build/pull/5699
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-12 14:26:50 +02:00
c0rnelius
fdc1966847
RTW88: linux-6.x.y (#5697)
This is just a cosmetic change. Patches have been consolidated
into one patch within each corresponding linux version directory.

Added: linux-6.6 (RC-1)
Removed: linux-6.2/6.3

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-11 20:18:36 -04:00
Patrick Yavitz
5382fbdd13 RTW88: linux 6.4 / 6.5 adjustments
Remove duplicate label and correct goto err_release_hw placement.

drivers/net/wireless/realtek/rtw88/usb.c: In function ‘rtw_usb_probe’:
drivers/net/wireless/realtek/rtw88/usb.c:878:1: error: duplicate label ‘err_free_rx_bufs’
  878 | err_free_rx_bufs:

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-09-07 07:50:28 +02:00
amazingfate
6d981baba6 rockchip64: bump rockchip64-edge kernel to 6.5 2023-09-04 14:55:50 +02:00
Gunjan Gupta
46e756540e xradio: fix compilation for 6.1+
Also added some cleanup fixes to silence some of the compiler warnings,
fixes for issues during inserting and removing xradio module and fixes
for possible data corruption on vmmaped stack.

All of these fixes were taken from https://github.com/fifteenhex/xradio
2023-09-04 14:37:10 +02:00
c0rnelius
dbe8ea49b0
patch: misc: rtw88: wireless-next: 2023-08-25 (#5653)
* patch: misc: rtw88: wireless-next: 2023-08-25

Updated: 6.1 / 6.4
Added: 6.5

For doc sake, this update makes 6.1 slightly differrent than 6.4 and
6.5 in one particular area of main.c.

As shown here:
7746e2fa87

6.1 requires we use del_timer_sync, where the above releases use
timer_delete_sync.

Tested-on: ODROID-C4 X96-AIR BPI-CM4 (linux 6.x.y)
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

* driver_rtw88: `linux-version compare "${version}" ge 6.1`

Suggested-by: @viraniac
Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>

---------

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-08-29 13:15:59 -04:00
Gunjan Gupta
36f0425358 rtl8811CU, rtl8723cs: Fix module build failure on 6.5 kernel 2023-08-23 20:52:25 +02:00
Igor Pecovnik
fb4774e2f4 Add two popular MT7921U devices to the driver pid so they work OOB
Signed-off-by: Igor <igor@armbian.com>
2023-08-20 19:19:44 +02:00
Paolo
c27739943d
rockchip64: bump rockchip64-edge kernel to 6.4 (#5552)
undefined
2023-08-04 10:39:13 +02:00
Igor Pecovnik
6c80e42899 Fix wireless patches introduced in https://github.com/armbian/build/pull/5533
It seems condition was too optimistic so we need to apply additional change.
2023-07-29 21:20:03 +02:00
Julian Sikorski
3d7e67431f Fix compiling rtl8189es, rtl8189fs and rtl8192eu 2023-07-29 15:47:24 +02:00
c0rnelius
3c1e44291e
rtw88: 6.4.7: drivers/net/wireless/realtek/rtw88/sdio.c (#5521)
The following patch has landed in linux-6.4.7 and can be removed.
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/net/wireless/realtek/rtw88/sdio.c?id=v6.4.7&id2=v6.4.6

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
Co-authored-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-27 06:18:49 -04:00
Patrick Yavitz
88a19f5d82 drivers: net: wireless: realtek: rtw88: upstream-wireless
This commit is cosmetic; git format-patch

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-23 17:00:03 +02:00
Gunjan Gupta
84e4a26bb0 Update wireless-rtl88x2bu-wireless-ignore-stale-kickoff-removal.patch
Modified final value to be less than 6.4.4 rather than 6.5.0
2023-07-20 01:04:32 +02:00
Gunjan Gupta
b7c422ee51 Update wireless-rtl88x2bu-wireless-ignore-stale-kickoff-removal.patch
Fix missing parenthesis
2023-07-20 01:04:32 +02:00
Gunjan Gupta
4ac9ca966f Modify condition to include 6.2.0 to 6.3.13 kernel range 2023-07-20 01:04:32 +02:00
Igor Pecovnik
64d7b46421 Extending https://github.com/armbian/build/pull/5484 to K6.1.y 2023-07-20 01:04:32 +02:00
Patrick Yavitz
888cb714ac patch: misc: rtw88: 6.4: upstream wireless
Adjusted patching in mac80211.c and usb.c to reflect update in Linux 6.4.4

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/net/wireless/realtek/rtw88/mac80211.c?id=v6.4.4&id2=v6.4.3
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/net/wireless/realtek/rtw88/usb.c?id=v6.4.4&id2=v6.4.3

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-19 23:14:42 +02:00
Alban Browaeys
99ca2142a6 Fixup for stale kickoff removal in wireless regulator API
Cope with the fix in stable 6.3.13 bf353116d1bf and 6.5-rc1 e8c2af660ba0
"wifi: cfg80211: fix regulatory disconnect with OCB/NAN".
That is the removal of REGULATORY_IGNORE_STALE_KICKOFF
from the wireless regulator internal API to fix any driver
that allowed OCB/NAN.

Note this code will need to be expanded once and if 6.4 include the
above fixup.

Signed-off-by: Alban Browaeys <alban.browaeys@gmail.com>
2023-07-18 14:16:50 +02:00
Patrick Yavitz
f97126b8e9 patch: misc: rtw88: 6.3: upstream wireless
Adjusted patching in usb.c to reflect update in Linux 6.3.13 (EOL)
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/diff/drivers/net/wireless/realtek/rtw88/usb.c?id=v6.3.13&id2=v6.3.12

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-12 12:24:04 +02:00
Patrick Yavitz
2b5e341220 rtw88: sdio: honor the host max_req_size in the rx path
Use multiple consecutive reads in rtw_sdio_read_port() to limit the number of bytes which are copied by the host from the card in one MMC/SDIO transfer. This allows receiving a buffer that's larger than the hosts max_req_size (number of bytes which can be transferred in one MMC/SDIO transfer). As a result of this the skb_over_panic error is gone as the rtw88 driver is now able to receive more than 1536 bytes from the card (either because the incoming packet is larger than that or because multiple packets have been aggregated).

Signed-off-by: Patrick Yavitz <pyavitz@xxxxx.com>
2023-07-11 11:15:15 +02:00
Patrick Yavitz
6e6ed0e88e patch: misc: rtw88: decrease the log level of tx report
Reduce 'failed to get tx report from firmware' dmesg spam.
https://lore.kernel.org/linux-wireless/20210713104524.47101-1-pkshih@realtek.com/

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-07-01 23:44:02 +02:00
Patrick Yavitz
da0f7467a4 patch/misc/rtw88: wireless-next 2023-06-22
This brings the patch set up to 2023-06-22 wireless-next

Drivers tested;
8822CS. 8821CU and 8723DS

Notables;
Not seeing random dmesg spam `rtw_8822cs failed to get tx report from firmware` which I would see on both the CS and CU from time to time.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-26 13:46:40 +02:00
Patrick Yavitz
988c5f762b patch: misc: rtw88: fix action frame transmission fail before association
For combo chips, antennas were controlled by bluetooth only during power on. If WiFi wish to do transmission, notification to the coexistence module are required. Previously we only do this before authentication. To allow transmission before auth, such as management TX, now we start the initiation of coexistence earlier so antennas are shared between WiFi and bluetooth after set_channel(), and frames could then be sent.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-19 22:06:47 +02:00
Patrick Yavitz
7c4874a70b patch: misc: rtw88: backport updates v2
Linux 6.1.34 / 6.3.8
Bits of code from upstream creeped down into LTS and Stable, creating fails and false skips. The offending code has been removed from the patch set.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-19 22:06:47 +02:00
Patrick Yavitz
bea8a7cde9 patch: misc: rtw88: temporary workarounds
Review patches for information on the subject.
Tested on: BPI-CM4, X96-AIR and Tinkerboard R2

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-19 22:06:47 +02:00
Patrick Yavitz
61aee9857c patch: misc: rtw88: 6.1 / 6.2 / 6.3 / 6.4: backport updates
Patch set includes a complete backport of RTW88 as it currently stands, along with extras

Extra:
Patch: RTL8723DS (SDIO)
Patch: _rtw_download_firmware()  warn: missing unwind goto?

Hack: SDIO RX Aggregation Limiting
I only have two units available to me with an 8822CS module and in my testing this is only required on the BPI-CM4IO. With out LIMITING the unit will either kernel panic or not be able to send or receive.

This is currently being looked into:
https://lore.kernel.org/linux-wireless/CAFBinCBaXtebixKbjkWKW_WXc5k=NdGNaGUjVE8NCPNxOhsb2g@mail.gmail.com/T/#u

It may be possible to just set LIMITING across all builds, but that to me seems like a poor choice. This requires testing.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-19 22:06:47 +02:00
Ricardo Pardini
5ebbe5c4f6 kernel: drop dead code & patches from long-disabled kernel-drivers.sh/drivers_network.sh stuff
- this has been dead code (never called) for some 6 months now
- having it there makes it hard to find the actual/real callpoints of non-dead code
2023-06-14 15:55:27 +02:00
Patrick Yavitz
032db0522d AGAIN: RTW88: SDIO driver via patches for Linux 6.1/6.2/6.3
Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-06-02 19:38:14 +02:00