Changeset 26555


Ignore:
Timestamp:
2011-04-09T20:25:59+02:00 (7 years ago)
Author:
nbd
Message:

atheros: fix up empty radio data mac address (based on patch from #8601)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/atheros/patches-2.6.37/100-board.patch

    r26554 r26555  
    8686--- /dev/null 
    8787+++ b/arch/mips/ar231x/board.c 
    88 @@ -0,0 +1,251 @@ 
     88@@ -0,0 +1,258 @@ 
    8989+/* 
    9090+ * This file is subject to the terms and conditions of the GNU General Public 
     
    226226+       u8 *board_data; 
    227227+       u8 *radio_data; 
     228+       u8 *mac_addr; 
    228229+       u32 offset; 
    229230+ 
     
    282283+       rcfg_size = BOARD_CONFIG_BUFSZ - offset; 
    283284+       memcpy(radio_data, rcfg, rcfg_size); 
     285+ 
     286+       mac_addr = &radio_data[0x1d * 2]; 
     287+       if (is_broadcast_ether_addr(mac_addr)) { 
     288+               printk(KERN_INFO "Radio MAC is blank; using board-data\n"); 
     289+               memcpy(mac_addr, ar231x_board.config->wlan0_mac, ETH_ALEN); 
     290+       } 
    284291+ 
    285292+       return 0; 
Note: See TracChangeset for help on using the changeset viewer.