From patchwork Tue Sep 8 09:46:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilan Peer X-Patchwork-Id: 515358 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 98E64140187 for ; Tue, 8 Sep 2015 19:52:50 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 854839C187; Tue, 8 Sep 2015 05:52:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AMv7Ts5YUYsM; Tue, 8 Sep 2015 05:52:48 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2F3C29C1B1; Tue, 8 Sep 2015 05:49:04 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E77379C182 for ; Tue, 8 Sep 2015 05:49:02 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LHbmulq++8EA for ; Tue, 8 Sep 2015 05:48:58 -0400 (EDT) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id B55AB17C037 for ; Tue, 8 Sep 2015 05:47:20 -0400 (EDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 08 Sep 2015 02:47:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,489,1437462000"; d="scan'208";a="557431021" Received: from unknown (HELO JEL00311.ger.corp.intel.com) ([10.12.217.137]) by FMSMGA003.fm.intel.com with ESMTP; 08 Sep 2015 02:47:19 -0700 From: Ilan Peer To: hostap@lists.shmoo.com Subject: [PATCH 21/26] wpa_supplicant: Add support for channels 165 and 169 Date: Tue, 8 Sep 2015 12:46:28 +0300 Message-Id: <1441705593-1184-22-git-send-email-ilan.peer@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1441705593-1184-1-git-send-email-ilan.peer@intel.com> References: <1441705593-1184-1-git-send-email-ilan.peer@intel.com> Cc: Avraham Stern X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com From: Avraham Stern Channels 165 and 169 are part of operating class 125. Add support for these channels. Signed-off-by: Avraham Stern --- 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 },