From patchwork Tue Oct 6 21:07:19 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: 52031 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 n96LJ04J031798 for ; Tue, 6 Oct 2009 21:19:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933414AbZJFVQs (ORCPT ); Tue, 6 Oct 2009 17:16:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S933407AbZJFVQs (ORCPT ); Tue, 6 Oct 2009 17:16:48 -0400 Received: from charlotte.tuxdriver.com ([70.61.120.58]:42499 "EHLO smtp.tuxdriver.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758316AbZJFVQm (ORCPT ); Tue, 6 Oct 2009 17:16:42 -0400 Received: from uucp by smtp.tuxdriver.com with local-rmail (Exim 4.63) (envelope-from ) id 1MvHO9-0002IR-Uu; Tue, 06 Oct 2009 17:16:06 -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 n96L7KZP014826; Tue, 6 Oct 2009 17:07:20 -0400 Received: (from linville@localhost) by linville-t400.local (8.14.3/8.14.3/Submit) id n96L7KAF014825; Tue, 6 Oct 2009 17:07:20 -0400 From: "John W. Linville" To: linux-wireless@vger.kernel.org Cc: "John W. Linville" Subject: [PATCH 3/4] orinoco: support ETHTOOL_GPERMADDR Date: Tue, 6 Oct 2009 17:07:19 -0400 Message-Id: <1254863240-14780-3-git-send-email-linville@tuxdriver.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1254863240-14780-1-git-send-email-linville@tuxdriver.com> References: <1254863240-14780-1-git-send-email-linville@tuxdriver.com> 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/orinoco/main.c b/drivers/net/wireless/orinoco/main.c index 7a32bcb..5fdc59c 100644 --- a/drivers/net/wireless/orinoco/main.c +++ b/drivers/net/wireless/orinoco/main.c @@ -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;