mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 24 Dec 2009 11:05:04 +0000 (11:05 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 24 Dec 2009 11:05:04 +0000 (11:05 +0000)
SVN-Revision: 18923

package/mac80211/files/lib/wifi/mac80211.sh

index adfd948db5c6333173a1a94b0d439c18336ed2b1..742c1bb4462b802634605ef4921f740663a6e01b 100644 (file)
@@ -149,7 +149,7 @@ enable_mac80211() {
                        else
                                offset="0"
                        fi
-                       vif_mac="$( printf %02x $(($mac_1 + $offset)) ):$mac_2"
+                       vif_mac="$( printf %02x $((0x$mac_1 + $offset)) ):$mac_2"
                }
                ifconfig "$ifname" hw ether "$vif_mac"