iwlwifi: set the tid for non-QOS frames to zero
authorAvraham Stern <avraham.stern@intel.com>
Tue, 20 Mar 2018 15:05:06 +0000 (17:05 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Fri, 31 Aug 2018 08:38:17 +0000 (11:38 +0300)
commit2210f6959dfa754d2a191f3db6ac7592d1bebc9c
treec81d1e06361c5ee50273579f1525ffb2648ec431
parentdd2690579f5138e569440e5252e93d8634593190
iwlwifi: set the tid for non-QOS frames to zero

The tid for Non-QOS frames is set to IWL_MAX_TID_COUNT. This value
is also used for configuring the queue for non-QOS data. However, this
tid is used by the FW for management queues. As a result, the FW
does not encrypt non-QOS data frames.

Fix this by setting the tid for non-QOS data frames to zero, which
is a valid value for data frames in the FW.

This also fixes a bug in sending multicast frames, where the queues
are allocated with tid == 0, but are sent with tid == 8, which may
lead to unexpected behavior.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/tx.h
drivers/net/wireless/intel/iwlwifi/mvm/tx.c