Skip to content

Commit

Permalink
mac80211: set carrier on for monitor interfaces on ieee80211_open
Browse files Browse the repository at this point in the history
If a station interface is reused as monitor interface it is possible that
the carrier is still set to off. This breaks packet injection on that
monitor interface.
Force the carrier on in monitor interface initialisation like it is also done
for other interface types (e.g. adhoc, mesh point, ap).

Signed-off-by: David Gnedt <david.gnedt@davizone.at>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
David Gnedt authored and John W. Linville committed Jul 20, 2010
1 parent 4ced3f7 commit 53e9b1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ static int ieee80211_open(struct net_device *dev)
local->fif_other_bss++;

ieee80211_configure_filter(local);

netif_carrier_on(dev);
break;
default:
res = drv_add_interface(local, &sdata->vif);
Expand Down

0 comments on commit 53e9b1d

Please sign in to comment.