orinoco: support ETHTOOL_GPERMADDR
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Oct 2009 20:47:23 +0000 (16:47 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:49 +0000 (16:39 -0400)
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/orinoco/main.c

index 7a32bcb0c0376d065044e72a7e296cbe8307c1b5..5fdc59c594f25fd6deefd354e107e840b24cfc1e 100644 (file)
@@ -2225,6 +2225,7 @@ int orinoco_if_add(struct orinoco_private *priv,
        netif_carrier_off(dev);
 
        memcpy(dev->dev_addr, wiphy->perm_addr, ETH_ALEN);
+       memcpy(dev->perm_addr, wiphy->perm_addr, ETH_ALEN);
 
        dev->base_addr = base_addr;
        dev->irq = irq;