2 # create essid from channel, takes two args:
3 # $1 = channel (integer)
4 # $2 = community (optional)
11 # Try to get BSSID from profile first
12 config_load profile_$community
13 config_get bssid bssidscheme $channel
14 if [ -z "$bssid" ]; then
15 config_get bssid bssidscheme "all"
18 if [ -z "$bssid" ]; then
21 bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"
24 bssid="$(printf "%X\n" $channel)2:CA:FF:EE:BA:BE"
27 bssid="00:$channel:CA:FF:EE:EE"
30 bssid="${channel/1/01:}:CA:FF:EE:EE"
32 *) bssid="02:CA:FF:EE:BA:BE"