[ar71xx] ag71xx driver: fix a typo
authorGabor Juhos <juhosg@openwrt.org>
Sun, 30 Nov 2008 13:20:12 +0000 (13:20 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 30 Nov 2008 13:20:12 +0000 (13:20 +0000)
SVN-Revision: 13445

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index 05adeabbbb4e3e7cb641d760f493266a4c32a7bb..83f026f0cd87224b23fc3644d035b950da3c890e 100644 (file)
@@ -37,7 +37,7 @@
 #define ETH_FCS_LEN    4
 
 #define AG71XX_DRV_NAME                "ag71xx"
 #define ETH_FCS_LEN    4
 
 #define AG71XX_DRV_NAME                "ag71xx"
-#define AG71XX_DRV_VERSION     "0.5.2"
+#define AG71XX_DRV_VERSION     "0.5.3"
 
 #define AG71XX_NAPI_TX         1
 
 
 #define AG71XX_NAPI_TX         1
 
index 5c440c95bcead07227b67ed7f1325577765c4ccf..d99d5145d2f18382185cf6d80cde9f9e4d3157bf 100644 (file)
@@ -257,7 +257,7 @@ static void ag71xx_hw_set_macaddr(struct ag71xx *ag, unsigned char *mac)
        u32 t;
 
        t = (((u32) mac[0]) << 24) | (((u32) mac[1]) << 16)
        u32 t;
 
        t = (((u32) mac[0]) << 24) | (((u32) mac[1]) << 16)
-         | (((u32) mac[2]) << 8) | ((u32) mac[2]);
+         | (((u32) mac[2]) << 8) | ((u32) mac[3]);
 
        ag71xx_wr(ag, AG71XX_REG_MAC_ADDR1, t);
 
 
        ag71xx_wr(ag, AG71XX_REG_MAC_ADDR1, t);