mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 10:28:06 +00:00 
			
		
		
		
	mediatek: swap eth0/1 on eap111
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
		| @@ -27,7 +27,7 @@ mediatek_setup_interfaces() | |||||||
| 		ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1 | 		ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" eth1 | ||||||
| 		;;		 | 		;;		 | ||||||
| 	*)	 | 	*)	 | ||||||
| 		ucidef_set_interfaces_lan_wan "eth0" "eth1" | 		ucidef_set_interfaces_lan_wan "eth1" "eth0" | ||||||
| 		;; | 		;; | ||||||
| 	esac | 	esac | ||||||
| } | } | ||||||
|   | |||||||
							
								
								
									
										14
									
								
								feeds/mediatek-sdk/mediatek/patches-5.4/999-eap111-eth.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								feeds/mediatek-sdk/mediatek/patches-5.4/999-eap111-eth.patch
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,14 @@ | |||||||
|  | --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c | ||||||
|  | +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c | ||||||
|  | @@ -5860,6 +5860,11 @@ static int mtk_probe(struct platform_dev | ||||||
|  |  		mtk_qdma_debugfs_init(eth); | ||||||
|  |  	} | ||||||
|  |   | ||||||
|  | +	if (of_machine_is_compatible("edgecore,eap111")) { | ||||||
|  | +		sprintf(eth->netdev[0]->name, "eth1"); | ||||||
|  | +		sprintf(eth->netdev[1]->name, "eth0"); | ||||||
|  | +	} | ||||||
|  | + | ||||||
|  |  	for (i = 0; i < MTK_MAX_DEVS; i++) { | ||||||
|  |  		if (!eth->netdev[i]) | ||||||
|  |  			continue; | ||||||
		Reference in New Issue
	
	Block a user
	 John Crispin
					John Crispin