From f9c2e97ec6611a302e46320c2d11f952bf12a540 Mon Sep 17 00:00:00 2001 From: Parahub AI Date: Tue, 10 Feb 2026 15:22:59 +0000 Subject: [PATCH] =?UTF-8?q?fix(wifi):=20Fix=20mesh=20channels=20=E2=80=94?= =?UTF-8?q?=202.4GHz=3D1,=205GHz=3D36=20for=20all=20nodes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All mesh nodes must share the same channel per band for batman-adv peering. Bumps firmware to ph3. Co-Authored-By: Claude Opus 4.6 --- files/etc/uci-defaults/99-parahub-mesh | 12 +++++++++++- scripts/build.sh | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/files/etc/uci-defaults/99-parahub-mesh b/files/etc/uci-defaults/99-parahub-mesh index f38c445..ded4778 100755 --- a/files/etc/uci-defaults/99-parahub-mesh +++ b/files/etc/uci-defaults/99-parahub-mesh @@ -290,11 +290,21 @@ fi # Remove all existing wifi-iface sections while uci -q delete wireless.@wifi-iface[0]; do :; done -# Enable radios (remove disabled flag) +# Enable radios and set fixed channels (all nodes must share same channel for mesh peering) for radio in $RADIOS; do uci -q delete "wireless.${radio}.disabled" 2>/dev/null || true done +# Fixed channels — all mesh nodes must be on the same channel per band +# 2.4GHz: channel 1 (DFS-free, least congested of 1/6/11) +# 5GHz: channel 36 (DFS-free, universal chipset support) +if [ -n "$RADIO_2G" ]; then + uci set "wireless.${RADIO_2G}.channel=1" +fi +if [ -n "$RADIO_5G" ]; then + uci set "wireless.${RADIO_5G}.channel=36" +fi + # --- 2.4GHz radio: mesh backhaul + parahub.io/free AP --- if [ -n "$RADIO_2G" ]; then # Mesh interface on 2.4GHz diff --git a/scripts/build.sh b/scripts/build.sh index acfa94f..30cbd70 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -11,7 +11,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_DIR="$(dirname "$SCRIPT_DIR")" OPENWRT_VERSION="${OPENWRT_VERSION:-25.12.0-rc4}" -PARAHUB_BUILD="2" +PARAHUB_BUILD="3" FIRMWARE_VERSION="${OPENWRT_VERSION}-ph${PARAHUB_BUILD}" # ============================================================================