]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipw2200: set MAC address on radiotap interface
authorDaniel Drake <dsd@gentoo.org>
Wed, 2 Apr 2008 19:33:54 +0000 (20:33 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 02:19:29 +0000 (22:19 -0400)
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>
drivers/net/wireless/ipw2200.c

index a56d9fc6354f90fce9d0f2e79b6b5ecf6eafea93..b34c275f49852668ba8356b7887f635960cdb0a3 100644 (file)
@@ -11576,6 +11576,7 @@ static int ipw_prom_alloc(struct ipw_priv *priv)
        priv->prom_priv->priv = priv;
 
        strcpy(priv->prom_net_dev->name, "rtap%d");
+       memcpy(priv->prom_net_dev->dev_addr, priv->mac_addr, ETH_ALEN);
 
        priv->prom_net_dev->type = ARPHRD_IEEE80211_RADIOTAP;
        priv->prom_net_dev->open = ipw_prom_open;