wifi: mac80211: clean up band switch in duration
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:34:35 +0000 (19:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 11:58:23 +0000 (12:58 +0100)
commit61f0261131c8dc2beeb6b34781a54788221081e9
tree5b38d18653b292f3754f268f85b7a25747602fb0
parentefa2cce6e272b36c7f9687385ef4fd538cc3bf51
wifi: mac80211: clean up band switch in duration

Most devices now do duration calculations, so we don't hit
this code at all any more. Clearly the approach of warning
at compile time here when new bands are added didn't work,
the new bands were just added with "TODO". Clean it up, it
won't matter for new bands since they'll just not have any
need to calculate durations in software.

While at it, also clean up and unify the code a bit.

Link: https://msgid.link/20240129194108.70a97bd69265.Icdd8b0ac60a382244466510090eb0f5868151f39@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/tx.c