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 d668e47563245dff549e2f89d6a43ab168e83a3b..170f33706490dbf4c8af441eef00184d27644259 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);