wifi: mac80211: use cfg80211_chandef_primary_freq()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jan 2024 18:34:48 +0000 (19:34 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Feb 2024 12:07:38 +0000 (13:07 +0100)
commit8616f27b3fb0d47be053d7bebc9539171a514917
tree8f1ceb4073b4dfb925fb01b227613ff60479634b
parent8f251a0a1566e3e1da0f1d9322c8ffae808a7509
wifi: mac80211: use cfg80211_chandef_primary_freq()

Instead of calculating the new primary 40/80/160 MHz
center frequency here, use the new helper function from
cfg80211.

Link: https://msgid.link/20240129194108.eb59d6433d18.I74b745f0d1a32e779fb25d50c56407be7c35b840@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/util.c