mac80211: use the original mac address for the first virtual interface
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 36408
This commit is contained in:
parent
90986b5581
commit
e119a8a107
1 changed files with 3 additions and 1 deletions
|
@ -282,7 +282,9 @@ mac80211_generate_mac() {
|
|||
|
||||
local oIFS="$IFS"; IFS=":"; set -- $ref; IFS="$oIFS"
|
||||
[ "$((0x$mask1))" -gt 0 ] && {
|
||||
b1=$(((0x$1 | 0x2) ^ ($id << 2)))
|
||||
b1="0x$1"
|
||||
[ "$id" -gt 0 ] && \
|
||||
b1=$((($b1 | 0x2) ^ (($id - 1) << 2)))
|
||||
printf "%02x:%s:%s:%s:%s:%s" $b1 $2 $3 $4 $5 $6
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue