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

index d668e47..170f337 100644 (file)
@@ -637,6 +637,8 @@ static int __iwm_up(struct iwm_priv *iwm)
                IWM_ERR(iwm, "MAC reading failed\n");
                goto err_disable;
        }
+       memcpy(iwm_to_ndev(iwm)->perm_addr, iwm_to_ndev(iwm)->dev_addr,
+               ETH_ALEN);
 
        /* We can load the FWs */
        ret = iwm_load_fw(iwm);