Changeset 36409


Ignore:
Timestamp:
2013-04-23T18:34:08+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@…>

Backport of r36408

File:
1 edited

Legend:

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

    r36354 r36409  
    286286        local oIFS="$IFS"; IFS=":"; set -- $ref; IFS="$oIFS" 
    287287        [ "$((0x$mask1))" -gt 0 ] && { 
    288                 b1=$(((0x$1 | 0x2) ^ ($id << 2))) 
     288                b1="0x$1" 
     289                [ "$id" -gt 0 ] && \ 
     290                        b1=$((($b1 | 0x2) ^ (($id - 1) << 2))) 
    289291                printf "%02x:%s:%s:%s:%s:%s" $b1 $2 $3 $4 $5 $6 
    290292                return 
Note: See TracChangeset for help on using the changeset viewer.