189 Commits

Author SHA1 Message Date
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
Vyacheslav Bocharov
0758dfa6bd This add support for RTW88 SDIO driver via patches for 6.1/6.3 kernel
Additional driver support:
    Realtek 8822BS SDIO wireless network adapter
    Realtek 8822BU USB wireless network adapter
    Realtek 8822CS SDIO wireless network adapter
    Realtek 8822CU USB wireless network adapter
    Realtek 8821CS SDIO wireless network adapter
    Realtek 8821CU USB wireless network adapter

Revert "Revert "BPI-CM4 IO: RTW88: `Realtek 8822CS SDIO` `Wireless Support`"":

This reverts commit 672bd5393af1d8d59cad02462bc52980f1a99dfd.
This restore commit 3f169bcae25557e60fe9fec613ab2a5bcf8219ac.

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
Signed-off-by: Vyacheslav Bocharov <adeep@lexina.in>
2023-06-01 08:10:45 +02:00
Vyacheslav Bocharov
672bd5393a Revert "BPI-CM4 IO: RTW88: Realtek 8822CS SDIO Wireless Support"
This reverts commit 3f169bcae25557e60fe9fec613ab2a5bcf8219ac.
2023-05-26 14:07:04 +02:00
Patrick Yavitz
3f169bcae2 BPI-CM4 IO: RTW88: Realtek 8822CS SDIO Wireless Support
Additional driver support:
Realtek 8822BS SDIO wireless network adapter
Realtek 8822BU USB wireless network adapter
Realtek 8822CS SDIO wireless network adapter
Realtek 8822CU USB wireless network adapter
Realtek 8821CS SDIO wireless network adapter
Realtek 8821CU USB wireless network adapter

Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
2023-05-26 07:37:28 +02:00
Ricardo Pardini
9d90dcd3d4 drivers_network: uwe5622: park-link-v6.2-only.patch only for 6.2.y 2023-05-26 07:35:05 +02:00
Ricardo Pardini
38bda3ac57 drivers_network: wireless-driver-for-uwe5622-park-link-v6.1-post: fix for 6.1.30 2023-05-25 05:09:49 +02:00
Ricardo Pardini
0cf457b2ef kernel: drivers: wireless-rtl8723du-6.3.patch: don't patch the same thing twice 2023-05-24 19:21:42 +02:00
Ricardo Pardini
88cc3a061f drivers: uwe5622 for 6.3.y, by @paolosabatino 2023-05-16 08:55:33 +02:00
amazingfate
0b5dc0c921 fix uwe5622 for kernel v6.3 2023-05-06 12:55:10 +02:00
Vyacheslav Bocharov
64f434ab33 Revert "fix rtl88x2cs compilation for kernel 6.3" as fixed in rtl88x2cs repository.
This reverts commit dc9f751012b43e690a9341d63bd6950709a4dd44.
2023-05-02 12:04:51 +03:00
Ricardo Pardini
dc9f751012 fix rtl88x2cs compilation for kernel 6.3 2023-04-28 21:32:29 +02:00
Paolo Sabatino
0d5fe62403 fix rtl8723cs compilation for kernel 6.3 2023-04-27 21:29:42 +02:00
Paolo Sabatino
8c4a35bfb0 fix rtl88x2bu compilation on kernel 6.3 2023-04-27 21:29:22 +02:00
Paolo Sabatino
f2d9756bb0 fix rtl8812au compilation for kernel 6.3 2023-04-27 21:29:02 +02:00
Paolo Sabatino
c9da5ca219 fix patch 2023-04-27 21:28:10 +02:00
Paolo Sabatino
be0ecb1f16 fix rtl8723du compilation on kernel 6.3 2023-04-27 21:28:10 +02:00
Paolo Sabatino
3e28c86a05 fix rtl8811cu compilation for kernel 6.3 2023-04-27 21:27:49 +02:00
Paolo
fd022527f3
sunxi, media: Realtek rtl8723cs driver consolidation (step 2) (#4924)
* sunxi: remove rtl8723cs patches from sunxi-edge (6.2)
 * adjust minor pinephone patch
* media: remove rtl8723cs patches from media-edge
* media: remove rtl8723cs patches from media-current (6.1)
* sunxi: reinstate rtl8723cs patches for sunxi-6.1 and disable them
* sunxi: reinstate rtl8723cs patches for 6.2 and disable them
2023-03-10 19:15:10 +01:00
Paolo Sabatino
6132e2c0fd consolidation of rtl8723cs staging driver for kernel 6.1 onwards
* main source for driver and patches are sunxi64 megous patches
* move into patch/misc/wireless-rtl8723cs directory
* integrate with minor patches from rk322x/rockchip64 families
* update drivers_network.sh to apply patches in same order as before
* remove references from patches.megous and series.conf in sunxi64
* remove patches from rk322x and rockchip64 family patches
* do not touch kernel archives older than 6.1
2023-03-08 11:54:31 +01:00
Ricardo Pardini
e98c66b859
armbian-next: general-packaging, mkdebian and builddeb are NO MORE 2023-02-18 07:38:49 -03:00
Torndeco
66ceaf3b7e
Fix: Python2 Paths for Legacy Kernel v5.10 with Edge Release (#4818)
* Fix: Python2 Paths for Legacy Kernel v5.10 with Edge Release

* Move v5.10 python2 check to kernel-bootsplash-and-drivers.sh
2023-02-12 15:22:16 +01:00
Ivan Podogov
2a766ce0ad Fix wireless modules indentation warnings 2023-02-03 21:37:07 +00:00
M. Efe Çetin
5c487194e0
Split wireless VFS patches (#4775) 2023-02-03 10:03:11 +01:00
Paolo
e9fa7caa6c
sunxi64: fix uwe5622 compile on current 5.15 kernel (#4772) 2023-01-31 17:39:26 +01:00
Paolo
79019296d8
rockchip64: consolidation for uwe5622 driver, v6.1 kernel compatibility (#4766) 2023-01-30 17:28:37 +01:00
Vyacheslav
3e6188f5ed
[AR-1527] Remove unnecessary patches for rtl8822cs (#4768) 2023-01-30 17:28:23 +01:00
M. Efe Çetin
411b607e46
Add some Wireless modules to RK3588 legacy kernel (#4759)
* Add some Wireless modules to RK3588 legacy kernel

* Add some Wireless modules to RK3588 legacy kernel

* Add some Wireless modules to RK3588 legacy kernel
2023-01-27 23:19:08 +01:00
Kirill
e1482b1e9a
Fix uninitialized cfg80211_chan_def for rtlwifi (#4714)
Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2023-01-22 08:40:27 +01:00
Igor Pečovnik
6d38906c8d
Move UWE5622 from kernel patches to misc (#4723)
Todo: Compare and unify with the driver that floats in Rockchip patches
2023-01-22 08:40:12 +01:00
Kirill
58cc85f3b7
Make different MAC for if1 (#4716) 2023-01-20 18:44:04 +01:00
Kirill
4c5f202e50
rtlwifi: Fix p2p-go advertising (#4717) 2023-01-20 18:43:53 +01:00
Kirill
ba48245f29
RTL8189FS: Fix P2P-GO advertising (#4661)
* RTL8189FS: fix P2P-GO adverising

* Add patch to drivers_network.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2023-01-07 21:05:30 +01:00
Kirill
c8c6f91e78
RTL8189FS: Fix and enable secondary iface (wlan1) (#4662)
* RTL8189FS: Fix and enable wlan1

* fix paths in the patch
2023-01-07 20:58:43 +01:00