mac80211: correct legacy rates check in ieee80211_calc_rx_airtime
authorMeiChia Chiu <MeiChia.Chiu@mediatek.com>
Tue, 8 Mar 2022 02:16:45 +0000 (10:16 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Mar 2022 10:45:36 +0000 (11:45 +0100)
commit022143d0c52b6e63d49ffc3542dc9d3ae15a5178
treecbb08ff147dcf71ba3cdf914040491bf397105de
parent2916b7a9c7c25ecf9be2f37e567a277e861f8e3f
mac80211: correct legacy rates check in ieee80211_calc_rx_airtime

There are no legacy rates on 60GHz or sub-1GHz band, so modify the check.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: MeiChia Chiu <MeiChia.Chiu@mediatek.com>
Link: https://lore.kernel.org/r/20220308021645.16272-1-MeiChia.Chiu@mediatek.com
[Ghz ->  GHz]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/airtime.c