[PATCH 21/26] wpa_supplicant: Add support for channels 165 and 169

Ilan Peer ilan.peer
Tue Sep 8 02:46:28 PDT 2015


From: Avraham Stern <avraham.stern at intel.com>

Channels 165 and 169 are part of operating class 125. Add support
for these channels.

Signed-off-by: Avraham Stern <avraham.stern at intel.com>
---
 src/common/ieee802_11_common.c  | 2 +-
 wpa_supplicant/p2p_supplicant.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/common/ieee802_11_common.c b/src/common/ieee802_11_common.c
index d07a316..8be5b26 100644
--- a/src/common/ieee802_11_common.c
+++ b/src/common/ieee802_11_common.c
@@ -928,7 +928,7 @@ static int ieee80211_chan_to_freq_global(u8 op_class, u8 chan)
 	case 124: /* channels 149,153,157,161 */
 	case 126: /* channels 149,157; 40 MHz */
 	case 127: /* channels 153,161; 40 MHz */
-		if (chan < 149 || chan > 161)
+		if (chan < 149 || chan > 169)
 			return -1;
 		return 5000 + 5 * chan;
 	case 125: /* channels 149,153,157,161,165,169 */
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c
index 9059da5..a2e32cb 100644
--- a/wpa_supplicant/p2p_supplicant.c
+++ b/wpa_supplicant/p2p_supplicant.c
@@ -3265,6 +3265,7 @@ static const struct p2p_oper_class_map op_class[] = {
 	{ HOSTAPD_MODE_IEEE80211A, 125, 149, 169, 4, BW20 },
 	{ HOSTAPD_MODE_IEEE80211A, 116, 36, 44, 8, BW40PLUS },
 	{ HOSTAPD_MODE_IEEE80211A, 117, 40, 48, 8, BW40MINUS },
+	{ HOSTAPD_MODE_IEEE80211A, 125, 149, 169, 4, BW20 },
 	{ HOSTAPD_MODE_IEEE80211A, 126, 149, 157, 8, BW40PLUS },
 	{ HOSTAPD_MODE_IEEE80211A, 127, 153, 161, 8, BW40MINUS },
 
-- 
1.9.1




More information about the Hostap mailing list