wifi: iwlwifi: mvm: protect TXQ list manipulation

Some recent upstream debugging uncovered the fact that in
iwlwifi, the TXQ list manipulation is racy.

Introduce a new state bit for when the TXQ is completely
ready and can be used without locking, and if that's not
set yet acquire the lock to check everything correctly.

Change-Id: Ife6276980e699d6d8dc0307bfd3a87b36c3e02d0
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Berg, Benjamin <benjamin.berg@intel.com>
Signed-off-by: Greenman, Gregory <gregory.greenman@intel.com>
Tested-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
4 files changed