]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Fix regression in frequency check for a usable EDMG channel
authorHrishikesh Vidwans <hvidwans@codeaurora.org>
Fri, 6 Mar 2020 18:57:58 +0000 (10:57 -0800)
committerJouni Malinen <j@w1.fi>
Wed, 11 Mar 2020 15:54:13 +0000 (17:54 +0200)
commitd9a7b71a78524bb56bcd3f341c97c398e2966725
treefc86168564d0b9fc3797f7da7f41c57a26fceb29
parent1f13c1393c350bf70cbf107d2ae4529a9c6ff9fa
AP: Fix regression in frequency check for a usable EDMG channel

Commit 5f9b4afd ("Use frequency in HT/VHT validation steps done before
starting AP") modified hostapd_is_usable_edmg() to use freq instead of
channel numbers. Unfortunately, it did not convert the frequency
calculation correctly and this broke EDMG functionality.

Fix the frequency calculation so that EDMG channel 9 works again.

Fixes: 5f9b4afdfaf5 ("Use frequency in HT/VHT validation steps done before starting AP")
Signed-off-by: Hrishikesh Vidwans <hvidwans@codeaurora.org>
src/ap/hw_features.c