• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Definitions for nl80211 vendor command/event access to host driver
3  *
4  * Copyright (C) 1999-2019, Broadcom.
5  *
6  *      Unless you and Broadcom execute a separate written software license
7  * agreement governing use of this software, this software is licensed to you
8  * under the terms of the GNU General Public License version 2 (the "GPL"),
9  * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10  * following added to such license:
11  *
12  *      As a special exception, the copyright holders of this software give you
13  * permission to link this software with independent modules, and to copy and
14  * distribute the resulting executable under terms of your choice, provided that
15  * you also meet, for each linked independent module, the terms and conditions
16  * of the license of that module.  An independent module is a module which is
17  * not derived from this software.  The special exception does not apply to any
18  * modifications of the software.
19  *
20  *      Notwithstanding the above, under no circumstances may you combine this
21  * software in any way with any other Broadcom software provided under a license
22  * other than the GPL, without Broadcom's express prior written consent.
23  *
24  *
25  * <<Broadcom-WL-IPTag/Open:>>
26  *
27  * $Id: brcm_nl80211.h 787269 2018-11-01 11:46:31Z $
28  *
29  */
30 
31 #ifndef _brcm_nl80211_h_
32 #define _brcm_nl80211_h_
33 
34 #define OUI_BRCM 0x001018
35 #define OUI_GOOGLE 0x001A11
36 
37 enum wl_vendor_subcmd {
38     BRCM_VENDOR_SCMD_UNSPEC = 0,
39     BRCM_VENDOR_SCMD_PRIV_STR = 1,
40     BRCM_VENDOR_SCMD_BCM_STR = 2,
41     BRCM_VENDOR_SCMD_BCM_PSK = 3,
42     BRCM_VENDOR_SCMD_SET_PMK = 4,
43     BRCM_VENDOR_SCMD_GET_FEATURES = 5,
44     BRCM_VENDOR_SCMD_MAX = 6
45 };
46 
47 struct bcm_nlmsg_hdr {
48     uint cmd;    /* common ioctl definition */
49     int len;     /* expected return buffer length */
50     uint offset; /* user buffer offset */
51     uint set;    /* get or set request optional */
52     uint magic;  /* magic number for verification */
53 };
54 
55 enum bcmnl_attrs {
56     BCM_NLATTR_UNSPEC,
57 
58     BCM_NLATTR_LEN,
59     BCM_NLATTR_DATA,
60 
61     __BCM_NLATTR_AFTER_LAST,
62     BCM_NLATTR_MAX = __BCM_NLATTR_AFTER_LAST - 1
63 };
64 
65 struct nl_prv_data {
66     int err;                     /* return result */
67     void *data;                  /* ioctl return buffer pointer */
68     uint len;                    /* ioctl return buffer length */
69     struct bcm_nlmsg_hdr *nlioc; /* bcm_nlmsg_hdr header pointer */
70 };
71 
72 #endif /* _brcm_nl80211_h_ */
73