]> bbs.cooldavid.org Git - net-next-2.6.git/commit
mac80211: set carrier on for monitor interfaces on ieee80211_open
authorDavid Gnedt <david.gnedt@davizone.at>
Mon, 19 Jul 2010 18:44:02 +0000 (20:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 20 Jul 2010 20:02:58 +0000 (16:02 -0400)
commit53e9b1de6840d9047f768878adcbd1d116f72aca
tree1926848bff27967029d24d954530f57845f36f3c
parent4ced3f74dae18715920cb680098ec7ff4345d0a3
mac80211: set carrier on for monitor interfaces on ieee80211_open

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>
net/mac80211/iface.c