iwlwifi: mvm: don't try to offload AES-CMAC in AP/IBSS modes
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Mar 2016 13:58:47 +0000 (14:58 +0100)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 9 Mar 2016 19:05:17 +0000 (21:05 +0200)
commit81279c49ce472bf5900ef8b19bf91e2ad6bd1c34
tree8941e9714232ac63728923dd657af01eb31f4fa4
parent7d3ca7f4b1d5a43a1e0dbd112bb4c3bcf9a81fab
iwlwifi: mvm: don't try to offload AES-CMAC in AP/IBSS modes

The firmware/hardware only supports checking AES-CMAC on RX, not
using it on TX. For station mode this is fine, since it's the only
thing it will ever do. For AP mode, it never receives such frames,
but must be able to transmit them. This is currently broken since
we try to enable them for hardware crypto (for RX only) and then
treat them as TX_CMD_SEC_EXT, leading to FIFO underruns during TX
so the frames never go out to the air.

To fix this, simply use software on TX in AP (and IBSS) mode.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c