wifi: iwlwifi: mvm: rxmq: refactor mac80211 rx_status setting
authorJohannes Berg <johannes.berg@intel.com>
Tue, 6 Sep 2022 13:42:07 +0000 (16:42 +0300)
committerGregory Greenman <gregory.greenman@intel.com>
Sun, 18 Sep 2022 11:40:13 +0000 (14:40 +0300)
commitf1490546bec933e816843b7a95310b825b38dfeb
treef558011112ebd68cb5a0cd6de482553b52c8f684
parenteab9ebfb7e83686bdef9a43dc43dd4f2b714f0a3
wifi: iwlwifi: mvm: rxmq: refactor mac80211 rx_status setting

There's a bunch of duplicated code in the normal data RX and
the no-data RX paths, refactor that.

Note that we're evidently not implementing the 6 GHz band in
the no-data path correctly, need to fix that in firmware
first. Also, we were setting the NSS differently, keep doing
that, but just override the previous values.

Note also that we used to drop frames with bad rate data, to
simplify that just report rate 0 and continue.

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.a81580d5e769.I3ee7a1fe1adf8684c48713dbbdc2cbc60bd24cd1@changeid
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c