Make sure we will have lower case MAC addresses when doing WDS
authorFlorian Fainelli <florian@openwrt.org>
Sat, 9 Aug 2008 10:00:49 +0000 (10:00 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sat, 9 Aug 2008 10:00:49 +0000 (10:00 +0000)
SVN-Revision: 12259

package/broadcom-wl/files/lib/wifi/broadcom.sh

index d7d18dbd5003b7f6d2d9fc5e5e208ce554193d94..e236a0679525002c7688793b5076999af7256ad1 100644 (file)
@@ -24,7 +24,10 @@ scan_broadcom() {
                        ;;
                        wds)
                                config_get addr "$vif" bssid
-                               [ -z "$addr" ] || append wds "$addr"
+                               [ -z "$addr" ] || {
+                                       addr=$(echo "$addr" | tr 'A-F' 'a-f')
+                                       append wds "$addr"
+                               }
                        ;;
                        monitor)
                                mon=1