AP: Fix regression in frequency check for a usable EDMG channel
Commit5f9b4afd
("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:5f9b4afdfa
("Use frequency in HT/VHT validation steps done before starting AP") Signed-off-by: Hrishikesh Vidwans <hvidwans@codeaurora.org>
This commit is contained in:
parent
1f13c1393c
commit
d9a7b71a78
1 changed files with 1 additions and 1 deletions
|
@ -785,7 +785,7 @@ static int hostapd_is_usable_edmg(struct hostapd_iface *iface)
|
||||||
|
|
||||||
/* 60 GHz channels 1..6 */
|
/* 60 GHz channels 1..6 */
|
||||||
for (i = 0; i < 6; i++) {
|
for (i = 0; i < 6; i++) {
|
||||||
int freq = 56160 + 2160 * i;
|
int freq = 56160 + 2160 * (i + 1);
|
||||||
|
|
||||||
if (edmg.channels & BIT(i)) {
|
if (edmg.channels & BIT(i)) {
|
||||||
contiguous++;
|
contiguous++;
|
||||||
|
|
Loading…
Reference in a new issue