From patchwork Tue Oct 6 21:07:17 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "John W. Linville" X-Patchwork-Id: 52028 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n96LJ04F031798 for ; Tue, 6 Oct 2009 21:19:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758259AbZJFVQm (ORCPT ); Tue, 6 Oct 2009 17:16:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758227AbZJFVQm (ORCPT ); Tue, 6 Oct 2009 17:16:42 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:42493 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758188AbZJFVQl (ORCPT ); Tue, 6 Oct 2009 17:16:41 -0400 Received: from uucp by smtp.tuxdriver.com with local-rmail (Exim 4.63) (envelope-from ) id 1MvHO8-0002Hy-E9; Tue, 06 Oct 2009 17:16:04 -0400 Received: from linville-t400.local (linville-t400.local [127.0.0.1]) by linville-t400.local (8.14.3/8.14.3) with ESMTP id n96L7KoE014816; Tue, 6 Oct 2009 17:07:20 -0400 Received: (from linville@localhost) by linville-t400.local (8.14.3/8.14.3/Submit) id n96L7KFE014814; Tue, 6 Oct 2009 17:07:20 -0400 From: "John W. Linville" To: linux-wireless@vger.kernel.org Cc: "John W. Linville" Subject: [PATCH 1/4] iwmc3200wifi: support ETHTOOL_GPERMADDR Date: Tue, 6 Oct 2009 17:07:17 -0400 Message-Id: <1254863240-14780-1-git-send-email-linville@tuxdriver.com> X-Mailer: git-send-email 1.6.2.5 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/iwmc3200wifi/main.c b/drivers/net/wireless/iwmc3200wifi/main.c index d668e47..170f337 100644 --- a/drivers/net/wireless/iwmc3200wifi/main.c +++ b/drivers/net/wireless/iwmc3200wifi/main.c @@ -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);