]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: do not call driver wake_tx_queue op during reconfig
authorFelix Fietkau <nbd@nbd.name>
Fri, 1 Mar 2019 13:48:37 +0000 (14:48 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 29 Mar 2019 10:22:41 +0000 (11:22 +0100)
commit775f4a0d59bafbdc637682b81bf0af29a3dc6ca1
treec5d10b2fe98450b2fc880c2403efa6e16f66d0f4
parent9c75368322ab09147ab7f3544d8fe64510bc16f6
mac80211: do not call driver wake_tx_queue op during reconfig

There are several scenarios in which mac80211 can call drv_wake_tx_queue
after ieee80211_restart_hw has been called and has not yet completed.
Driver private structs are considered uninitialized until mac80211 has
uploaded the vifs, stations and keys again, so using private tx queue
data during that time is not safe.

The driver can also not rely on drv_reconfig_complete to figure out when
it is safe to accept drv_wake_tx_queue calls again, because it is only
called after all tx queues are woken again.

To fix this, bail out early in drv_wake_tx_queue if local->in_reconfig
is set.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/driver-ops.h