Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1140144pxb; Tue, 19 Oct 2021 22:12:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK0NcOaGD6j23ihRQiPqswZgdT7kKtdeYZztYnt4vgKhUE8x2KdU+C0SvD5Ngi+0bw+pbq X-Received: by 2002:a05:6a00:181d:b0:44d:8425:fbe3 with SMTP id y29-20020a056a00181d00b0044d8425fbe3mr4220000pfa.6.1634706740272; Tue, 19 Oct 2021 22:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634706740; cv=none; d=google.com; s=arc-20160816; b=fPwyXNK/HXqj55lO0Q1jfBIhqOBv3zitlRArPj0dz9gRVaxy1Scujsnny2JxXQ+bYv rlJ1w2RB/LtvPqd09JowUoKzOYd1crBqsjwO7z1SeMTidXUCOxtxPBer7mtS82cESgZZ HDiB3luW2M1Hbf9toTe8KbYxH0RHrGC2XU0vYlyfpi1pIWoGsNm7VC5irzOu9SCSCONQ REZbymPCPsz20AJJjlbA7NwS/KPOVUaiG9doIw8CziFPUbeYpcTErRRCGFVxsJzDql8H McP1r/CYC2gibCcWRHb06+aek1cUE30TcQhsTTDkAIDuwxIK1oZGWG446T4HgwaQbW9n l0uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=T1VzsPx9p9crtTkQr+rIfFGK9x3ghmKoxwNwxsWt+Wc=; b=VE8giOdmiPcNA69247NfYlzPBEWsOMi8fCR/fZDJHSMWhUw42mX1pdbzZ15zj7ZTM2 /tMxKvzVzAvSRJGA2ZZSwdwlYnia9QzLA9r4Ms/pXKlh91JmRUIpdrmPs4RuYHTUP144 Je71Fa1MkcyJaOnoB2jzFKqYMTsTnXdUFjiWj2VRZI8ttfSQzD5VlDAdZ1JyzRJhSST1 cAHvd9UCbg2WdykD4xbv4zUy8/3HAi867H432AOVdiaykUBuNC1sw0yJvG9eTNo9KZYV MKgV5GZwHLfiiNAqtBoNg2gL/89AR3OszRZpOyoRzkM1osExuoOEHGdLdetOHqnB0qil 2W8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a16si1934518pfv.95.2021.10.19.22.12.05; Tue, 19 Oct 2021 22:12:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229817AbhJTFON (ORCPT + 64 others); Wed, 20 Oct 2021 01:14:13 -0400 Received: from mga11.intel.com ([192.55.52.93]:53932 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbhJTFOM (ORCPT ); Wed, 20 Oct 2021 01:14:12 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10142"; a="226155042" X-IronPort-AV: E=Sophos;i="5.87,165,1631602800"; d="scan'208";a="226155042" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 22:11:59 -0700 X-IronPort-AV: E=Sophos;i="5.87,165,1631602800"; d="scan'208";a="494456251" Received: from jrhew-mobl2.amr.corp.intel.com (HELO egrumbac-mobl1.intel.com) ([10.254.151.75]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2021 22:11:56 -0700 From: Emmanuel Grumbach To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, kvalo@codeaurora.org, Emmanuel Grumbach Subject: [PATCH] nl80211: vendor-cmd: intel: add more details for IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP Date: Wed, 20 Oct 2021 08:11:47 +0300 Message-Id: <20211020051147.29297-1-emmanuel.grumbach@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Explain more the expected flow for this command. Signed-off-by: Emmanuel Grumbach --- include/uapi/linux/nl80211-vnd-intel.h | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/include/uapi/linux/nl80211-vnd-intel.h b/include/uapi/linux/nl80211-vnd-intel.h index 0bf177b84fd9..4ed7d0b24512 100644 --- a/include/uapi/linux/nl80211-vnd-intel.h +++ b/include/uapi/linux/nl80211-vnd-intel.h @@ -13,6 +13,35 @@ * enum iwl_mvm_vendor_cmd - supported vendor commands * @IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO: reports CSME connection info. * @IWL_MVM_VENDOR_CMD_HOST_GET_OWNERSHIP: asks for ownership on the device. + * This is useful when the CSME firmware owns the device and the kernel + * wants to use it. In case the CSME firmware has no connection active the + * kernel will manage on its own to get ownership of the device. + * When the CSME firmware has an active connection, the user space + * involvement is required. The kernel will assert the RFKILL signal with + * the "device not owned" reason so that nobody can touch the device. Then + * the user space can run the following flow to be able to get connected + * to the very same AP the CSME firmware is currently connected to: + * + * 1) The user space (NetworkManager) boots and sees that the device is + * in RFKILL because the host doesn't own the device + * 2) The user space asks the kernel what AP the CSME firmware is + * connected to (with %IWL_MVM_VENDOR_CMD_GET_CSME_CONN_INFO) + * 3) The user space checks if it has a profile that matches the reply + * from the CSME firmware + * 4) The user space installs a network to the wpa_supplicant with a + * specific BSSID and a specific frequency + * 5) The user space prevents any type of full scan + * 6) The user space asks iwlmei to request ownership on the device (with + * this command) + * 7) iwlmei requests ownership from the CSME firmware + * 8) The CSME firmware grants ownership + * 9) iwlmei tells iwlwifi to lift the RFKILL + * 10) RFKILL OFF is reported to user space + * 11) The host boots the device, loads the firwmare, and connects to a + * specific BSSID without scanning including IP as fast as it can + * 12) The host reports to the CSME firmware that there is a connection + * 13) The TCP connection is preserved and the host has connectivity + * * @IWL_MVM_VENDOR_CMD_ROAMING_FORBIDDEN_EVENT: notifies if roaming is allowed. * It contains a &IWL_MVM_VENDOR_ATTR_ROAMING_FORBIDDEN and a * &IWL_MVM_VENDOR_ATTR_VIF_ADDR attributes. -- 2.25.1