From: Felix Fietkau Date: Thu, 24 Dec 2009 11:05:04 +0000 (+0000) Subject: mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from... X-Git-Tag: reboot~21583 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012;p=oweals%2Fopenwrt.git mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from #6401) SVN-Revision: 18923 --- diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index adfd948db5..742c1bb446 100644 --- a/package/mac80211/files/lib/wifi/mac80211.sh +++ b/package/mac80211/files/lib/wifi/mac80211.sh @@ -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"