Commit Graph

5980 Commits

Author SHA1 Message Date
Tiago Gaspar
7e397cd22f kernel: net: add support for kernel tls
Add ktls (Kernel TLS) kmods to enable TLS support
in kernel (allowing TLS offload when the network
card supports it)

Signed-off-by: Tiago Gaspar <tiagogaspar8@gmail.com>
(added disabled symbols)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-05-21 23:21:32 +08:00
Christian Lamparter
1c3ef99b52 firmware: intel-microcode: update to 20230512
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
2023-05-21 23:18:18 +08:00
Daniel Golle
fdee542235 generic: fix Macronix SPI-NAND driver
Use scratch buffer for DMA operetations. Passing a pointer to a stack
variable won't work and results in bogus bit flips being reported.

Patch was submitted upstream and is part of Linux 6.3.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-20 23:35:14 +08:00
Daniel Golle
b3d39df1af mediatek: bpi-r3: allow up to 3W per SFP module
According to SinoVoip up to 3A @ 3.3V are available for both
SFP modules together. Raise energy limit from 1W (default) to 3W,
however, be aware that using modules consuming more than 1W will
require active cooling!

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-20 23:33:43 +08:00
AmadeusGhost
5b6c90520b mac80211: fixes nl80211 support in kernel 5.4
Run-tested-on: P&W R619AC 128M
Fixes: #11172, #11191
2023-05-19 22:27:54 +08:00
aakkll
d11884d08b
kernel: bump to 5.4.243, 6.1.29 (#11221) 2023-05-19 18:50:11 +08:00
David Bauer
52f16db9e4 iwinfo: update to latest HEAD
c9f5c3f devices: add MediaTek MT7981 WMAC compatible
b3888b2 devices: add compatible strings for Ralink WiSoCs

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-05-18 23:53:21 +08:00
David Bauer
1b65d382b2 mediatek: fix typo
Signed-off-by: David Bauer <mail@david-bauer.net>
2023-05-18 23:50:43 +08:00
Koen Vandeputte
a6f1cc5b59 kernel: add missing symbols in 5.15
Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
2023-05-17 13:25:11 +08:00
AmadeusGhost
88c143124a kernel: fixes 5.15/6.1 build error
Sorry for the delay, I was scolded all night
and I could only fix it until now.

Fixes: #11209, #11213, #11214
2023-05-17 01:40:15 +08:00
Daniel Golle
7640b82748 linux-firmware: move firmware file for mt7601u
The firmware file for mt7601u (MediaTek MT7601U Wireless MACs) has
been moved to the mediatek/ folder by commit
 8451c2b1 mt76xx: Move the old Mediatek WiFi firmware to mediatek

Address this by updating the location of the firmware file in our
linux-firmware Makefile generating the mt7601u-firmware package.

All other MediaTek Wi-Fi firmware files are supplied by OpenWrt's
own repository rather than being taken from linux-firmware.

Fixes: d53fe5d9ce ("linux-firmware: update to 20230515")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-16 23:54:37 +08:00
Daniel Golle
d3c7646942 linux-firmware: update to 20230515
Package offloading firmware for MT7981 which has been added to
linux-firmware recently and became available in this release.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-16 23:53:02 +08:00
shi JiaY
154993916a mt76: fix filogic target support 2023-05-15 23:28:11 +08:00
Felix Fietkau
50ce7409a3 bridger: update to the latest version
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-15 23:25:13 +08:00
Daniel Golle
2cabe4faf4 kernel: backport fix for recently introduced UBI bug
Import commit "ubi: Fix failure attaching when vid_hdr offset equals to
(sub)page size" which did not yet make it to stable upstream Linux trees.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-15 23:22:28 +08:00
AmadeusGhost
1769c5dfa2 rockchip: update mmc aliases for rk3568 boards 2023-05-14 22:58:51 +08:00
AmadeusGhost
9efea60e99 mt76: drop upstream patches 2023-05-14 22:56:12 +08:00
coolsnowwolf
c79f780fca
x86: switch to 6.1 2023-05-13 15:42:45 +08:00
coolsnowwolf
dc4d37c714
bcm53xx: switch to 5.10 2023-05-13 15:38:25 +08:00
coolsnowwolf
572eb1dc9d
kernel: bump 6.1 to 6.1.28 2023-05-13 15:13:38 +08:00
coolsnowwolf
52223ba9d6
rockchip: fix 5.15 pwm pinctrl-names 2023-05-12 14:55:48 +08:00
Felix Fietkau
bcc1a60fe8 kernel: remove unnecessary change from backlog threading fix
Fixes: f1c9bd6f6f41 ("kernel: fix kernel warning and network issue in the backlog threading patch")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-11 23:15:19 +08:00
Felix Fietkau
94eb140716 kernel: fix kernel warning and network issue in the backlog threading patch
Fixes enabling it early during the boot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-11 23:13:29 +08:00
Jan-Niklas Burfeind
d9c821597d sunxi: ensure NanoPi R1 has unique MAC address
Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.

The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.

[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec

Similar too and based on:

commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")

Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
2023-05-11 23:10:55 +08:00
Robert Marko
4fc044df14 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This replaces the 160MHz with the upstreamed one, fixes 6GHz only WIPHY
registration, allows SAR usage on WCN6750 and plenty of REO fixes.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-10 22:00:09 +08:00
Kabuli Chana
71a836b056 mwlwifi: update to version 10.3.9.1-20230429
resolve disconnect issue, upstream PR412

Signed-off-by: Kabuli Chana <newtownBuild@gmail.com>
2023-05-10 21:57:16 +08:00
AmadeusGhost
07ad0eefeb autocore: ethinfo: add dsa display support
Support display any interface name for dsa.
Drop ipq sfp workaround which is not needed.
Add workaround for br* (only this repo needs).
2023-05-09 23:57:26 +08:00
AmadeusGhost
416eefadb9 mtwifi/mt7603e: enable wifi led by default 2023-05-09 23:50:22 +08:00
AmadeusGhost
0f270a2436 ramips: 5.10: add basic dsa offload for mt7621 2023-05-09 00:29:19 +08:00
AmadeusGhost
ef12a97354 ramips: mt7621: add kernel 5.10 support with mtk_hnat 2023-05-08 23:50:09 +08:00
Shiji Yang
0db2337562 ramips: backport mt7621 PCIs initialization delay patch
The sender domain has a DMARC Reject/Quarantine policy which disallows
sending mailing list messages using the original "From" header.

To mitigate this problem, the original message has been wrapped
automatically by the mailing list software.
Some devices like ZBT WE1326 and ZBT WF3526-P and some Netgear models need
to delay phy port initialization after calling the mt7621_pcie_init_port()
driver function to get into reliable boots for both warm and hard resets.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
2023-05-08 23:38:36 +08:00
Chuanhong Guo
990cd1b3f1 ramips: mt7621: do memory detection on KSEG1
It's reported that current memory detection code occasionally detects
larger memory under some bootloaders.
Current memory detection code tests whether address space wraps around
on KSEG0, which is unreliable because it's cached.

Rewrite memory size detection to perform the same test on KSEG1 instead.
While at it, this patch also does the following two things:
1. use a fixed pattern instead of a random function pointer as the magic
   value.
2. add an additional memory write and a second comparison as part of the
   test to prevent possible smaller memory detection result due to
   leftover values in memory.

Fixes: 6d91ddf517 ("ramips: mt7621: add support for memory detection")
Reported-by: Rui Salvaterra <rsalvaterra@gmail.com>
Tested-by: Rui Salvaterra <rsalvaterra@gmail.com>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2023-05-08 23:35:21 +08:00
zxlhhyccc
258cc2154e
shortcut-fe: use tcp_be_liberal (#11188) 2023-05-07 23:50:45 +08:00
coolsnowwolf
4fbb5202f4 mt76: reseve for kernel 5.4 2023-05-07 02:00:08 +08:00
Daniel Golle
4fc24cc4ad mt76: add support for MT7981
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-05-06 00:18:36 +08:00
AmadeusGhost
081798a6ff mt76: add back kernel 5.4 support
Also refresh all patches.
2023-05-06 00:16:39 +08:00
coolsnowwolf
22de4c9868 kernel: bump 5.15 to 5.15.110 2023-05-05 13:37:38 +08:00
coolsnowwolf
f953b064c8 generic: 6.1: add MHI SBL callback for ath11k 2023-05-05 13:11:46 +08:00
Robert Marko
6402a2fa03 generic: 5.15: add MHI SBL callback for ath11k
This adds the MHI SBL callback that ath11k will utilize in order to
support multiple PCI cards or AHB+PCI combo which currently does not
work due to QRTR ID-s conflicting.

This is a prerequisite for the mac80211 patch targeting ath11k as it
uses MHI from kernel.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-05 12:38:14 +08:00
Eneas U de Queiroz
4155fca311 openssl: fix variable reference in conffiles
Fix the trivial abscence of $() when assigning engine config files to
the main libopenssl-config package even if the corresponding engines
were not built into the main library.

This is mostly cosmetic, since scripts/ipkg-build tests the file's
presence before it is actually included in the package's conffiles.

Fixes: 30b0351039 "openssl: configure engine packages during install"
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:36:22 +08:00
Eneas U de Queiroz
99a4abd0ff openssl: fix CVE-2023-464 and CVE-2023-465
Apply two patches fixing low-severity vulnerabilities related to
certificate policies validation:

- Excessive Resource Usage Verifying X.509 Policy Constraints
  (CVE-2023-0464)
  Severity: Low
  A security vulnerability has been identified in all supported versions
  of OpenSSL related to the verification of X.509 certificate chains
  that include policy constraints.  Attackers may be able to exploit
  this vulnerability by creating a malicious certificate chain that
  triggers exponential use of computational resources, leading to a
  denial-of-service (DoS) attack on affected systems.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

- Invalid certificate policies in leaf certificates are silently ignored
  (CVE-2023-0465)
  Severity: Low
  Applications that use a non-default option when verifying certificates
  may be vulnerable to an attack from a malicious CA to circumvent
  certain checks.
  Invalid certificate policies in leaf certificates are silently ignored
  by OpenSSL and other certificate policy checks are skipped for that
  certificate.  A malicious CA could use this to deliberately assert
  invalid certificate policies in order to circumvent policy checking on
  the certificate altogether.
  Policy processing is disabled by default but can be enabled by passing
  the `-policy' argument to the command line utilities or by calling the
  `X509_VERIFY_PARAM_set1_policies()' function.

Note: OpenSSL also released a fix for low-severity security advisory
CVE-2023-466.  It is not included here because the fix only changes the
documentation, which is not built nor included in any OpenWrt package.

Due to the low-severity of these issues, there will be not be an
immediate new release of OpenSSL.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2023-05-05 12:35:32 +08:00
AmadeusGhost
679e2ae168 iwinfo: refresh ralink patch 2023-05-04 17:26:04 +08:00
AmadeusGhost
2b5fdd941c network: sync wireless source code 2023-05-04 17:23:39 +08:00
Felix Fietkau
3167333946 mac80211: update to v6.1.24
Drop patches accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-04 17:20:37 +08:00
AmadeusGhost
26f3634631 rockchip: add h68k/h69k hardware v2 support
Hard-coded PHY id due to hardware problem.
2023-05-01 21:08:28 +08:00
AmadeusGhost
27cc27f2ac rockchip: enable photonicat modem power
Fixes: #10859
2023-05-01 21:05:12 +08:00
coolsnowwolf
7c84256de9 Version update to R23.5.1 2023-04-29 13:18:37 +08:00
aakkll
4f7eb15359
kernel: bump to 5.4.242, 6.1.26 (#11163)
Signed-off-by: aakkll <94471752+aakkll@users.noreply.github.com>
2023-04-29 13:13:03 +08:00
Felix Fietkau
585c2ca50e kernel: backport fix for a page pool related race condition
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:05:38 +08:00
Felix Fietkau
b204228846 kernel: fix mtk flow offload list corruption issue with l2 flows
The same node was accidentally used for two different lists, causing an
invalid pointer chain.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-04-28 00:03:16 +08:00