commit | bdeca45a0cc58f864f1eb2e919304203ff5c5f39 | [log] [tgz] |
---|---|---|
author | Borwankar, Antara <[email protected]> | Sun Nov 29 17:30:53 2020 +0200 |
committer | Johannes Berg <[email protected]> | Fri Dec 04 12:45:25 2020 +0100 |
tree | d754aa3b80b2f2eb4dc6e8e1c97b10300f105360 | |
parent | f495acd8851d7b345e5f0e521b2645b1e1f928a0 [diff] |
mac80211: set SDATA_STATE_RUNNING for monitor interfaces During restarrt, mac80211 is supposed to reconfigure the driver. When there's a monitor interface, the interface is added and the channel context for it was created, but not assigned to it as it was not considered running during the restart. Fix this by setting SDATA_STATE_RUNNING while adding monitor interfaces. Signed-off-by: Borwankar, Antara <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20201129172929.e1df99693a4c.I494579f28018c2d0b9d4083a664cf872c28405ae@changeid [reword commit log] Signed-off-by: Johannes Berg <[email protected]>
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 1be7759..44154cc 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c
@@ -948,6 +948,8 @@ int ieee80211_add_virtual_monitor(struct ieee80211_local *local) return ret; } + set_bit(SDATA_STATE_RUNNING, &sdata->state); + ret = ieee80211_check_queues(sdata, NL80211_IFTYPE_MONITOR); if (ret) { kfree(sdata);