iwlwifi: mvm: rs: start using LQ command color
authorGregory Greenman <gregory.greenman@intel.com>
Mon, 6 Mar 2017 09:15:41 +0000 (11:15 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Mon, 5 Jun 2017 18:45:41 +0000 (21:45 +0300)
commitea42d1cbe3f067fb714c3ec3e1792fa273b99561
tree2b55085e980eb7699ff0154d88881c30611f15d3
parent6d18c732b95c0a9d35e9f978b4438bba15412284
iwlwifi: mvm: rs: start using LQ command color

Up until now, the driver was comparing the rate reported by the FW and
the rate of the latest LQ command to avoid processing data belonging
to the old LQ command. Recently, FW changed the meaning of the initial
rate field in tx response and it holds the actual rate (which is not
necessarily the initial rate of LQ's rate table). Use instead LQ cmd
color to be able to filter out tx responses/BA notifications which
where sent during earlier LQ commands' time frame.

This fixes some throughput degradation in noisy environments.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/fw-api-rs.h
drivers/net/wireless/intel/iwlwifi/mvm/fw-api-tx.h
drivers/net/wireless/intel/iwlwifi/mvm/rs.c
drivers/net/wireless/intel/iwlwifi/mvm/rs.h
drivers/net/wireless/intel/iwlwifi/mvm/sta.h
drivers/net/wireless/intel/iwlwifi/mvm/tx.c