]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Fix offloaded ACS regression for the 60 GHz band
authorNoam Shaked <nshaked@codeaurora.org>
Tue, 10 Mar 2020 01:16:02 +0000 (18:16 -0700)
committerJouni Malinen <j@w1.fi>
Mon, 23 Mar 2020 20:29:04 +0000 (22:29 +0200)
commit00f6a27628ac571519bf83f44987816510532dd7
tree90cd3abfa074355cdd5c73b0fb8e5b699afb1ea6
parent1e8ea0833dcb0dec7e02a407fb15abd5bcd08c5a
nl80211: Fix offloaded ACS regression for the 60 GHz band

Addition of chan_2ghz_or_5ghz_to_freq() broke 60 GHz ACS, because it
assumes reported ACS channel is on either 2.4 or 5 GHz band. Fix this
by converting chan_2ghz_or_5ghz_to_freq() to a more generic
chan_to_freq(). The new function uses hw_mode to support 60 GHz.

Fixes: 41cac481a889 ("ACS: Use frequency params in ACS (offload) completed event interface")
Signed-off-by: Noam Shaked <nshaked@codeaurora.org>
src/drivers/driver_nl80211_event.c