orinoco: support ETHTOOL_GPERMADDR
[linux-2.6.git] / 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);
        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;
 
        dev->base_addr = base_addr;
        dev->irq = irq;