]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Send LQ command as async when necessary
authorAvraham Stern <avraham.stern@intel.com>
Thu, 3 May 2018 12:02:16 +0000 (15:02 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Aug 2018 08:38:32 +0000 (11:38 +0300)
commitd4899c4381c38a9f824bf7cb8b7414c3e145f3a0
tree3f16dd258294a7105376024ef9865f31f9db8f61
parent0c59de8ba5968d0c1b8ea0fc89b9dde112fb7dc0
iwlwifi: mvm: Send LQ command as async when necessary

The parameter that indicated whether the LQ command should be sent
as sync or async was removed, causing the LQ command to be sent as
sync from interrupt context (e.g. from the RX path). This resulted
in a kernel warning: "scheduling while atomic" and failing to send
the LQ command, which ultimately leads to a queue hang.

Fix it by adding back the required parameter to send the command as
sync only when it is allowed.

Fixes: 4c8ebee338e6 ("iwlwifi: mvm: open BA session only when sta is authorized")
Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
drivers/net/wireless/intel/iwlwifi/mvm/rs.h
drivers/net/wireless/intel/iwlwifi/mvm/utils.c