From: David Gnedt Date: Mon, 19 Jul 2010 18:44:02 +0000 (+0200) Subject: mac80211: set carrier on for monitor interfaces on ieee80211_open X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53e9b1de6840d9047f768878adcbd1d116f72aca;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Acked-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 8ef2fde6e92..ebbe264e2b0 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -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);