iwmc3200wifi: support ETHTOOL_GPERMADDR
PATCH 1/4 iwmc3200wifi: support ETHTOOL_GPERMADDR
Signed-off-by John W. Linville <[email protected]>
--- drivers/net/wireless/iwmc3200wifi/main.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/iwmc3200wifi/main.c +2 -0
@@ -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
PATCH 2/4 ipw2200: support ETHTOOL_GPERMADDR
Signed-off-by John W. Linville <[email protected]>
--- drivers/net/wireless/ipw2x00/ipw2200.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/ipw2x00/ipw2200.c +1 -0
@@ -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
PATCH 3/4 orinoco: support ETHTOOL_GPERMADDR
In reply to John W. LinvilleSigned-off-by John W. Linville <[email protected]>
--- drivers/net/wireless/orinoco/main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/orinoco/main.c +1 -0
@@ -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
PATCH 4/4 cfg80211: fix compile error from missing ethtool.h
In reply to John W. LinvilleSigned-off-by John W. Linville <[email protected]>
--- include/net/cfg80211.h | 1 + net/wireless/ethtool.h | 2 -- 2 files changed, 1 insertions(+), 2 deletions(-)
include/net/cfg80211.h +1 -0
@@ -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
@@ -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