From patchwork Mon Nov 26 09:32:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sarada Prasanna Garnayak X-Patchwork-Id: 1003071 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="d2sc1exJ"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::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 433MCz6GYjz9s3C for ; Mon, 26 Nov 2018 20:33:19 +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: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=m6zCHn8fTic3obDzuLkQxJKzEx7SAHocdIWqDYuPPqw=; b=d2s c1exJxwWtD11xM47V0c0RA2jsQFPqDOx6/EC8KFmfdg/o3dqvORp8Cb/4W/SJOD3Wce8TIj3kvJvF o2qYkm/T37AFP5KWDGUWrYKS1VqFDgLnMuZhkWwOVJNwYeNVK6VyqKVMUqnh5Jr3U/90I1LWaT/YK Fl3FFnhZRFCUUX/89KPoyNJVMBm7VyIkkf72PJ9bvkszyzF1HhapnErw5HXq4B4GtPv7bhVyZpuOm 2PFD1riZm95OLW9giIJL4h7ziuy/HWoH8qTa2TLiCp4j51O/fDgKSd5U4w0CKUUEotI9VagtG9mrb tQPOb2H/PAZ0d9W58Cymjt7x89HgvYw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRDGG-0006PM-1N; Mon, 26 Nov 2018 09:33:00 +0000 Received: from mga14.intel.com ([192.55.52.115]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRDGC-0006Op-9z for hostap@lists.infradead.org; Mon, 26 Nov 2018 09:32:58 +0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Nov 2018 01:32:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,281,1539673200"; d="scan'208";a="103161678" Received: from inlubt0043.iind.intel.com ([10.223.47.124]) by orsmga003.jf.intel.com with ESMTP; 26 Nov 2018 01:32:44 -0800 From: Sarada Prasanna Garnayak To: hostap@lists.infradead.org Subject: [PATCH 1/6] Add a header file defining Intel Lantiq OUI and vendor extensions Date: Mon, 26 Nov 2018 15:02:41 +0530 Message-Id: <20181126093241.25888-1-sarada.prasanna.garnayak@intel.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_013256_358694_6DD7C11D X-CRM114-Status: GOOD ( 19.53 ) X-Spam-Score: -5.0 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high trust [192.55.52.115 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 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: Sarada Prasanna Garnayak MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org This file is used as a registry of identifier assignments from the Intel Lantiq OUI 00:13:74 for purposes other than MAC address assignment. This file adds support for the Intel Lantiq WLAN module configuration and management using nl80211 vendor commands/events. Signed-off-by: Sarada Prasanna Garnayak --- src/common/intel-ltq-vendor.h | 71 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 src/common/intel-ltq-vendor.h diff --git a/src/common/intel-ltq-vendor.h b/src/common/intel-ltq-vendor.h new file mode 100644 index 000000000..6e9febe97 --- /dev/null +++ b/src/common/intel-ltq-vendor.h @@ -0,0 +1,71 @@ +/* + * Intel Lantiq OUI and vendor specific assignments. + * Copyright (c) 2018 The Linux Foundation. All rights reserved. + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * This software may be distributed under the terms of the BSD license. + * See README for more details. + */ + +#ifndef INTEL_LTQ_VENDOR_H +#define INTEL_LTQ_VENDOR_H + +/** + * This file is a registry of identifier assignments from + * the Intel Lantiq OUI AC:9A:96 for purposes other than MAC address + * assignment. + * New identifiers can be assigned through normal review process + * for changes to the upstream hostap.git repository. + */ + +#define OUI_INTEL_LTQ 0xAC9A96 + +/* + * enum intel_ltq_nl80211_vendor_subcmds - Intel LTQ nl80211 + * vendor command identifiers. + * + * @INTEL_LTQ_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 + * + * @INTEL_LTQ_NL80211_VENDOR_SUBCMD_GET_AID: Send request to + * the kernel driver to get an association ID for a station + * during the association phase. + * + * @INTEL_LTQ_NL80211_VENDOR_SUBCMD_FREE_AID: Send request to + * the kernel driver to free the association ID of a station + * during the dissociation phase. + * + * @INTEL_LTQ_NL80211_VENDOR_SUBCMD_TX_EAPOL: The Intel Lantiq WLAN + * module support eapol functionality in the driver, this vendor + * cmd used to offload the eapol tx status work from hostapd + * to the driver. + */ +enum intel_ltq_nl80211_vendor_subcmds { + INTEL_LTQ_NL80211_VENDOR_SUBCMD_UNSPEC = 0, + INTEL_LTQ_NL80211_VENDOR_SUBCMD_GET_AID = 1, + INTEL_LTQ_NL80211_VENDOR_SUBCMD_FREE_AID = 2, + INTEL_LTQ_NL80211_VENDOR_SUBCMD_TX_EAPOL = 3, +}; + +/* + * enum intel_ltq_nl80211_vendor_events - Intel LTQ nl80211 + * vendor event identifiers. + * + * @INTEL_LTQ_NL80211_VENDOR_EVENT_RX_EAPOL: Receive EAPOL + * event. + */ +enum intel_ltq_nl80211_vendor_events { + INTEL_LTQ_NL80211_VENDOR_EVENT_RX_EAPOL = 0, +}; + +#endif /* INTEL_LTQ_VENDOR_H */