diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-04-02 15:33:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-04-07 22:19:29 -0400 |
commit | 3f2eeac97952b262f2b904c6150a9879777995eb (patch) | |
tree | fed3fca83fad7d2cb9c8ec402efff22c36b5877c /drivers/net/wireless/ipw2200.c | |
parent | 877cb0d4af2658beb5f89d38ae51968782f62fad (diff) |
ipw2200: set MAC address on radiotap interface
Commit bada339ba24dee9e143bfb42e1dc61f146619846 enforces that all
interfaces have a valid MAC address before they are brought up.
ipw2200 does not assign a MAC address to it's radiotap interface, meaning
that the radiotap interface cannot be brought up in 2.6.24.
https://bugs.gentoo.org/show_bug.cgi?id=215714
Fix this by copying the MAC address from the real interface.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ipw2200.c')
-rw-r--r-- | drivers/net/wireless/ipw2200.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c index a56d9fc6354f..b34c275f4985 100644 --- a/drivers/net/wireless/ipw2200.c +++ b/drivers/net/wireless/ipw2200.c | |||
@@ -11576,6 +11576,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv) | |||
11576 | priv->prom_priv->priv = priv; | 11576 | priv->prom_priv->priv = priv; |
11577 | 11577 | ||
11578 | strcpy(priv->prom_net_dev->name, "rtap%d"); | 11578 | strcpy(priv->prom_net_dev->name, "rtap%d"); |
11579 | memcpy(priv->prom_net_dev->dev_addr, priv->mac_addr, ETH_ALEN); | ||
11579 | 11580 | ||
11580 | priv->prom_net_dev->type = ARPHRD_IEEE80211_RADIOTAP; | 11581 | priv->prom_net_dev->type = ARPHRD_IEEE80211_RADIOTAP; |
11581 | priv->prom_net_dev->open = ipw_prom_open; | 11582 | priv->prom_net_dev->open = ipw_prom_open; |