mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
mac80211: fix handling of vif mac addresses in /lib/wifi/mac80211.sh (patch from #6401)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18923 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5a82ad1a87
commit
6887b9b476
@ -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"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user