cfg80211: Adjust 6 GHz frequency to channel conversion
authorAmar Singhal <asinghal@codeaurora.org>
Fri, 19 Jun 2020 20:52:01 +0000 (13:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 11:55:34 +0000 (13:55 +0200)
commit01199dce4d445fc620161abf771ea54a3d24930e
treec47af779879c503559aee9b82ac31fd0fe2339d0
parent3a8fcf73cbf1027813828f29b24d8858f31a9755
cfg80211: Adjust 6 GHz frequency to channel conversion

[ Upstream commit 2d9b55508556ccee6410310fb9ea2482fd3328eb ]

Adjust the 6 GHz frequency to channel conversion function,
the other way around was previously handled.

Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Link: https://lore.kernel.org/r/1592599921-10607-1-git-send-email-asinghal@codeaurora.org
[rewrite commit message, hard-code channel 2]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/util.c