[PATCH 04/11] base-files: uci-defaults: allow setting the number of MACs a radio can use

Andreas Gnau andreas.gnau at iopsys.eu
Tue Sep 24 03:53:44 PDT 2024


On 2024-09-23 19:18, John Crispin wrote:
> Introduce new uci-default functions:
> 	- ucidef_set_wireless_mac_count [count]
> 
> Signed-off-by: John Crispin <john at phrozen.org>
> ---
>   .../files/lib/functions/uci-defaults.sh       | 21 +++++++++++++++++++
>   1 file changed, 21 insertions(+)
> 
> diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
> index 67862497c0..30ae36949e 100644
> --- a/package/base-files/files/lib/functions/uci-defaults.sh
> +++ b/package/base-files/files/lib/functions/uci-defaults.sh
> @@ -684,6 +684,27 @@ ucidef_set_country() {
>   	json_select ..
>   }
>   
> +ucidef_set_wireless_mac_count() {
> +	local band="$1"

Not a WiFi-expert, but: How will this band parameter work for WiFi 7 MLO 
where a single-phy device can represent multiple bands?

How would we deal with devices having more than one radio per band? For 
example, some repeaters have a separate radio for backhaul and fronthaul.

> +	local mac_count="$2"

Out of interest: How is mac_count to be used in practice? What component 
is enforcing / allocating the MAC addresses?

> +
> +	case "$band" in
> +	2g|5g|6g) ;;
> +	*) return;;
> +	esac
 > <snip>






More information about the openwrt-devel mailing list