diff options
author | Mordechay Goodstein <mordechay.goodstein@intel.com> | 2023-03-05 15:16:31 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-03-07 22:15:18 +0300 |
commit | 774302d2d3ad916f415d651362550daf22f630b7 (patch) | |
tree | a262ea23fb33d2ce5d560f5bf641ff1fbd06ebcd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | beddcdc489864e234af844d906547b1cb70e9036 (diff) | |
download | linux-774302d2d3ad916f415d651362550daf22f630b7.tar.xz |
wifi: iwlwifi: mvm: clean up duplicated defines
VHT, HE and EHT rates use the same bits for NSS, so no need for
defines per PHY version.
Also use spatch to replace bit manipulation with FIELD_GET:
@@
identifier rate;
@@
-((rate & RATE_MCS_NSS_MSK) >> RATE_MCS_NSS_POS)
+FIELD_GET(RATE_MCS_NSS_MSK, rate)
Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230305124407.167ed9477aa8.Ibd8e71d31896e8d8f067ce4e3a6e9a0e86c78f3f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions