aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2007-12-09 19:54:11 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 15:06:27 -0800
commit121947c62ab049bfaeb8fadc9908834b5a99daf0 (patch)
tree358f04ad7b137bc86dc7d48e3c4d16dbeba7075d /drivers/net/wireless
parentd9268fb9a124d067cf93710a85bb6c158d131c97 (diff)
libertas: set dev_addr on rtap device
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/libertas/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 55dce8dbd0d..e9c6b4ffd8e 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -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;