]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iwlwifi: mvm: avoid race condition in ADD_STA.
authorGoodstein, Mordechay <mordechay.goodstein@intel.com>
Sun, 15 Jan 2017 14:00:12 +0000 (16:00 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 8 Feb 2017 15:54:22 +0000 (17:54 +0200)
commit735a0045f9ea8372bcf3e599cbd3aa891a216b26
treef78361df24149aa7b4db2dd71e0ad335a76f16c8
parentb45242c99f503d0a526c2b1f647ad562f9cf9dd5
iwlwifi: mvm: avoid race condition in ADD_STA.

The race happens when we send ADD_STA(auth->assoc) -> LQ_CMD
between the commands the FW sometimes loses the medium for AUX, and
sends a ndp to the AP and the flow becomes, ADD_STA -> send ndp -> LQ_CMD
the problem is that there's no rates yet defined for sending the ndp and
FW generates an assert.

The fix: change the order of the commands to LQ_CMD -> ADD_STA

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c