> IMHO the logic should be: > > if wl $WIFIDEV bands | grep -q "802.11a" ; then > channel=36 > else > channel=1 > fi
The logic should be: channel=11 if wl $WIFIDEV bands | grep -q "802.11a" ; then channel=36 fi This brings it in line with mac80211 (package/mac80211/files/lib/wifi/mac80211.sh - detect_mac80211()). The idea of using channel 11 is that 1 is the default choice for most devices on the 2.4GHz band and this band is usually very crowded so we just take the upper end there. Anyhow, lets not forget that this is just an initial config which is meant to be edited anyway - I just want to make the Broadcom case consistent with what mac80211 does. ~ Jow _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel