Changeset 13754


Ignore:
Timestamp:
2008-12-28T02:22:15+01:00 (9 years ago)
Author:
nbd
Message:

merge r13753 to 8.09

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/8.09/target/linux/atheros/files/drivers/net/ar2313/ar2313.c

    r13731 r13754  
    11211121{ 
    11221122        struct ar2313_private *sp = netdev_priv(dev); 
     1123        unsigned int ethsal, ethsah; 
    11231124 
    11241125        /* reset the hardware, in case the MAC address changed */ 
    1125         ar2313_reset_reg(dev); 
     1126        ethsah = ((((u_int) (dev->dev_addr[5]) << 8) & (u_int) 0x0000FF00) | 
     1127                          (((u_int) (dev->dev_addr[4]) << 0) & (u_int) 0x000000FF)); 
     1128 
     1129        ethsal = ((((u_int) (dev->dev_addr[3]) << 24) & (u_int) 0xFF000000) | 
     1130                          (((u_int) (dev->dev_addr[2]) << 16) & (u_int) 0x00FF0000) | 
     1131                          (((u_int) (dev->dev_addr[1]) << 8) & (u_int) 0x0000FF00) | 
     1132                          (((u_int) (dev->dev_addr[0]) << 0) & (u_int) 0x000000FF)); 
     1133 
     1134        sp->eth_regs->mac_addr[0] = ethsah; 
     1135        sp->eth_regs->mac_addr[1] = ethsal; 
     1136 
     1137        mdelay(10); 
    11261138 
    11271139        dev->mtu = 1500; 
Note: See TracChangeset for help on using the changeset viewer.