Commit Graph

58514 Commits

Author SHA1 Message Date
Lucas Asvio
c4ee92bffd r7800-NSS v23.05.4: adjust config default 2024-07-26 08:41:56 +02:00
Lucas Asvio
c71bb1f99a feeds: change luci feeds to support QAM-256 2024-07-26 08:37:10 +02:00
Lucas Asvio
78b3215a44 mac80211: update support for QAM-256 in 2.4GHz 2024-07-26 08:33:39 +02:00
Hauke Mehrtens
c0d23fe8a4 mac80211: Fix wifi throughput
Backport 2 patches from upstream Linux to fix a Wifi throughput
problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-26 08:31:41 +02:00
Lucas Asvio
e9738b8ecc mac80211: fix and refresh NSS support patch 2024-07-26 08:31:41 +02:00
Lucas Asvio
368aa5067d mac80211: refresh patch to change MS2TIME to 5-50 ms 2024-07-26 08:31:41 +02:00
Lucas Asvio
50c64ad26a mac80211: refresh regular mac80211 patches 2024-07-17 20:22:22 +02:00
Lucas Asvio
68d613d3ba kernel: ipq806x: refresh a qca-nss patch to kernel 5.15.162 2024-07-17 12:45:28 +02:00
Lucas Asvio
5be5f70c7d config: basic config for r7800 with nss support
made a copy to .config (cp r7800-nss-config .config) and make defconfig
or make menuconfig.
2024-07-17 12:25:05 +02:00
Lucas Asvio
a963b82a60 mac80211: change MS2TIME to 5-50 ms 2024-07-17 12:25:05 +02:00
Lucas Asvio
234111fe2b fix nss tx error in case a router in client mode is connected 2024-07-17 12:25:05 +02:00
Lucas Asvio
05d9ad98ef feeds: change nss feed 2024-07-17 12:25:01 +02:00
Lucas Asvio
1f9bb38574 kernel: ipq806x: refresh qca-nss patches to kernel 5.15.158 2024-07-17 12:24:21 +02:00
Lucas Asvio
0c46a544d9 fix ath10k-ct support for qam-256 in 2.4GHz 2024-07-17 12:24:21 +02:00
Lucas Asvio
2d354a9ccd mac80211: Proper mark iTXQs for resumption
When a running wake_tx_queue() call is aborted due to a hw queue stop
the corresponding iTXQ is not always correctly marked for resumption:
wake_tx_push_queue() can stops the queue run without setting
@IEEE80211_TXQ_STOP_NETIF_TX.

Without the @IEEE80211_TXQ_STOP_NETIF_TX flag __ieee80211_wake_txqs()
will not schedule a new queue run and remaining frames in the queue get
stuck till another frame is queued to it.

Fix the issue for all drivers - also the ones with custom wake_tx_queue
callbacks - by moving the logic into ieee80211_tx_dequeue() and drop the
redundant @txqs_stopped.

@IEEE80211_TXQ_STOP_NETIF_TX is also renamed to @IEEE80211_TXQ_DIRTY to
better describe the flag.

Fixes: c850e31f79f0 ("wifi: mac80211: add internal handler for
wake_tx_queue")
Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
2024-07-17 12:24:21 +02:00
Lucas Asvio
6963cf2300 add and support for vendor_vht option 2024-07-17 12:24:21 +02:00
Lucas Asvio
4017fda1d6 add support for QAM-256 in 2.4GHz 2024-07-17 12:24:21 +02:00
Lucas Asvio
1f7bd35337 fix feeds 2024-07-17 12:24:18 +02:00
Lucas Asvio
44c95e94cb kernel: ipq806x: refresh qca-nss patches to kernel 5.15.155
kernel: ipq806x: refresh qca-nss patches to kernel 5.15.150
2024-07-17 12:22:58 +02:00
Lucas Asvio
9e8407bc86 add sqm script 2024-07-17 12:22:58 +02:00
Andrew Robbins
7a367fa02a refresh patches for 5.15.127 2024-07-17 12:22:58 +02:00
ACwifidude
c9d77ca73f fix qca-mcs-support patch 2024-07-17 12:22:58 +02:00
ACwifidude
42e3c946cd fix socinfo patch 2024-07-17 12:22:58 +02:00
ACwifidude
f00730c28b Revert "kernel: remove obsolete netfilter tcp window size check bypass patch"
This reverts commit 75e78bcaab.
2024-07-17 12:22:58 +02:00
ACwifidude
bd0d918f57 Add onhub NSS support 2024-07-17 12:22:58 +02:00
ACwifidude
5f1c49fbdc fix mac80211 NSS patch 2024-07-17 12:22:58 +02:00
Takashi ISHIKAWA
08a193b149 ipq806x: fix l2tpv2 and tunipip6 NSS offloading, add WG2600HP support
ipq806x: add NEC WG2600HP NSS offloading support
ipq806x: fix qca-nss-l2tpv2 compile
ipq806x: fix qca-nss-tunipip6 lock
ipq806x: fix kernel panic at /sys/kernel/debug/qcom_socinfo/*/*

Signed-off-by: Takashi ISHIKAWA <tishi-github@tthy.org>
2024-07-17 12:22:58 +02:00
ACwifidude
75b3a2eb9c dmac clean range patch 2024-07-17 12:22:58 +02:00
Qosmio
a2e0c4c79f ipq806x: Fix incorrect pointer type .parent_names to parent_data
drivers/clk/qcom/gcc-ipq806x.c:3195:33: error: initialization of 'const char * const*' from incompatible pointer type 'const struct clk_parent_data *' [-Werror=incompatible-pointer-types]
 3195 |                 .parent_names = gcc_pxo_pll8_pll14_pll18_pll0,
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-07-17 12:22:58 +02:00
Qosmio
b770aee67b ipq806x: Fix Reference to non-existent node or label "smb208_s1b"
ERROR: Input tree has errors, aborting (use -f to force output)

arch/arm/boot/dts/qcom-ipq8064.dtsi:1686.14-1698.5: ERROR (phandle_references): /soc/amba/nss-common: Reference to non-existent node or label "smb208_s1b"
2024-07-17 12:22:58 +02:00
ACwifidude
e53c8dd94a ipq806x: NSS Hardware Offloading dts patch 2024-07-17 12:22:58 +02:00
Lucas Asvio
c91f23136b Add NSS Package Feed 2024-07-17 12:22:54 +02:00
ACwifidude
6e08227acc ipq806x: Optimize CPU up threshold 2024-07-17 12:22:14 +02:00
ACwifidude
46685601f0 ipq806x: NSS Hardware Offloading mac80211 support 2024-07-17 12:22:14 +02:00
ACwifidude
b2f792a8ce ipq806x: NSS Hardware Offloading iproute2 patches 2024-07-17 12:22:14 +02:00
ACwifidude
0d4fca4a8b ipq806x: NSS Hardware Offloading additional patches 2024-07-17 12:22:14 +02:00
ACwifidude
02be978d69 ipq806x: NSS Hardware Offloading qdisc patches 2024-07-17 12:22:14 +02:00
ACwifidude
f840e7529f ipq806x: NSS Hardware Offloading Target Core and ECM patches 2024-07-17 12:22:14 +02:00
ACwifidude
e41b855f06 ipq806x: NSS Hardware Offloading Target Files 2024-07-17 12:22:14 +02:00
ACwifidude
cddec68306 ipq806x: NSS Hardware Offloading Config5-15 2024-07-17 12:22:14 +02:00
Hauke Mehrtens
b9510660ce OpenWrt v23.05.4: adjust config defaults
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-07-16 23:51:19 +02:00
Paul Spooren
d8dd03c46f build: include tests/Makefile if available
Testing OpenWrt is important, and there is a test suite in the making.
For maximum convenience and minimal CI over-usage, make it simple to run
tests locally. The main Makefile now attempts to include
`tests/Makefile` and silently fails if it doesn't.

While the test suite[1] is still young, it provides good examples of how
to test things around OpenWrt: starting with shell scripts using
`bats`[2], followed by QEMU tests, and finally real device tests using
LabGrid[3]. This could lead to the creation of the best OpenWrt version
yet.

Please consult the `openwrt-tests.git` README.md for details on the
setup. Once installed you may run commands like the following:

* make tests/shell  # run shell tests
* make tests/x86-64 # run  and test x86/64 in QEMU

[1]: http://github.com/aparcar/openwrt-tests/
[2]: https://bats-core.readthedocs.io
[3]: https://labgrid.readthedocs.io

Signed-off-by: Paul Spooren <mail@aparcar.org>
Link: https://github.com/openwrt/openwrt/pull/15647
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit a8ff0c1b7e)
2024-07-16 00:14:18 +02:00
Hauke Mehrtens
84b000e5d0 wolfssl: Update to version 5.7.2
This fixes multiple security problems:
 * [Medium] CVE-2024-1544
   Potential ECDSA nonce side channel attack in versions of wolfSSL before 5.6.6 with wc_ecc_sign_hash calls.

 * [Medium] CVE-2024-5288
   A private key blinding operation, enabled by defining the macro WOLFSSL_BLIND_PRIVATE_KEY, was added to mitigate a potential row hammer attack on ECC operations.

 * [Low] When parsing a provided maliciously crafted certificate directly using wolfSSL API, outside of a TLS connection, a certificate with an excessively large number of extensions could lead to a potential DoS.

 * [Low] CVE-2024-5991
   In the function MatchDomainName(), input param str is treated as a NULL terminated string despite being user provided and unchecked.

 * [Medium] CVE-2024-5814
   A malicious TLS1.2 server can force a TLS1.3 client with downgrade capability to use a ciphersuite that it did not agree to and achieve a successful connection.

 * [Medium] OCSP stapling version 2 response verification bypass issue when a crafted response of length 0 is received.

 * [Medium] OCSP stapling version 2 revocation bypass with a retry of a TLS connection attempt.

Unset DISABLE_NLS to prevent setting the unsupported configuration
option --disable-nls which breaks the build now.

Link: https://github.com/openwrt/openwrt/pull/15948
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 3a0232ffd3)
2024-07-16 00:05:18 +02:00
Leon M. Busch-George
d3552ccb17 mediatek: filogic: prevent faulty mac address assignment
The vendor U-Boot on the Cudy M3000 and the Yuncore AX835 assign random
mac addresses on boot and set the 'local-mac-address' property which
prevents Openwrt from assigning the correct address from evmem.

This patch removes the alias for ethernet0 so that U-Boot doesn't add the
property, removes the workaround from 02_network, and adds back the nvmem
definition for the M3000.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
(cherry picked from commit a55ab9e134)
2024-07-15 16:13:59 +02:00
Leon M. Busch-George
74df6ce9db mediatek: filogic: add support for Cudy M3000 v1
Hardware:
  SoC:     MT7981b
  RAM:     256 MB
  Flash:   128 MB SPI NAND
  Ethernet:
    1x 2.5Gbps (rtl8221b)
    1x 1Gbps (integrated phy)
  WiFi:    2x2 MT7981
  Buttons: Reset, WPS
  LED:     1x multicolor

Solder on UART:
  - remove rubber ring on the bottom
  - remove screws
  - pull up the cylinder, maybe help by push on an ethernet socket with a screwdriver
  - remove the (3) screws holding the board in the frame
  - remove the board from the frame to get to the screws for the silver, flat heat shield
  - remove the (3) screws holding the heat shield
  - solder UART pins to the back of the board
    - make sure to have the pins point out on side with the black, finned heat spread
    - the markings for the pins are going to be below the silver heat shield
    - Vcc is not needed

If you don't intend on using the UART outside of the installation process, you might not
want to solder:

  - carefully scrape off the thin layer of epoxy on the holes (not the copper)
  - place your pin header with the UART attached in the holes
  - the pins, starting with the one closest to the socket:
    - Vcc (not required)
    - GND
    - RX
    - TX
  - either wedge the header or hold it with your fingers so that the pins stay in contact with the board

Installation (UART):
  - attach an Ethernet cable to the 1Gbps port (black) on the router
  - hold the reset button while powering the router
  - press CTRL-C or wait for the timeout to get to the U-Boot prompt
  - prepare a TFTP server on the network to supply ..-initramfs-kernel.bin
  - use 'tftpboot' in the U-Boot shell to pull the image
  - boot the image using 'bootm'
  - push the ..-sysupgrade to the router using your preferred method
  - perform the upgrade with 'sysupgrade -n'

There is a recovery mechanism that involves fetching a file called 'recovery.bin' but that is not understood yet.

Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
(cherry picked from commit 20e4a18feb)
2024-07-15 16:12:33 +02:00
Tianling Shen
a0645675d4 uboot-mediatek: enable rootwait for jdcloud re-cp-03
Sometimes the mmc deivce may come up later than kernel attempts to
mount rootfs, resulting kernel panic. Enable rootwait to fix it.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-15 16:10:16 +02:00
Daniel Golle
9f739daf05 uboot-mediatek: fix patch order
Make sure patch sequence number is unique by moving patch
440-add-jdcloud_re-cp-03.patch -> 441-add-jdcloud_re-cp-03.patch

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
(cherry picked from commit 2302a7c5ad)
2024-07-15 16:10:06 +02:00
Tianling Shen
84ecd7c939 mediatek: fix lan/wan macaddr for jdcloud re-cp-03
The MAC address assigned to lan/wan was reversed.

Fixes: 6e51ff88b0 ("mediatek: add support for JDCloud RE-CP-03")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-07-15 16:07:15 +02:00
Rafał Miłecki
9276bb1cf5 ath79: replace "mac-address-ascii" with "mac-base"
With upstream accepted "mac-base" binding there is no need for a
downstream "mac-address-ascii" workaround anymore.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit daaa0c1b25)
Link: https://github.com/openwrt/openwrt/pull/15917
2024-07-15 09:59:31 +02:00
Jo-Philipp Wich
553a7a3265 ucode: update to Git 1a8a0bcf725520820802ad433db22d8f64fbed6c (2024-07-11)
96f74b5be829 ubus: make ubus_context first in uc_ubus_connection_t
7e5830edfb38 nl80211: fix datatype of NL80211_BAND_IFTYPE_ATTR_HE_CAP_{MAC,PHY} attrs
5c8fd34bac42 nl80211: fix parsing of NL80211_BAND_ATTR_VHT_MCS_SET attribute
e8d4e4fe967d nl80211: fix decoding of NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET attribute
30a3f7ad0433 rtnl: store callback in listener registry only on success
9cbe8294909f rtnl: optimize reception of rtnl events
534417132e18 rtnl: increase event socket rx buffer size limit to 1 MiB
3f9811d2f7b7 compiler: close upvalues on loop control statements
ee4af9b55cb4 vm: rework object iteration
a275399dd8e2 uci: refactor uci.changes() to match documentation
1220992631d5 ubus: automatically clear error information
d6fd94014eea uci: automatically clear error information
99837f280b61 uloop: automatically clear error information
ba3855ae3775 lib: fix documentation typo for `pop()` function
be767ae197ba vm: rework `in` operator semantics
4ade84e8fb81 ubus: add explicit support for deferring incoming requests
cfe137be068a uci: remove incorrectly documentated reorder() parameter
e8d78a26da0c lib: introduce socket library
a0ad1d127ae6 build: fix symbol and library detection
674f65ee551d jsdoc: disable default module titles
a33d16a86493 socket: rework error handling
e2b81d869222 uloop: add documentation
953f36c96e8a socket: make socket.send() accept non-string data
f211d5ac666f ubus: fix uc_ubus_have_uloop for eloop+uloop combination
0662de64bd1f socket: add AF_PACKET socket type support
b594ff8a2841 socket: remove leftover debug code
0d823e702bfe socket: fix addrinfo() with omitted service argument
8cf816d615fd socket: fix potential memory leak in connect()
8f5f231d66cd socket: optimize poll() argument handling
36f106056069 socket: remove wrong documentation fragment
525fca224012 socket: uv_to_sockaddr(): fix length calculation for AF_UNIX addresses
3938645ad9e3 socket: support IPv6 addresses in struct conversion routines
3a586dc7ddbe socket: improve uc_socket_connect() behavior
7b269f1cd3d2 socket: improve uc_socket_listen() behavior
fc6f2b89febf socket: handle further socket option value types
d6f25797dad1 socket: add IPv6 socket options
7611487b9a05 socket: implement recvmsg(), sendmsg() and cmsg support
d2e44bfa8b54 core-lib: improved documentation
e0bab40c8578 fs: add truncate() file method
5d305cfb2ab7 fs: add lock() file method
8b0318f7fabe lib: introduce zlib library
73644a036f5a nl80211: move access to tb array out of uc_nl_convert_attr and below
6e3cf83a77a7 nl80211: add support for multi-attribute arrays
6ff24d5488a9 nl80211: update nl80211.h to latest wireless-next
abc2aef28641 nl80211: add wiphy multi-radio support

Fixes: https://github.com/jow-/ucode/issues/186
Fixes: https://github.com/jow-/ucode/issues/187
Fixes: https://github.com/jow-/ucode/issues/188
Fixes: https://github.com/jow-/ucode/issues/193
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2024-07-14 01:27:28 +02:00