提交 972a3136 编写于 作者: C Christian Lamparter 提交者: John W. Linville

p54: pass interface setup errors back to mac80211

Signed-off-by: NChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 a9b89e25
......@@ -227,6 +227,7 @@ static int p54_add_interface(struct ieee80211_hw *dev,
struct ieee80211_vif *vif)
{
struct p54_common *priv = dev->priv;
int err;
vif->driver_flags |= IEEE80211_VIF_BEACON_FILTER;
......@@ -251,9 +252,9 @@ static int p54_add_interface(struct ieee80211_hw *dev,
}
memcpy(priv->mac_addr, vif->addr, ETH_ALEN);
p54_setup_mac(priv);
err = p54_setup_mac(priv);
mutex_unlock(&priv->conf_mutex);
return 0;
return err;
}
static void p54_remove_interface(struct ieee80211_hw *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册