From patchwork Sun Jan 28 12:45:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Otcheretianski X-Patchwork-Id: 866808 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=65.50.211.133; helo=bombadil.infradead.org; envelope-from=hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RS9k1vqS"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zTnsT0K3wz9s0g for ; Sun, 28 Jan 2018 20:49:01 +1100 (AEDT) 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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To: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:List-Owner; bh=Gij/D48BJEgJaagd5XCN988chD8TlkxrP/s3wb3cbd4=; b=RS9k1vqSniZfLjPGMOgdaOMjnA lXn06+QXkOBmMU/4iB+0orlBGe+QjgIgkmzUYaQrer2LbVVbFXtvQPIPMorEdPH2xS5vZbYN6LywG O1AyavkHaDNjWE2vbtY3+FAl93l8rsPiYSgtES0JU2GbEp4SIGjAWdeVnua81V23hHhfvK0Rkyw/a y3Htj45LY2GFfGAvNaPJYyRu1TI8/nYWDbZFXn3HN8jKHJ0K+qyWu7ZKQggjS/Rd02o1cIgtA7llo mY3sDWGbC5JhqQUo0VAj47fBagu+5xiRc1Hhlj1oOhm4zKMtizl9RWGaLm2NFSQMItxShnDaDAMpE tGIInktQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1efjZf-0008Ei-6h; Sun, 28 Jan 2018 09:48:31 +0000 Received: from mga05.intel.com ([192.55.52.43]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1efjZb-0008EJ-62 for hostap@lists.infradead.org; Sun, 28 Jan 2018 09:48:28 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2018 01:48:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,426,1511856000"; d="scan'208";a="14046301" Received: from unknown (HELO andrei-XPS-12-9Q33.ger.corp.intel.com) ([10.12.217.183]) by orsmga006.jf.intel.com with ESMTP; 28 Jan 2018 01:48:14 -0800 From: Andrei Otcheretianski To: hostap@lists.infradead.org Subject: [PATCH 3/7] driver_nl80211: check 4-way handshake offload support Date: Sun, 28 Jan 2018 14:45:33 +0200 Message-Id: <1517143537-7441-4-git-send-email-andrei.otcheretianski@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517143537-7441-1-git-send-email-andrei.otcheretianski@intel.com> References: <1517143537-7441-1-git-send-email-andrei.otcheretianski@intel.com> X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [192.55.52.43 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrei Otcheretianski , Eliad Peller , Eliad Peller MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org From: Eliad Peller Set the WPA_DRIVER_FLAGS_4WAY_HANDSHAKE flag if the driver indicates both 4-way handshake PSK and 1X support. Currently wpa_supplicant doesn't distinguish between 4-way handshake for 1x and PSK, but nl80211 API has different capabilities for each one. Change-Id: Ia8341819ed35f88460813537a8cf4c4ef46c8875 Signed-off-by: Eliad Peller Signed-off-by: Andrei Otcheretianski --- src/drivers/driver_nl80211_capa.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index f11a1d7..fd8b457 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -401,6 +401,12 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info, if (ext_feature_isset(ext_features, len, NL80211_EXT_FEATURE_FILS_SK_OFFLOAD)) capa->flags |= WPA_DRIVER_FLAGS_FILS_SK_OFFLOAD; + + if (ext_feature_isset(ext_features, len, + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_PSK) && + ext_feature_isset(ext_features, len, + NL80211_EXT_FEATURE_4WAY_HANDSHAKE_STA_1X)) + capa->flags |= WPA_DRIVER_FLAGS_4WAY_HANDSHAKE; }