wifi: mac80211: expose ieee80211_chan_width_to_rx_bw() to drivers
authorJohannes Berg <johannes.berg@intel.com>
Mon, 7 Oct 2024 12:00:58 +0000 (15:00 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Oct 2024 14:43:38 +0000 (16:43 +0200)
commit751e7489c1d74b94ffffbed619d8fd724eeff4ee
treee8d8088718aecba25d811ac3040a4241e0558293
parentb23af47921a708e0008698eb373118bb5f20334c
wifi: mac80211: expose ieee80211_chan_width_to_rx_bw() to drivers

Drivers might need to also do this calculation, no point in
them duplicating the code. Since it's so simple, just make
it an inline.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20241007144851.af003cb4a088.I8b5d29504b726caae24af6013c65b3daebe842a2@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/vht.c