提交 121947c6 编写于 作者: D David Woodhouse 提交者: David S. Miller

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: NDavid Woodhouse <dwmw2@infradead.org>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 d9268fb9
...@@ -1473,6 +1473,7 @@ int lbs_add_rtap(struct lbs_private *priv) ...@@ -1473,6 +1473,7 @@ int lbs_add_rtap(struct lbs_private *priv)
if (rtap_dev == NULL) if (rtap_dev == NULL)
return -ENOMEM; return -ENOMEM;
memcpy(rtap_dev->dev_addr, priv->current_addr, ETH_ALEN);
rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP; rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP;
rtap_dev->open = lbs_rtap_open; rtap_dev->open = lbs_rtap_open;
rtap_dev->stop = lbs_rtap_stop; rtap_dev->stop = lbs_rtap_stop;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册