ath79: fix label_mac for NEC Aterm WG1200CR
On NEC Aterm WG1200CR, the MAC address for WAN is printed in the label
on the case, not LAN.
This patch fixes this issue.
Fixes: 50fdc0374b ("ath79: provide label MAC address")
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
			
			
This commit is contained in:
		 INAGAKI Hiroshi
					INAGAKI Hiroshi
				
			
				
					committed by
					
						 Adrian Schmutzler
						Adrian Schmutzler
					
				
			
			
				
	
			
			
			 Adrian Schmutzler
						Adrian Schmutzler
					
				
			
						parent
						
							01b911a938
						
					
				
				
					commit
					e2331fb549
				
			| @@ -525,8 +525,7 @@ ath79_setup_macs() | |||||||
| 		;; | 		;; | ||||||
| 	dlink,dir-842-c1|\ | 	dlink,dir-842-c1|\ | ||||||
| 	dlink,dir-842-c2|\ | 	dlink,dir-842-c2|\ | ||||||
| 	dlink,dir-842-c3|\ | 	dlink,dir-842-c3) | ||||||
| 	nec,wg1200cr) |  | ||||||
| 		lan_mac=$(mtd_get_mac_ascii devdata "lanmac") | 		lan_mac=$(mtd_get_mac_ascii devdata "lanmac") | ||||||
| 		wan_mac=$(mtd_get_mac_ascii devdata "wanmac") | 		wan_mac=$(mtd_get_mac_ascii devdata "wanmac") | ||||||
| 		label_mac=$lan_mac | 		label_mac=$lan_mac | ||||||
| @@ -587,6 +586,11 @@ ath79_setup_macs() | |||||||
| 		base_mac=$(mtd_get_mac_binary u-boot 0x1fc00) | 		base_mac=$(mtd_get_mac_binary u-boot 0x1fc00) | ||||||
| 		wan_mac=$(macaddr_add "$base_mac" 1) | 		wan_mac=$(macaddr_add "$base_mac" 1) | ||||||
| 		;; | 		;; | ||||||
|  | 	nec,wg1200cr) | ||||||
|  | 		lan_mac=$(mtd_get_mac_ascii devdata "lanmac") | ||||||
|  | 		wan_mac=$(mtd_get_mac_ascii devdata "wanmac") | ||||||
|  | 		label_mac=$wan_mac | ||||||
|  | 		;; | ||||||
| 	nec,wg800hp) | 	nec,wg800hp) | ||||||
| 		lan_mac=$(mtd_get_mac_text board_data 0x280) | 		lan_mac=$(mtd_get_mac_text board_data 0x280) | ||||||
| 		wan_mac=$(mtd_get_mac_text board_data 0x480) | 		wan_mac=$(mtd_get_mac_text board_data 0x480) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user