From 015d95e3f4e702ba8040abaeeddbf0057dba562d Mon Sep 17 00:00:00 2001
From: Manuel Munz <freifunk@somakoma.de>
Date: Sat, 20 Aug 2011 20:39:46 +0000
Subject: [PATCH] contrib/meshwizard: The last change broke correct
 bssid_generation, should work again

---
 .../meshwizard/files/usr/bin/meshwizard/helpers/gen_bssid.sh  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 492dfe8e5f..e05300a0d3 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,7 +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" && bssid="$bssid_all"
+if [ -z "$bssid" ]; then
+	config_get bssid bssidscheme "all"
+fi
 
 if [ -z "$bssid" ]; then
 	case $channel in