]> git.ipfire.org Git - thirdparty/hostap.git/commit
hw_feature: Correctly select mode in case of the 6 GHz band
authorIlan Peer <ilan.peer@intel.com>
Thu, 22 Oct 2020 11:00:25 +0000 (14:00 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 7 Feb 2021 22:54:10 +0000 (00:54 +0200)
commit99cd453720d6478bdb675e2b3ccfa8e733e5e978
treee627fd690ead17b3406a7efd7608b77c054d7a0c
parentcc96f45f4f196a75223b67e238d3aecbc86f4835
hw_feature: Correctly select mode in case of the 6 GHz band

There are 2 HW modes with IEEE80211_MODE_A: one for the 5 GHz channels
and one for 6 GHz channels. Since hw_get_chan() checks all the
compatible hw modes, eventually, an incorrect hw mode is selected.

To fix this, add a function that checks if a specific mode supports
the requested frequency and if so use it as the current mode.

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
src/ap/hw_features.c
src/common/hw_features_common.c
src/common/hw_features_common.h