fix(wifi): Fix mesh channels — 2.4GHz=1, 5GHz=36 for all nodes
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 <noreply@anthropic.com>
This commit is contained in:
@@ -290,11 +290,21 @@ fi
|
|||||||
# Remove all existing wifi-iface sections
|
# Remove all existing wifi-iface sections
|
||||||
while uci -q delete wireless.@wifi-iface[0]; do :; done
|
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
|
for radio in $RADIOS; do
|
||||||
uci -q delete "wireless.${radio}.disabled" 2>/dev/null || true
|
uci -q delete "wireless.${radio}.disabled" 2>/dev/null || true
|
||||||
done
|
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 ---
|
# --- 2.4GHz radio: mesh backhaul + parahub.io/free AP ---
|
||||||
if [ -n "$RADIO_2G" ]; then
|
if [ -n "$RADIO_2G" ]; then
|
||||||
# Mesh interface on 2.4GHz
|
# Mesh interface on 2.4GHz
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||||||
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
||||||
|
|
||||||
OPENWRT_VERSION="${OPENWRT_VERSION:-25.12.0-rc4}"
|
OPENWRT_VERSION="${OPENWRT_VERSION:-25.12.0-rc4}"
|
||||||
PARAHUB_BUILD="2"
|
PARAHUB_BUILD="3"
|
||||||
FIRMWARE_VERSION="${OPENWRT_VERSION}-ph${PARAHUB_BUILD}"
|
FIRMWARE_VERSION="${OPENWRT_VERSION}-ph${PARAHUB_BUILD}"
|
||||||
|
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user