Skip to content
Commit 68608f99 authored by MeiChia Chiu's avatar MeiChia Chiu Committed by Johannes Berg
Browse files

wifi: mac80211: fix center freq calculation in ieee80211_chandef_downgrade



When mac80211 downgrades working bandwidth, the
center_freq and center_freq1 need to be recalculated.
There is a typo in the case of downgrading bandwidth from
320MHz to 160MHz which would cause a wrong frequency value.

Reviewed-by: default avatarMoney Wang <Money.Wang@mediatek.com>
Signed-off-by: default avatarMeiChia Chiu <MeiChia.Chiu@mediatek.com>
Link: https://lore.kernel.org/r/20220708095823.12959-1-MeiChia.Chiu@mediatek.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3c512307
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment