Skip to content

Commit

Permalink
p54: pass interface setup errors back to mac80211
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Mar 6, 2012
1 parent a9b89e2 commit 972a313
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/wireless/p54/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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,
Expand Down

0 comments on commit 972a313

Please sign in to comment.