wifi: iwlwifi: mvm: refactor iwl_mvm_set_sta_rate() a bit
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2022 13:42:09 +0000 (16:42 +0300)
committerGregory Greenman <gregory.greenman@intel.com>
Sun, 18 Sep 2022 11:40:13 +0000 (14:40 +0300)
commit7138763e02d1585659a5e82d517f096459985704
tree6ef1a42b0fa316cb68e398909bdc1a47e53b0dfb
parent3d579204e069d99eb9b31f4624b8e7a47cb17f56
wifi: iwlwifi: mvm: refactor iwl_mvm_set_sta_rate() a bit

Use a switch statement over the rate type instead of the
if chain, to simplify.

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