projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90986b5
)
mac80211: use the original mac address for the first virtual interface
author
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Apr 2013 16:32:24 +0000
(16:32 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Tue, 23 Apr 2013 16:32:24 +0000
(16:32 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36408
package/mac80211/files/lib/wifi/mac80211.sh
patch
|
blob
|
history
diff --git
a/package/mac80211/files/lib/wifi/mac80211.sh
b/package/mac80211/files/lib/wifi/mac80211.sh
index bb972114281c995e13608dfc2111e1b17e5550eb..081dc4d8863261444517090585c8220e13f40c06 100644
(file)
--- a/
package/mac80211/files/lib/wifi/mac80211.sh
+++ b/
package/mac80211/files/lib/wifi/mac80211.sh
@@
-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
}