contrib/meshwizard: make gen_bssid create BSSIDs that are valid according to the 80211 standard. This also makes it possible to merge the general BSSID scheme with the pberg bssid scheme. Thanks stargieg.

This commit is contained in:
Manuel Munz 2013-01-03 14:10:18 +00:00
parent 92f100486d
commit 5223eea7c4

View file

@ -24,10 +24,10 @@ if [ -z "$bssid" ]; then
bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE" bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"
;; ;;
[3-9][0-9]) [3-9][0-9])
bssid="00:$channel:CA:FF:EE:EE" bssid="02:$channel:CA:FF:EE:EE"
;; ;;
1[0-9][0-9]) 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" *) bssid="02:CA:FF:EE:BA:BE"
;; ;;