mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Acked-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
4ced3f74da
commit
53e9b1de68
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue