From patchwork Wed Jun 19 12:49:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Otcheretianski, Andrei" X-Patchwork-Id: 1118518 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="cOKkghC4"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45THNP6Pvdz9s6w for ; Wed, 19 Jun 2019 17:57:09 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HyjKvZzl0/N7tQruw9G821TVdclRVtvM9J7pHgafCpI=; b=cOKkghC4G6zH8w CnwbAykBtqnb92vLSVXZQEk/t3KbyJRkFgsexL9kQeAii1IpgiLb4I4WDb2WDOQ4iRd3FjwjYewr8 pv4/KfaCUcOEKqNIJLnhfE4pWhB3SEeNasaHHv53B2p0Fy7WGOY3dvdOjd0CqO23akR1dtr9slinW /GKM/eMxCXyCQnrL42MfWBXrvi6sk2Rkp2OzdFW/xfoYdjF4t/Ajk+fYFXNNEZS20Fx1dJ0ybA5RV eIztICi7Hn1VFFQcZ9/mFrJCTWGi1NL2CWBWD75DTNjZWNYlhSDhpJQs2sUB6J/X4AryW3qJ8W1kZ HegZoI2LcfcVg+auvzmw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hdVSs-0006tE-CU; Wed, 19 Jun 2019 07:57:06 +0000 Received: from mga17.intel.com ([192.55.52.151]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hdVSg-0006ZZ-Nn for hostap@lists.infradead.org; Wed, 19 Jun 2019 07:56:55 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jun 2019 00:56:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,392,1557212400"; d="scan'208";a="358537320" Received: from andrei-xps-12-9q33.jer.intel.com ([10.12.190.53]) by fmsmga006.fm.intel.com with ESMTP; 19 Jun 2019 00:56:53 -0700 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH 2/6] driver_nl80211: Support 6Ghz channels Date: Wed, 19 Jun 2019 15:49:12 +0300 Message-Id: <20190619124916.14150-3-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190619_005654_792886_C0927DAC X-CRM114-Status: UNSURE ( 8.34 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.1 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.1 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [192.55.52.151 listed in list.dnswl.org] 2.4 DATE_IN_FUTURE_03_06 Date: is 3 to 6 hours after Received: date 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrei Otcheretianski Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Andrei Otcheretianski --- src/drivers/driver_nl80211_capa.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index ab9b19f393..be7db5f4d6 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -1738,6 +1738,9 @@ wpa_driver_nl80211_postprocess_modes(struct hostapd_hw_modes *modes, } } else if (modes[m].channels[0].freq > 50000) modes[m].mode = HOSTAPD_MODE_IEEE80211AD; + else if (modes[m].channels[0].freq > 5940 && + modes[m].channels[0].freq <= 7105) + modes[m].mode = HOSTAPD_MODE_IEEE80211AX; else modes[m].mode = HOSTAPD_MODE_IEEE80211A; } @@ -2129,6 +2132,8 @@ static const char * modestr(enum hostapd_hw_mode mode) return "802.11g"; case HOSTAPD_MODE_IEEE80211A: return "802.11a"; + case HOSTAPD_MODE_IEEE80211AX: + return "802.11ax"; case HOSTAPD_MODE_IEEE80211AD: return "802.11ad"; default: