[PATCH 23.05 0/2] mt76: firmwares, minor power fixes, mt7925/mt7996 stability

2024-05-09 Thread Rafał Miłecki
From: Rafał Miłecki Update 23.05 mt76 to the 3 months old version which should we well tested by now. There are minor fixes, updated firmwares and mt7996 out of box support thanks to the included firmware files. Felix Fietkau (2): mt76: update to Git HEAD (2024-01-18) mt76: update to Git HEA

[PATCH 23.05 2/2] mt76: update to Git HEAD (2024-02-03)

2024-05-09 Thread Rafał Miłecki
From: Felix Fietkau a9693e1979c2 linux-firmware: add firmware for MT7996 0258dc90e3a1 wifi: mt76: mt7603: fix reading target power from eeprom 3e81173d9e2b wifi: mt76: mt7603: initialize chainmask 786a339bac36 wifi: mt76: mt7996: fix fortify warning bc37a7ebc267 wifi: mt76: mt7996: fix fw loading

[PATCH 23.05 1/2] mt76: update to Git HEAD (2024-01-18)

2024-05-09 Thread Rafał Miłecki
From: Felix Fietkau 83e3947e2c52 linux-firmware: update firmware for MT7922 WiFi device ddaa8cb6e81a linux-firmware: update firmware for MT7921 WiFi device f83b1601cc10 linux-firmware: update firmware for MT7922 WiFi device 61d334ab0f33 linux-firmware: add firmware for MT7925 a7836e4c8a60 wifi: m

[RFC PATCH 13/14] config: clamp dhcpv6_hostid_len

2024-05-09 Thread Paul Donald
From: Paul Donald Attempt to be helpful. Signed-off-by: Paul Donald --- src/config.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index f4eaa3b..4d35548 100644 --- a/src/config.c +++ b/src/config.c @@ -896,11 +896,12 @@ int config_

[RFC PATCH 01/14] config: refactor parse_leasetime() - branch amount remains same

2024-05-09 Thread Paul Donald
From: Paul Donald Also make 's' value a noop. Signed-off-by: Paul Donald --- src/config.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/config.c b/src/config.c index 62d4857..346d74a 100644 --- a/src/config.c +++ b/src/config.c @@ -356,18 +356,14

[RFC PATCH 05/14] router: redefine ra_mininterval and ra_maxinterval as uint32_t

2024-05-09 Thread Paul Donald
From: Paul Donald They never store negative values. Signed-off-by: Paul Donald --- src/config.c | 6 +++--- src/odhcpd.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 2ccf742..a3bf1ba 100644 --- a/src/config.c +++ b/src/config.c @@ -

[RFC PATCH 07/14] config: lease times are all UINT32_MAX; drop double size handling

2024-05-09 Thread Paul Donald
From: Paul Donald This now prevents implicit 64 bit->32 bit truncation which may flag compiler errors later on down the road. All of the variables receiving from parse_leasetime() are uint32_t anyway, so max 136 years of valid lease time will have to suffice :) Signed-off-by: Paul Donald ---

[RFC PATCH 02/14] router: Apply updated values from RFC8319 (updates RFC4861) to RA/ND

2024-05-09 Thread Paul Donald
From: Paul Donald https://www.rfc-editor.org/rfc/rfc8319#section-4 Signed-off-by: Paul Donald --- src/router.c | 6 -- src/router.h | 23 ++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/router.c b/src/router.c index 7f5658b..ae0c545 100644 --- a

[RFC PATCH 06/14] config: implement RFC4861 AdvValidLifetime (make configurable)

2024-05-09 Thread Paul Donald
From: Paul Donald In accordance with RFC4861. Enables control of ULA. The new config variable is valid_lifetime. e.g.: config dhcp 'lan' ... option valid_lifetime '6h' Signed-off-by: Paul Donald --- README | 2 ++ src/config.c | 14 ++ src/odhcpd.h | 1 +

[RFC PATCH 10/14] config: clamp ra_hoplimit to maximum (instead of complaining)

2024-05-09 Thread Paul Donald
From: Paul Donald Attempt to be helpful. Signed-off-by: Paul Donald --- src/config.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 54fb9b5..e0f2d80 100644 --- a/src/config.c +++ b/src/config.c @@ -961,11 +961,12 @@ int config_

[RFC PATCH 03/14] config: clamp ra_mininterval, ra_maxinterval, ra_lifetime at load time

2024-05-09 Thread Paul Donald
From: Paul Donald Signed-off-by: Paul Donald --- src/config.c | 48 +--- src/router.c | 10 -- src/router.h | 2 +- 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/src/config.c b/src/config.c index 346d74a..2ccf742 100644 ---

[RFC PATCH 08/14] router: clamp prefix valid_lt to interface valid_lifetime

2024-05-09 Thread Paul Donald
From: Paul Donald Before: == ICMPv6 Option (Prefix information : fd26:3c30:a222::/64) Type: Prefix information (3) Length: 4 (32 bytes) Prefix Length: 64 Flag: 0xc0, On-link flag(L), Autonomous address-configuration flag(A) Valid Lifetime: Infinity (4294967295) Preferred L

[RFC PATCH 04/14] router: refactor calc_ra_lifetime, and define ra_lifetime as uint32_t

2024-05-09 Thread Paul Donald
From: Paul Donald ra_lifetime no longer holds negative values, because we no longer do 'init' when we do calc_ra_lifetime. Signed-off-by: Paul Donald --- src/odhcpd.h | 2 +- src/router.c | 19 --- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/src/odhcpd.h b/

[RFC PATCH 09/14] config: clamp ra_reachabletime to RFC maximum (instead of complaining)

2024-05-09 Thread Paul Donald
From: Paul Donald Attempt to be helpful. Signed-off-by: Paul Donald --- src/config.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 6b3cb01..54fb9b5 100644 --- a/src/config.c +++ b/src/config.c @@ -939,11 +939,13 @@ int config

[RFC PATCH 00/14] odhcpd config value clamping

2024-05-09 Thread Paul Donald
Clamp values read from config to RFC mandated sane values instead of just complaining. We also now implement valid_lifetime for ULA prefixes. This is useful if you need to sunset or remove one from circulation. ( Interestingly, if you spin up dev devices frequently which spam the network with new U

[RFC PATCH 12/14] config: clamp ra_mtu into 1280-65535 range

2024-05-09 Thread Paul Donald
From: Paul Donald (ipv6 packets can be up to 4GB in size...) The old logic had a logic error of || instead of && Signed-off-by: Paul Donald --- src/config.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 160d7db..f4eaa3b 100644 -

[RFC PATCH 11/14] config: clamp ra_retranstime

2024-05-09 Thread Paul Donald
From: Paul Donald Attempt to be helpful. Signed-off-by: Paul Donald --- src/config.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index e0f2d80..160d7db 100644 --- a/src/config.c +++ b/src/config.c @@ -951,11 +951,10 @@ int config_par

[RFC PATCH 14/14] config: clamp dhcpv6_pd_min_len

2024-05-09 Thread Paul Donald
From: Paul Donald Attempt to be helpful. Signed-off-by: Paul Donald --- src/config.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config.c b/src/config.c index 4d35548..7484519 100644 --- a/src/config.c +++ b/src/config.c @@ -883,11 +883,11 @@ int config_p