wifi: iwlwifi: dvm: clean up rs_get_rate() logic
authorJohannes Berg <johannes.berg@intel.com>
Fri, 10 May 2024 14:06:28 +0000 (17:06 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 May 2024 08:49:49 +0000 (10:49 +0200)
commit32fca7e3820cc915d1d47e33b13da8124208b04c
tree78cabc2599238a1f3335fc1209113d4490881c98
parent5a009b42e0418d30b3ffaff2f46c534cd79b3f23
wifi: iwlwifi: dvm: clean up rs_get_rate() logic

The logic here is rather convoluted - we cannot get here with
lq_sta being NULL as mac80211 will (no longer) call us like
that, and since I removed the rate_control_send_low() call in
this function there's no longer any point in setting priv_sta
to NULL either.

So the only thing that remains to check is if we have actually
initialized our lq_sta->drv pointer, and exit if we didn't in
which case we'll use the data mac80211 already set up for the
low rate usage.

Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Link: https://msgid.link/20240510170500.a4cdb41825eb.Id202bcc967c32829f70ab1412f8893b6eb7f78e2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/rs.c