wifi: iwlwifi: mvm: refactor TX rate handling
authorJohannes Berg <johannes.berg@intel.com>
Thu, 21 Sep 2023 08:58:07 +0000 (11:58 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Sep 2023 07:15:00 +0000 (09:15 +0200)
commitb99c4607973ae69af3b953c28952d3c9872007c8
treee252ac8d74b10fb586d6d99826b6743c75d4c96b
parenta856ce662c476d75405f576809b84f752909ddac
wifi: iwlwifi: mvm: refactor TX rate handling

Refactor the injection and other frame TX rate handling
to always return the injection rate directly, by factoring
the legay rate portion out into a new function called in
the two relevant places (injection and non-injection).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230921110727.dc920357bad0.I5ee8512fb63f0423c1da35b59fea8811d60c1ad3@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/tx.c