Skip to contentSkip to conversation

iwmc3200wifi: support ETHTOOL_GPERMADDR

PATCH New John W. Linville 1 participant 4 messages Oct 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 iwmc3200wifi: support ETHTOOL_GPERMADDR

---
 drivers/net/wireless/iwmc3200wifi/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/iwmc3200wifi/main.c +2 -0
index d668e47..170f337 100644
@@ -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);
Signature · 1 line
1.6.2.5
#3 lore raw

PATCH 4/4 cfg80211: fix compile error from missing ethtool.h

---
 include/net/cfg80211.h |    1 +
 net/wireless/ethtool.h |    2 --
 2 files changed, 1 insertions(+), 2 deletions(-)
include/net/cfg80211.h +1 -0
index 6f4862b..14915ea 100644
@@ -18,6 +18,7 @@
 #include <linux/nl80211.h>
 #include <linux/if_ether.h>
 #include <linux/ieee80211.h>
+#include <linux/ethtool.h>
 #include <net/regulatory.h>
 
 /* remove once we remove the wext stuff */
net/wireless/ethtool.h +0 -2
index 70cbee1..695ecad 100644
@@ -1,8 +1,6 @@
 #ifndef __CFG80211_ETHTOOL__
 #define __CFG80211_ETHTOOL__
 
-#include <linux/ethtool.h>
-
 extern const struct ethtool_ops cfg80211_ethtool_ops;
 
 #endif /* __CFG80211_ETHTOOL__ */
Signature · 1 line
1.6.2.5
#1 lore raw

PATCH 2/4 ipw2200: support ETHTOOL_GPERMADDR

In reply to John W. Linville
---
 drivers/net/wireless/ipw2x00/ipw2200.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ipw2x00/ipw2200.c +1 -0
index 8d58e6e..61ef890 100644
@@ -11275,6 +11275,7 @@ static int ipw_up(struct ipw_priv *priv)
 		if (!(priv->config & CFG_CUSTOM_MAC))
 			eeprom_parse_mac(priv, priv->mac_addr);
 		memcpy(priv->net_dev->dev_addr, priv->mac_addr, ETH_ALEN);
+		memcpy(priv->net_dev->perm_addr, priv->mac_addr, ETH_ALEN);
 
 		for (j = 0; j < ARRAY_SIZE(ipw_geos); j++) {
 			if (!memcmp(&priv->eeprom[EEPROM_COUNTRY_CODE],
Signature · 1 line
1.6.2.5
#2 lore raw

PATCH 3/4 orinoco: support ETHTOOL_GPERMADDR

In reply to John W. Linville
---
 drivers/net/wireless/orinoco/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/orinoco/main.c +1 -0
index 7a32bcb..5fdc59c 100644
@@ -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;
Signature · 1 line
1.6.2.5