cfg80211: fix boundary value in ieee80211_frequency_to_channel()
authorArend van Spriel <arend.vanspriel@broadcom.com>
Tue, 3 Sep 2019 11:39:32 +0000 (13:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 11 Sep 2019 07:12:55 +0000 (09:12 +0200)
commitdf5d7a88bc9409aff60f67d82ee25715fa48a22d
treed0c2613daca641fcac48dfbc68bbb5ec7e1435b5
parentc8cd6e7f159e6f8d79a23df4aeaa7a540415951b
cfg80211: fix boundary value in ieee80211_frequency_to_channel()

The boundary value used for the 6G band was incorrect as it would
result in invalid 6G channel number for certain frequencies.

Reported-by: Amar Singhal <asinghal@codeaurora.org>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://lore.kernel.org/r/1567510772-24263-1-git-send-email-arend.vanspriel@broadcom.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/util.c