Changeset 36408


Ignore:
Timestamp:
2013-04-23T18:32:24+02:00 (5 years ago)
Author:
nbd
Message:

mac80211: use the original mac address for the first virtual interface

Signed-off-by: Felix Fietkau <nbd@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/mac80211/files/lib/wifi/mac80211.sh

    r36353 r36408  
    283283        local oIFS="$IFS"; IFS=":"; set -- $ref; IFS="$oIFS" 
    284284        [ "$((0x$mask1))" -gt 0 ] && { 
    285                 b1=$(((0x$1 | 0x2) ^ ($id << 2))) 
     285                b1="0x$1" 
     286                [ "$id" -gt 0 ] && \ 
     287                        b1=$((($b1 | 0x2) ^ (($id - 1) << 2))) 
    286288                printf "%02x:%s:%s:%s:%s:%s" $b1 $2 $3 $4 $5 $6 
    287289                return 
Note: See TracChangeset for help on using the changeset viewer.