X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=contrib%2Fpackage%2Fmeshwizard%2Ffiles%2Fusr%2Fbin%2Fmeshwizard%2Fhelpers%2Fgen_bssid.sh;h=c9be99786fc0c355dfb4544cde72bb10f59ef4a4;hb=51fa41e9424caba43413e21e50283d34398a48a4;hp=fa042abaef8311a98a47393c2319e23d291969b0;hpb=ab87896104be09072ccccad305588d46370ab5ad;p=project%2Fluci.git diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh index fa042abae..c9be99786 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh @@ -11,8 +11,9 @@ community=$2 # Try to get BSSID from profile first config_load profile_$community config_get bssid bssidscheme $channel +config_get bssid_all bssidscheme "all" -if [ -z "$bssid" ]; then +if [ -z "$bssid" ] && [ -z "$bssid_all" ]; then case $channel in [1-9]) bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"