meshwizard: use different port (9091) for ipv6 jsoninfo
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / helpers / gen_bssid.sh
index e05300a..efe101f 100755 (executable)
@@ -5,7 +5,7 @@
 channel=$1
 community=$2
 
-. /etc/functions.sh
+. /lib/functions.sh
 
 
 # Try to get BSSID from profile first
@@ -24,10 +24,10 @@ if [ -z "$bssid" ]; then
                bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"
                ;;
        [3-9][0-9])
-               bssid="00:$channel:CA:FF:EE:EE"
+               bssid="02:$channel:CA:FF:EE:EE"
                ;;
        1[0-9][0-9])
-               bssid="${channel/1/01:}:CA:FF:EE:EE"
+               bssid="${channel/1/12:}:CA:FF:EE:EE"
                ;;
        *)      bssid="02:CA:FF:EE:BA:BE"
                ;;