diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-09 19:54:11 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:27 -0500 |
commit | 121947c62ab049bfaeb8fadc9908834b5a99daf0 (patch) | |
tree | 358f04ad7b137bc86dc7d48e3c4d16dbeba7075d /drivers/net | |
parent | d9268fb9a124d067cf93710a85bb6c158d131c97 (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')
-rw-r--r-- | drivers/net/wireless/libertas/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c index 55dce8dbd0d2..e9c6b4ffd8e1 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) | |||
1473 | if (rtap_dev == NULL) | 1473 | if (rtap_dev == NULL) |
1474 | return -ENOMEM; | 1474 | return -ENOMEM; |
1475 | 1475 | ||
1476 | memcpy(rtap_dev->dev_addr, priv->current_addr, ETH_ALEN); | ||
1476 | rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP; | 1477 | rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP; |
1477 | rtap_dev->open = lbs_rtap_open; | 1478 | rtap_dev->open = lbs_rtap_open; |
1478 | rtap_dev->stop = lbs_rtap_stop; | 1479 | rtap_dev->stop = lbs_rtap_stop; |