]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix channel selection for operating class 129
authorSreeramya Soratkal <ssramya@codeaurora.org>
Mon, 23 Nov 2020 07:51:53 +0000 (13:21 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 22 Jan 2021 17:18:10 +0000 (19:18 +0200)
The operating class 129 includes channels with a maximum bandwidth of
160 MHz with center frequency index 50 and 114. The previous definition
of operating class 129 considered the center frequency index as actual
channels resulting in incorrect channel setup for the operating class.

Fix the definition of operating class 129 to consider channels with the
center frequency index of 50 and 114.

Also update the comment that describes the channel selection for
operating 128, 129, and 130 which mentions wpas_p2p_allow_channel()
verifies the channels while wpas_p2p_verify_channel() takes care of it.

Signed-off-by: Sreeramya Soratkal <ssramya@codeaurora.org>
src/common/ieee802_11_common.c

index c90e04ce7e3850a6c23f02b2197c617b82224ee8..764ece92a57c378e1237c086bdebd930015e7331 100644 (file)
@@ -1885,11 +1885,11 @@ const struct oper_class_map global_op_class[] = {
         * frequency index 42, 58, 106, 122, 138, 155 with channel spacing of
         * 80 MHz, but currently use the following definition for simplicity
         * (these center frequencies are not actual channels, which makes
-        * wpas_p2p_allow_channel() fail). wpas_p2p_verify_80mhz() should take
+        * wpas_p2p_verify_channel() fail). wpas_p2p_verify_80mhz() should take
         * care of removing invalid channels.
         */
        { HOSTAPD_MODE_IEEE80211A, 128, 36, 161, 4, BW80, P2P_SUPP },
-       { HOSTAPD_MODE_IEEE80211A, 129, 50, 114, 16, BW160, P2P_SUPP },
+       { HOSTAPD_MODE_IEEE80211A, 129, 36, 128, 4, BW160, P2P_SUPP },
        { HOSTAPD_MODE_IEEE80211A, 131, 1, 233, 4, BW20, NO_P2P_SUPP },
        { HOSTAPD_MODE_IEEE80211A, 132, 1, 233, 8, BW40, NO_P2P_SUPP },
        { HOSTAPD_MODE_IEEE80211A, 133, 1, 233, 16, BW80, NO_P2P_SUPP },