]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libertas: set dev_addr on rtap device
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Dec 2007 00:54:11 +0000 (19:54 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:06:27 +0000 (15:06 -0800)
This lets us bring it up, because eth_validate_addr() succeeds instead
of returning -EINVAL. And finally monitor mode seems to (mostly) work.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/main.c

index 55dce8dbd0d299f7f97be136b3b88ee5b2afaa42..e9c6b4ffd8e13cbd0c22ac45656f7bce7dc3ed5c 100644 (file)
@@ -1473,6 +1473,7 @@ int lbs_add_rtap(struct lbs_private *priv)
        if (rtap_dev == NULL)
                return -ENOMEM;
 
+       memcpy(rtap_dev->dev_addr, priv->current_addr, ETH_ALEN);
        rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP;
        rtap_dev->open = lbs_rtap_open;
        rtap_dev->stop = lbs_rtap_stop;