diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-12-24 11:05:04 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-12-24 11:05:04 +0000 |
commit | 0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012 (patch) | |
tree | ea1f87c53e821983fd8f9a283b5d75090947c174 /package/mac80211/files/lib/wifi/mac80211.sh | |
parent | 6ec88dfdfc48640f6b2ffc0182780ab59281c9d4 (diff) | |
download | mtk-20170518-0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012.zip mtk-20170518-0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012.tar.gz mtk-20170518-0a24ec2e4aa4601e4ce29071ccce2d1f0cb39012.tar.bz2 |
mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from #6401)
SVN-Revision: 18923
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-rw-r--r-- | package/mac80211/files/lib/wifi/mac80211.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh index adfd948..742c1bb 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" |