X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/06b8f376442456d4fe011c3090868864c041aed9..2fd852f1f1a80636243ad23a2f0ba0bfe9659ebe:/target/linux/adm5120/files/drivers/net/adm5120sw.c diff --git a/target/linux/adm5120/files/drivers/net/adm5120sw.c b/target/linux/adm5120/files/drivers/net/adm5120sw.c index 877542699..f87684406 100644 --- a/target/linux/adm5120/files/drivers/net/adm5120sw.c +++ b/target/linux/adm5120/files/drivers/net/adm5120sw.c @@ -709,7 +709,7 @@ static void adm5120_write_mac(struct net_device *dev) u32 t; t = mac[2] | (mac[3] << MAC_WT1_MAC3_SHIFT) | - (mac[4] << MAC_WT1_MAC4_SHIFT) | (mac[5] << MAC_WT1_MAC4_SHIFT); + (mac[4] << MAC_WT1_MAC4_SHIFT) | (mac[5] << MAC_WT1_MAC5_SHIFT); sw_write_reg(SWITCH_REG_MAC_WT1, t); t = (mac[0] << MAC_WT0_MAC0_SHIFT) | (mac[1] << MAC_WT0_MAC1_SHIFT) | @@ -746,7 +746,7 @@ static void adm5120_switch_set_vlan_mac(unsigned int vlan, unsigned char *mac) t = mac[2] | (mac[3] << MAC_WT1_MAC3_SHIFT) | (mac[4] << MAC_WT1_MAC4_SHIFT) - | (mac[5] << MAC_WT1_MAC4_SHIFT); + | (mac[5] << MAC_WT1_MAC5_SHIFT); sw_write_reg(SWITCH_REG_MAC_WT1, t); t = (mac[0] << MAC_WT0_MAC0_SHIFT) | (mac[1] << MAC_WT0_MAC1_SHIFT) |