~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/net/nl802154.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/net/nl802154.h (Version linux-6.11.5) and /include/net/nl802154.h (Version linux-5.11.22)


  1 #ifndef __NL802154_H                                1 #ifndef __NL802154_H
  2 #define __NL802154_H                                2 #define __NL802154_H
  3 /*                                                  3 /*
  4  * 802.15.4 netlink interface public header         4  * 802.15.4 netlink interface public header
  5  *                                                  5  *
  6  * Copyright 2014 Alexander Aring <aar@pengutr      6  * Copyright 2014 Alexander Aring <aar@pengutronix.de>
  7  *                                                  7  *
  8  * Permission to use, copy, modify, and/or dis      8  * Permission to use, copy, modify, and/or distribute this software for any
  9  * purpose with or without fee is hereby grant      9  * purpose with or without fee is hereby granted, provided that the above
 10  * copyright notice and this permission notice     10  * copyright notice and this permission notice appear in all copies.
 11  *                                                 11  *
 12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AU     12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 13  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL      13  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 14  * MERCHANTABILITY AND FITNESS. IN NO EVENT SH     14  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 15  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUEN     15  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 16  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA     16  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 17  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TOR     17  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 18  * OR IN CONNECTION WITH THE USE OR PERFORMANC     18  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 19  *                                                 19  *
 20  */                                                20  */
 21                                                    21 
 22 #include <linux/types.h>                       << 
 23                                                << 
 24 #define NL802154_GENL_NAME "nl802154"              22 #define NL802154_GENL_NAME "nl802154"
 25                                                    23 
 26 enum nl802154_commands {                           24 enum nl802154_commands {
 27 /* don't change the order or add anything betw     25 /* don't change the order or add anything between, this is ABI! */
 28 /* currently we don't shipping this file via u     26 /* currently we don't shipping this file via uapi, ignore the above one */
 29         NL802154_CMD_UNSPEC,                       27         NL802154_CMD_UNSPEC,
 30                                                    28 
 31         NL802154_CMD_GET_WPAN_PHY,                 29         NL802154_CMD_GET_WPAN_PHY,              /* can dump */
 32         NL802154_CMD_SET_WPAN_PHY,                 30         NL802154_CMD_SET_WPAN_PHY,
 33         NL802154_CMD_NEW_WPAN_PHY,                 31         NL802154_CMD_NEW_WPAN_PHY,
 34         NL802154_CMD_DEL_WPAN_PHY,                 32         NL802154_CMD_DEL_WPAN_PHY,
 35                                                    33 
 36         NL802154_CMD_GET_INTERFACE,                34         NL802154_CMD_GET_INTERFACE,             /* can dump */
 37         NL802154_CMD_SET_INTERFACE,                35         NL802154_CMD_SET_INTERFACE,
 38         NL802154_CMD_NEW_INTERFACE,                36         NL802154_CMD_NEW_INTERFACE,
 39         NL802154_CMD_DEL_INTERFACE,                37         NL802154_CMD_DEL_INTERFACE,
 40                                                    38 
 41         NL802154_CMD_SET_CHANNEL,                  39         NL802154_CMD_SET_CHANNEL,
 42                                                    40 
 43         NL802154_CMD_SET_PAN_ID,                   41         NL802154_CMD_SET_PAN_ID,
 44         NL802154_CMD_SET_SHORT_ADDR,               42         NL802154_CMD_SET_SHORT_ADDR,
 45                                                    43 
 46         NL802154_CMD_SET_TX_POWER,                 44         NL802154_CMD_SET_TX_POWER,
 47         NL802154_CMD_SET_CCA_MODE,                 45         NL802154_CMD_SET_CCA_MODE,
 48         NL802154_CMD_SET_CCA_ED_LEVEL,             46         NL802154_CMD_SET_CCA_ED_LEVEL,
 49                                                    47 
 50         NL802154_CMD_SET_MAX_FRAME_RETRIES,        48         NL802154_CMD_SET_MAX_FRAME_RETRIES,
 51                                                    49 
 52         NL802154_CMD_SET_BACKOFF_EXPONENT,         50         NL802154_CMD_SET_BACKOFF_EXPONENT,
 53         NL802154_CMD_SET_MAX_CSMA_BACKOFFS,        51         NL802154_CMD_SET_MAX_CSMA_BACKOFFS,
 54                                                    52 
 55         NL802154_CMD_SET_LBT_MODE,                 53         NL802154_CMD_SET_LBT_MODE,
 56                                                    54 
 57         NL802154_CMD_SET_ACKREQ_DEFAULT,           55         NL802154_CMD_SET_ACKREQ_DEFAULT,
 58                                                    56 
 59         NL802154_CMD_SET_WPAN_PHY_NETNS,           57         NL802154_CMD_SET_WPAN_PHY_NETNS,
 60                                                    58 
                                                   >>  59         /* add new commands above here */
                                                   >>  60 
                                                   >>  61 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
 61         NL802154_CMD_SET_SEC_PARAMS,               62         NL802154_CMD_SET_SEC_PARAMS,
 62         NL802154_CMD_GET_SEC_KEY,                  63         NL802154_CMD_GET_SEC_KEY,               /* can dump */
 63         NL802154_CMD_NEW_SEC_KEY,                  64         NL802154_CMD_NEW_SEC_KEY,
 64         NL802154_CMD_DEL_SEC_KEY,                  65         NL802154_CMD_DEL_SEC_KEY,
 65         NL802154_CMD_GET_SEC_DEV,                  66         NL802154_CMD_GET_SEC_DEV,               /* can dump */
 66         NL802154_CMD_NEW_SEC_DEV,                  67         NL802154_CMD_NEW_SEC_DEV,
 67         NL802154_CMD_DEL_SEC_DEV,                  68         NL802154_CMD_DEL_SEC_DEV,
 68         NL802154_CMD_GET_SEC_DEVKEY,               69         NL802154_CMD_GET_SEC_DEVKEY,            /* can dump */
 69         NL802154_CMD_NEW_SEC_DEVKEY,               70         NL802154_CMD_NEW_SEC_DEVKEY,
 70         NL802154_CMD_DEL_SEC_DEVKEY,               71         NL802154_CMD_DEL_SEC_DEVKEY,
 71         NL802154_CMD_GET_SEC_LEVEL,                72         NL802154_CMD_GET_SEC_LEVEL,             /* can dump */
 72         NL802154_CMD_NEW_SEC_LEVEL,                73         NL802154_CMD_NEW_SEC_LEVEL,
 73         NL802154_CMD_DEL_SEC_LEVEL,                74         NL802154_CMD_DEL_SEC_LEVEL,
 74                                                !!  75 #endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
 75         NL802154_CMD_SCAN_EVENT,               << 
 76         NL802154_CMD_TRIGGER_SCAN,             << 
 77         NL802154_CMD_ABORT_SCAN,               << 
 78         NL802154_CMD_SCAN_DONE,                << 
 79         NL802154_CMD_SEND_BEACONS,             << 
 80         NL802154_CMD_STOP_BEACONS,             << 
 81         NL802154_CMD_ASSOCIATE,                << 
 82         NL802154_CMD_DISASSOCIATE,             << 
 83         NL802154_CMD_SET_MAX_ASSOCIATIONS,     << 
 84         NL802154_CMD_LIST_ASSOCIATIONS,        << 
 85                                                << 
 86         /* add new commands above here */      << 
 87                                                    76 
 88         /* used to define NL802154_CMD_MAX bel     77         /* used to define NL802154_CMD_MAX below */
 89         __NL802154_CMD_AFTER_LAST,                 78         __NL802154_CMD_AFTER_LAST,
 90         NL802154_CMD_MAX = __NL802154_CMD_AFTE     79         NL802154_CMD_MAX = __NL802154_CMD_AFTER_LAST - 1
 91 };                                                 80 };
 92                                                    81 
 93 enum nl802154_attrs {                              82 enum nl802154_attrs {
 94 /* don't change the order or add anything betw     83 /* don't change the order or add anything between, this is ABI! */
 95 /* currently we don't shipping this file via u     84 /* currently we don't shipping this file via uapi, ignore the above one */
 96         NL802154_ATTR_UNSPEC,                      85         NL802154_ATTR_UNSPEC,
 97                                                    86 
 98         NL802154_ATTR_WPAN_PHY,                    87         NL802154_ATTR_WPAN_PHY,
 99         NL802154_ATTR_WPAN_PHY_NAME,               88         NL802154_ATTR_WPAN_PHY_NAME,
100                                                    89 
101         NL802154_ATTR_IFINDEX,                     90         NL802154_ATTR_IFINDEX,
102         NL802154_ATTR_IFNAME,                      91         NL802154_ATTR_IFNAME,
103         NL802154_ATTR_IFTYPE,                      92         NL802154_ATTR_IFTYPE,
104                                                    93 
105         NL802154_ATTR_WPAN_DEV,                    94         NL802154_ATTR_WPAN_DEV,
106                                                    95 
107         NL802154_ATTR_PAGE,                        96         NL802154_ATTR_PAGE,
108         NL802154_ATTR_CHANNEL,                     97         NL802154_ATTR_CHANNEL,
109                                                    98 
110         NL802154_ATTR_PAN_ID,                      99         NL802154_ATTR_PAN_ID,
111         NL802154_ATTR_SHORT_ADDR,                 100         NL802154_ATTR_SHORT_ADDR,
112                                                   101 
113         NL802154_ATTR_TX_POWER,                   102         NL802154_ATTR_TX_POWER,
114                                                   103 
115         NL802154_ATTR_CCA_MODE,                   104         NL802154_ATTR_CCA_MODE,
116         NL802154_ATTR_CCA_OPT,                    105         NL802154_ATTR_CCA_OPT,
117         NL802154_ATTR_CCA_ED_LEVEL,               106         NL802154_ATTR_CCA_ED_LEVEL,
118                                                   107 
119         NL802154_ATTR_MAX_FRAME_RETRIES,          108         NL802154_ATTR_MAX_FRAME_RETRIES,
120                                                   109 
121         NL802154_ATTR_MAX_BE,                     110         NL802154_ATTR_MAX_BE,
122         NL802154_ATTR_MIN_BE,                     111         NL802154_ATTR_MIN_BE,
123         NL802154_ATTR_MAX_CSMA_BACKOFFS,          112         NL802154_ATTR_MAX_CSMA_BACKOFFS,
124                                                   113 
125         NL802154_ATTR_LBT_MODE,                   114         NL802154_ATTR_LBT_MODE,
126                                                   115 
127         NL802154_ATTR_GENERATION,                 116         NL802154_ATTR_GENERATION,
128                                                   117 
129         NL802154_ATTR_CHANNELS_SUPPORTED,         118         NL802154_ATTR_CHANNELS_SUPPORTED,
130         NL802154_ATTR_SUPPORTED_CHANNEL,          119         NL802154_ATTR_SUPPORTED_CHANNEL,
131                                                   120 
132         NL802154_ATTR_EXTENDED_ADDR,              121         NL802154_ATTR_EXTENDED_ADDR,
133                                                   122 
134         NL802154_ATTR_WPAN_PHY_CAPS,              123         NL802154_ATTR_WPAN_PHY_CAPS,
135                                                   124 
136         NL802154_ATTR_SUPPORTED_COMMANDS,         125         NL802154_ATTR_SUPPORTED_COMMANDS,
137                                                   126 
138         NL802154_ATTR_ACKREQ_DEFAULT,             127         NL802154_ATTR_ACKREQ_DEFAULT,
139                                                   128 
140         NL802154_ATTR_PAD,                        129         NL802154_ATTR_PAD,
141                                                   130 
142         NL802154_ATTR_PID,                        131         NL802154_ATTR_PID,
143         NL802154_ATTR_NETNS_FD,                   132         NL802154_ATTR_NETNS_FD,
144                                                   133 
145         NL802154_ATTR_COORDINATOR,             << 
146         NL802154_ATTR_SCAN_TYPE,               << 
147         NL802154_ATTR_SCAN_FLAGS,              << 
148         NL802154_ATTR_SCAN_CHANNELS,           << 
149         NL802154_ATTR_SCAN_PREAMBLE_CODES,     << 
150         NL802154_ATTR_SCAN_MEAN_PRF,           << 
151         NL802154_ATTR_SCAN_DURATION,           << 
152         NL802154_ATTR_SCAN_DONE_REASON,        << 
153         NL802154_ATTR_BEACON_INTERVAL,         << 
154         NL802154_ATTR_MAX_ASSOCIATIONS,        << 
155         NL802154_ATTR_PEER,                    << 
156                                                << 
157         /* add attributes here, update the pol    134         /* add attributes here, update the policy in nl802154.c */
158                                                   135 
159 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL    136 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
160         NL802154_ATTR_SEC_ENABLED,                137         NL802154_ATTR_SEC_ENABLED,
161         NL802154_ATTR_SEC_OUT_LEVEL,              138         NL802154_ATTR_SEC_OUT_LEVEL,
162         NL802154_ATTR_SEC_OUT_KEY_ID,             139         NL802154_ATTR_SEC_OUT_KEY_ID,
163         NL802154_ATTR_SEC_FRAME_COUNTER,          140         NL802154_ATTR_SEC_FRAME_COUNTER,
164                                                   141 
165         NL802154_ATTR_SEC_LEVEL,                  142         NL802154_ATTR_SEC_LEVEL,
166         NL802154_ATTR_SEC_DEVICE,                 143         NL802154_ATTR_SEC_DEVICE,
167         NL802154_ATTR_SEC_DEVKEY,                 144         NL802154_ATTR_SEC_DEVKEY,
168         NL802154_ATTR_SEC_KEY,                    145         NL802154_ATTR_SEC_KEY,
169 #endif /* CONFIG_IEEE802154_NL802154_EXPERIMEN    146 #endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
170                                                   147 
171         __NL802154_ATTR_AFTER_LAST,               148         __NL802154_ATTR_AFTER_LAST,
172         NL802154_ATTR_MAX = __NL802154_ATTR_AF    149         NL802154_ATTR_MAX = __NL802154_ATTR_AFTER_LAST - 1
173 };                                                150 };
174                                                   151 
175 enum nl802154_iftype {                            152 enum nl802154_iftype {
176         NL802154_IFTYPE_UNSPEC = (~(__u32)0),  !! 153         /* for backwards compatibility TODO */
                                                   >> 154         NL802154_IFTYPE_UNSPEC = -1,
177                                                   155 
178         NL802154_IFTYPE_NODE = 0,              !! 156         NL802154_IFTYPE_NODE,
179         NL802154_IFTYPE_MONITOR,                  157         NL802154_IFTYPE_MONITOR,
180         NL802154_IFTYPE_COORD,                    158         NL802154_IFTYPE_COORD,
181                                                   159 
182         /* keep last */                           160         /* keep last */
183         NUM_NL802154_IFTYPES,                     161         NUM_NL802154_IFTYPES,
184         NL802154_IFTYPE_MAX = NUM_NL802154_IFT    162         NL802154_IFTYPE_MAX = NUM_NL802154_IFTYPES - 1
185 };                                                163 };
186                                                   164 
187 /**                                               165 /**
188  * enum nl802154_wpan_phy_capability_attr - wp    166  * enum nl802154_wpan_phy_capability_attr - wpan phy capability attributes
189  *                                                167  *
190  * @__NL802154_CAP_ATTR_INVALID: attribute num    168  * @__NL802154_CAP_ATTR_INVALID: attribute number 0 is reserved
191  * @NL802154_CAP_ATTR_CHANNELS: a nested attri    169  * @NL802154_CAP_ATTR_CHANNELS: a nested attribute for nl802154_channel_attr
192  * @NL802154_CAP_ATTR_TX_POWERS: a nested attr    170  * @NL802154_CAP_ATTR_TX_POWERS: a nested attribute for
193  *      nl802154_wpan_phy_tx_power                171  *      nl802154_wpan_phy_tx_power
194  * @NL802154_CAP_ATTR_MIN_CCA_ED_LEVEL: minimu    172  * @NL802154_CAP_ATTR_MIN_CCA_ED_LEVEL: minimum value for cca_ed_level
195  * @NL802154_CAP_ATTR_MAX_CCA_ED_LEVEL: maxmim    173  * @NL802154_CAP_ATTR_MAX_CCA_ED_LEVEL: maxmimum value for cca_ed_level
196  * @NL802154_CAP_ATTR_CCA_MODES: nl802154_cca_    174  * @NL802154_CAP_ATTR_CCA_MODES: nl802154_cca_modes flags
197  * @NL802154_CAP_ATTR_CCA_OPTS: nl802154_cca_o    175  * @NL802154_CAP_ATTR_CCA_OPTS: nl802154_cca_opts flags
198  * @NL802154_CAP_ATTR_MIN_MINBE: minimum of mi    176  * @NL802154_CAP_ATTR_MIN_MINBE: minimum of minbe value
199  * @NL802154_CAP_ATTR_MAX_MINBE: maximum of mi    177  * @NL802154_CAP_ATTR_MAX_MINBE: maximum of minbe value
200  * @NL802154_CAP_ATTR_MIN_MAXBE: minimum of ma    178  * @NL802154_CAP_ATTR_MIN_MAXBE: minimum of maxbe value
201  * @NL802154_CAP_ATTR_MAX_MINBE: maximum of ma    179  * @NL802154_CAP_ATTR_MAX_MINBE: maximum of maxbe value
202  * @NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS: minim    180  * @NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS: minimum of csma backoff value
203  * @NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS: maxim    181  * @NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS: maximum of csma backoffs value
204  * @NL802154_CAP_ATTR_MIN_FRAME_RETRIES: minim    182  * @NL802154_CAP_ATTR_MIN_FRAME_RETRIES: minimum of frame retries value
205  * @NL802154_CAP_ATTR_MAX_FRAME_RETRIES: maxim    183  * @NL802154_CAP_ATTR_MAX_FRAME_RETRIES: maximum of frame retries value
206  * @NL802154_CAP_ATTR_IFTYPES: nl802154_iftype    184  * @NL802154_CAP_ATTR_IFTYPES: nl802154_iftype flags
207  * @NL802154_CAP_ATTR_LBT: nl802154_supported_    185  * @NL802154_CAP_ATTR_LBT: nl802154_supported_bool_states flags
208  * @NL802154_CAP_ATTR_MAX: highest cap attribu    186  * @NL802154_CAP_ATTR_MAX: highest cap attribute currently defined
209  * @__NL802154_CAP_ATTR_AFTER_LAST: internal u    187  * @__NL802154_CAP_ATTR_AFTER_LAST: internal use
210  */                                               188  */
211 enum nl802154_wpan_phy_capability_attr {          189 enum nl802154_wpan_phy_capability_attr {
212         __NL802154_CAP_ATTR_INVALID,              190         __NL802154_CAP_ATTR_INVALID,
213                                                   191 
214         NL802154_CAP_ATTR_IFTYPES,                192         NL802154_CAP_ATTR_IFTYPES,
215                                                   193 
216         NL802154_CAP_ATTR_CHANNELS,               194         NL802154_CAP_ATTR_CHANNELS,
217         NL802154_CAP_ATTR_TX_POWERS,              195         NL802154_CAP_ATTR_TX_POWERS,
218                                                   196 
219         NL802154_CAP_ATTR_CCA_ED_LEVELS,          197         NL802154_CAP_ATTR_CCA_ED_LEVELS,
220         NL802154_CAP_ATTR_CCA_MODES,              198         NL802154_CAP_ATTR_CCA_MODES,
221         NL802154_CAP_ATTR_CCA_OPTS,               199         NL802154_CAP_ATTR_CCA_OPTS,
222                                                   200 
223         NL802154_CAP_ATTR_MIN_MINBE,              201         NL802154_CAP_ATTR_MIN_MINBE,
224         NL802154_CAP_ATTR_MAX_MINBE,              202         NL802154_CAP_ATTR_MAX_MINBE,
225                                                   203 
226         NL802154_CAP_ATTR_MIN_MAXBE,              204         NL802154_CAP_ATTR_MIN_MAXBE,
227         NL802154_CAP_ATTR_MAX_MAXBE,              205         NL802154_CAP_ATTR_MAX_MAXBE,
228                                                   206 
229         NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS,      207         NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS,
230         NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS,      208         NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS,
231                                                   209 
232         NL802154_CAP_ATTR_MIN_FRAME_RETRIES,      210         NL802154_CAP_ATTR_MIN_FRAME_RETRIES,
233         NL802154_CAP_ATTR_MAX_FRAME_RETRIES,      211         NL802154_CAP_ATTR_MAX_FRAME_RETRIES,
234                                                   212 
235         NL802154_CAP_ATTR_LBT,                    213         NL802154_CAP_ATTR_LBT,
236                                                   214 
237         /* keep last */                           215         /* keep last */
238         __NL802154_CAP_ATTR_AFTER_LAST,           216         __NL802154_CAP_ATTR_AFTER_LAST,
239         NL802154_CAP_ATTR_MAX = __NL802154_CAP    217         NL802154_CAP_ATTR_MAX = __NL802154_CAP_ATTR_AFTER_LAST - 1
240 };                                                218 };
241                                                   219 
242 /**                                               220 /**
243  * enum nl802154_coord - Netlink attributes fo << 
244  *                                             << 
245  * @__NL802154_COORD_INVALID: invalid          << 
246  * @NL802154_COORD_PANID: PANID of the coordin << 
247  * @NL802154_COORD_ADDR: coordinator address,  << 
248  * @NL802154_COORD_CHANNEL: channel number, re << 
249  * @NL802154_COORD_PAGE: channel page, related << 
250  * @NL802154_COORD_PREAMBLE_CODE: Preamble cod << 
251  *      this is PHY dependent and optional (u8 << 
252  * @NL802154_COORD_MEAN_PRF: Mean PRF used whe << 
253  *     this is PHY dependent and optional (u8) << 
254  * @NL802154_COORD_SUPERFRAME_SPEC: superframe << 
255  * @NL802154_COORD_LINK_QUALITY: signal qualit << 
256  *      scaled to 0..255 (u8)                  << 
257  * @NL802154_COORD_GTS_PERMIT: set to true if  << 
258  * @NL802154_COORD_PAYLOAD_DATA: binary data c << 
259  *      frame payload, (only if beacon or prob << 
260  * @NL802154_COORD_PAD: attribute used for pad << 
261  * @NL802154_COORD_MAX: highest coordinator at << 
262  */                                            << 
263 enum nl802154_coord {                          << 
264         __NL802154_COORD_INVALID,              << 
265         NL802154_COORD_PANID,                  << 
266         NL802154_COORD_ADDR,                   << 
267         NL802154_COORD_CHANNEL,                << 
268         NL802154_COORD_PAGE,                   << 
269         NL802154_COORD_PREAMBLE_CODE,          << 
270         NL802154_COORD_MEAN_PRF,               << 
271         NL802154_COORD_SUPERFRAME_SPEC,        << 
272         NL802154_COORD_LINK_QUALITY,           << 
273         NL802154_COORD_GTS_PERMIT,             << 
274         NL802154_COORD_PAYLOAD_DATA,           << 
275         NL802154_COORD_PAD,                    << 
276                                                << 
277         /* keep last */                        << 
278         NL802154_COORD_MAX,                    << 
279 };                                             << 
280                                                << 
281 /**                                            << 
282  * enum nl802154_scan_types - Scan types       << 
283  *                                             << 
284  * @__NL802154_SCAN_INVALID: scan type number  << 
285  * @NL802154_SCAN_ED: An ED scan allows a devi << 
286  *      energy in each requested channel       << 
287  * @NL802154_SCAN_ACTIVE: Locate any coordinat << 
288  *      a Beacon Request command               << 
289  * @NL802154_SCAN_PASSIVE: Locate any coordina << 
290  * @NL802154_SCAN_ORPHAN: Relocate coordinator << 
291  * @NL802154_SCAN_ENHANCED_ACTIVE: Same as Act << 
292  *      command instead of Beacon Request comm << 
293  * @NL802154_SCAN_RIT_PASSIVE: Passive scan fo << 
294  *      instead of Beacon frames               << 
295  * @NL802154_SCAN_ATTR_MAX: Maximum SCAN attri << 
296  */                                            << 
297 enum nl802154_scan_types {                     << 
298         __NL802154_SCAN_INVALID,               << 
299         NL802154_SCAN_ED,                      << 
300         NL802154_SCAN_ACTIVE,                  << 
301         NL802154_SCAN_PASSIVE,                 << 
302         NL802154_SCAN_ORPHAN,                  << 
303         NL802154_SCAN_ENHANCED_ACTIVE,         << 
304         NL802154_SCAN_RIT_PASSIVE,             << 
305                                                << 
306         /* keep last */                        << 
307         NL802154_SCAN_ATTR_MAX,                << 
308 };                                             << 
309                                                << 
310 /**                                            << 
311  * enum nl802154_scan_done_reasons - End of sc << 
312  *                                             << 
313  * @__NL802154_SCAN_DONE_REASON_INVALID: scan  << 
314  * @NL802154_SCAN_DONE_REASON_FINISHED: The sc << 
315  *      going through all the requested and po << 
316  * @NL802154_SCAN_DONE_REASON_ABORTED: The sca << 
317  *      a Beacon Request command               << 
318  * @NL802154_SCAN_DONE_REASON_MAX: Maximum sca << 
319  */                                            << 
320 enum nl802154_scan_done_reasons {              << 
321         __NL802154_SCAN_DONE_REASON_INVALID,   << 
322         NL802154_SCAN_DONE_REASON_FINISHED,    << 
323         NL802154_SCAN_DONE_REASON_ABORTED,     << 
324                                                << 
325         /* keep last */                        << 
326         NL802154_SCAN_DONE_REASON_MAX,         << 
327 };                                             << 
328                                                << 
329 /**                                            << 
330  * enum nl802154_cca_modes - cca modes            221  * enum nl802154_cca_modes - cca modes
331  *                                                222  *
332  * @__NL802154_CCA_INVALID: cca mode number 0     223  * @__NL802154_CCA_INVALID: cca mode number 0 is reserved
333  * @NL802154_CCA_ENERGY: Energy above threshol    224  * @NL802154_CCA_ENERGY: Energy above threshold
334  * @NL802154_CCA_CARRIER: Carrier sense only      225  * @NL802154_CCA_CARRIER: Carrier sense only
335  * @NL802154_CCA_ENERGY_CARRIER: Carrier sense    226  * @NL802154_CCA_ENERGY_CARRIER: Carrier sense with energy above threshold
336  * @NL802154_CCA_ALOHA: CCA shall always repor    227  * @NL802154_CCA_ALOHA: CCA shall always report an idle medium
337  * @NL802154_CCA_UWB_SHR: UWB preamble sense b    228  * @NL802154_CCA_UWB_SHR: UWB preamble sense based on the SHR of a frame
338  * @NL802154_CCA_UWB_MULTIPLEXED: UWB preamble    229  * @NL802154_CCA_UWB_MULTIPLEXED: UWB preamble sense based on the packet with
339  *      the multiplexed preamble                  230  *      the multiplexed preamble
340  * @__NL802154_CCA_ATTR_AFTER_LAST: Internal      231  * @__NL802154_CCA_ATTR_AFTER_LAST: Internal
341  * @NL802154_CCA_ATTR_MAX: Maximum CCA attribu    232  * @NL802154_CCA_ATTR_MAX: Maximum CCA attribute number
342  */                                               233  */
343 enum nl802154_cca_modes {                         234 enum nl802154_cca_modes {
344         __NL802154_CCA_INVALID,                   235         __NL802154_CCA_INVALID,
345         NL802154_CCA_ENERGY,                      236         NL802154_CCA_ENERGY,
346         NL802154_CCA_CARRIER,                     237         NL802154_CCA_CARRIER,
347         NL802154_CCA_ENERGY_CARRIER,              238         NL802154_CCA_ENERGY_CARRIER,
348         NL802154_CCA_ALOHA,                       239         NL802154_CCA_ALOHA,
349         NL802154_CCA_UWB_SHR,                     240         NL802154_CCA_UWB_SHR,
350         NL802154_CCA_UWB_MULTIPLEXED,             241         NL802154_CCA_UWB_MULTIPLEXED,
351                                                   242 
352         /* keep last */                           243         /* keep last */
353         __NL802154_CCA_ATTR_AFTER_LAST,           244         __NL802154_CCA_ATTR_AFTER_LAST,
354         NL802154_CCA_ATTR_MAX = __NL802154_CCA    245         NL802154_CCA_ATTR_MAX = __NL802154_CCA_ATTR_AFTER_LAST - 1
355 };                                                246 };
356                                                   247 
357 /**                                               248 /**
358  * enum nl802154_cca_opts - additional options    249  * enum nl802154_cca_opts - additional options for cca modes
359  *                                                250  *
360  * @NL802154_CCA_OPT_ENERGY_CARRIER_OR: NL8021    251  * @NL802154_CCA_OPT_ENERGY_CARRIER_OR: NL802154_CCA_ENERGY_CARRIER with OR
361  * @NL802154_CCA_OPT_ENERGY_CARRIER_AND: NL802    252  * @NL802154_CCA_OPT_ENERGY_CARRIER_AND: NL802154_CCA_ENERGY_CARRIER with AND
362  */                                               253  */
363 enum nl802154_cca_opts {                          254 enum nl802154_cca_opts {
364         NL802154_CCA_OPT_ENERGY_CARRIER_AND,      255         NL802154_CCA_OPT_ENERGY_CARRIER_AND,
365         NL802154_CCA_OPT_ENERGY_CARRIER_OR,       256         NL802154_CCA_OPT_ENERGY_CARRIER_OR,
366                                                   257 
367         /* keep last */                           258         /* keep last */
368         __NL802154_CCA_OPT_ATTR_AFTER_LAST,       259         __NL802154_CCA_OPT_ATTR_AFTER_LAST,
369         NL802154_CCA_OPT_ATTR_MAX = __NL802154    260         NL802154_CCA_OPT_ATTR_MAX = __NL802154_CCA_OPT_ATTR_AFTER_LAST - 1
370 };                                                261 };
371                                                   262 
372 /**                                               263 /**
373  * enum nl802154_supported_bool_states - bool     264  * enum nl802154_supported_bool_states - bool states for bool capability entry
374  *                                                265  *
375  * @NL802154_SUPPORTED_BOOL_FALSE: indicates t    266  * @NL802154_SUPPORTED_BOOL_FALSE: indicates to set false
376  * @NL802154_SUPPORTED_BOOL_TRUE: indicates to    267  * @NL802154_SUPPORTED_BOOL_TRUE: indicates to set true
377  * @__NL802154_SUPPORTED_BOOL_INVALD: reserved    268  * @__NL802154_SUPPORTED_BOOL_INVALD: reserved
378  * @NL802154_SUPPORTED_BOOL_BOTH: indicates to    269  * @NL802154_SUPPORTED_BOOL_BOTH: indicates to set true and false
379  * @__NL802154_SUPPORTED_BOOL_AFTER_LAST: Inte    270  * @__NL802154_SUPPORTED_BOOL_AFTER_LAST: Internal
380  * @NL802154_SUPPORTED_BOOL_MAX: highest value    271  * @NL802154_SUPPORTED_BOOL_MAX: highest value for bool states
381  */                                               272  */
382 enum nl802154_supported_bool_states {             273 enum nl802154_supported_bool_states {
383         NL802154_SUPPORTED_BOOL_FALSE,            274         NL802154_SUPPORTED_BOOL_FALSE,
384         NL802154_SUPPORTED_BOOL_TRUE,             275         NL802154_SUPPORTED_BOOL_TRUE,
385         /* to handle them in a mask */            276         /* to handle them in a mask */
386         __NL802154_SUPPORTED_BOOL_INVALD,         277         __NL802154_SUPPORTED_BOOL_INVALD,
387         NL802154_SUPPORTED_BOOL_BOTH,             278         NL802154_SUPPORTED_BOOL_BOTH,
388                                                   279 
389         /* keep last */                           280         /* keep last */
390         __NL802154_SUPPORTED_BOOL_AFTER_LAST,     281         __NL802154_SUPPORTED_BOOL_AFTER_LAST,
391         NL802154_SUPPORTED_BOOL_MAX = __NL8021    282         NL802154_SUPPORTED_BOOL_MAX = __NL802154_SUPPORTED_BOOL_AFTER_LAST - 1
392 };                                                283 };
393                                                   284 
                                                   >> 285 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
                                                   >> 286 
394 enum nl802154_dev_addr_modes {                    287 enum nl802154_dev_addr_modes {
395         NL802154_DEV_ADDR_NONE,                   288         NL802154_DEV_ADDR_NONE,
396         __NL802154_DEV_ADDR_INVALID,              289         __NL802154_DEV_ADDR_INVALID,
397         NL802154_DEV_ADDR_SHORT,                  290         NL802154_DEV_ADDR_SHORT,
398         NL802154_DEV_ADDR_EXTENDED,               291         NL802154_DEV_ADDR_EXTENDED,
399                                                   292 
400         /* keep last */                           293         /* keep last */
401         __NL802154_DEV_ADDR_AFTER_LAST,           294         __NL802154_DEV_ADDR_AFTER_LAST,
402         NL802154_DEV_ADDR_MAX = __NL802154_DEV    295         NL802154_DEV_ADDR_MAX = __NL802154_DEV_ADDR_AFTER_LAST - 1
403 };                                                296 };
404                                                   297 
405 enum nl802154_dev_addr_attrs {                    298 enum nl802154_dev_addr_attrs {
406         NL802154_DEV_ADDR_ATTR_UNSPEC,            299         NL802154_DEV_ADDR_ATTR_UNSPEC,
407                                                   300 
408         NL802154_DEV_ADDR_ATTR_PAN_ID,            301         NL802154_DEV_ADDR_ATTR_PAN_ID,
409         NL802154_DEV_ADDR_ATTR_MODE,              302         NL802154_DEV_ADDR_ATTR_MODE,
410         NL802154_DEV_ADDR_ATTR_SHORT,             303         NL802154_DEV_ADDR_ATTR_SHORT,
411         NL802154_DEV_ADDR_ATTR_EXTENDED,          304         NL802154_DEV_ADDR_ATTR_EXTENDED,
412         NL802154_DEV_ADDR_ATTR_PAD,               305         NL802154_DEV_ADDR_ATTR_PAD,
413         NL802154_DEV_ADDR_ATTR_PEER_TYPE,      << 
414                                                   306 
415         /* keep last */                           307         /* keep last */
416         __NL802154_DEV_ADDR_ATTR_AFTER_LAST,      308         __NL802154_DEV_ADDR_ATTR_AFTER_LAST,
417         NL802154_DEV_ADDR_ATTR_MAX = __NL80215    309         NL802154_DEV_ADDR_ATTR_MAX = __NL802154_DEV_ADDR_ATTR_AFTER_LAST - 1
418 };                                                310 };
419                                                << 
420 enum nl802154_peer_type {                      << 
421         NL802154_PEER_TYPE_UNSPEC,             << 
422                                                << 
423         NL802154_PEER_TYPE_PARENT,             << 
424         NL802154_PEER_TYPE_CHILD,              << 
425                                                << 
426         /* keep last */                        << 
427         __NL802154_PEER_TYPE_AFTER_LAST,       << 
428         NL802154_PEER_TYPE_MAX = __NL802154_PE << 
429 };                                             << 
430                                                << 
431 #ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL << 
432                                                   311 
433 enum nl802154_key_id_modes {                      312 enum nl802154_key_id_modes {
434         NL802154_KEY_ID_MODE_IMPLICIT,            313         NL802154_KEY_ID_MODE_IMPLICIT,
435         NL802154_KEY_ID_MODE_INDEX,               314         NL802154_KEY_ID_MODE_INDEX,
436         NL802154_KEY_ID_MODE_INDEX_SHORT,         315         NL802154_KEY_ID_MODE_INDEX_SHORT,
437         NL802154_KEY_ID_MODE_INDEX_EXTENDED,      316         NL802154_KEY_ID_MODE_INDEX_EXTENDED,
438                                                   317 
439         /* keep last */                           318         /* keep last */
440         __NL802154_KEY_ID_MODE_AFTER_LAST,        319         __NL802154_KEY_ID_MODE_AFTER_LAST,
441         NL802154_KEY_ID_MODE_MAX = __NL802154_    320         NL802154_KEY_ID_MODE_MAX = __NL802154_KEY_ID_MODE_AFTER_LAST - 1
442 };                                                321 };
443                                                   322 
444 enum nl802154_key_id_attrs {                      323 enum nl802154_key_id_attrs {
445         NL802154_KEY_ID_ATTR_UNSPEC,              324         NL802154_KEY_ID_ATTR_UNSPEC,
446                                                   325 
447         NL802154_KEY_ID_ATTR_MODE,                326         NL802154_KEY_ID_ATTR_MODE,
448         NL802154_KEY_ID_ATTR_INDEX,               327         NL802154_KEY_ID_ATTR_INDEX,
449         NL802154_KEY_ID_ATTR_IMPLICIT,            328         NL802154_KEY_ID_ATTR_IMPLICIT,
450         NL802154_KEY_ID_ATTR_SOURCE_SHORT,        329         NL802154_KEY_ID_ATTR_SOURCE_SHORT,
451         NL802154_KEY_ID_ATTR_SOURCE_EXTENDED,     330         NL802154_KEY_ID_ATTR_SOURCE_EXTENDED,
452         NL802154_KEY_ID_ATTR_PAD,                 331         NL802154_KEY_ID_ATTR_PAD,
453                                                   332 
454         /* keep last */                           333         /* keep last */
455         __NL802154_KEY_ID_ATTR_AFTER_LAST,        334         __NL802154_KEY_ID_ATTR_AFTER_LAST,
456         NL802154_KEY_ID_ATTR_MAX = __NL802154_    335         NL802154_KEY_ID_ATTR_MAX = __NL802154_KEY_ID_ATTR_AFTER_LAST - 1
457 };                                                336 };
458                                                   337 
459 enum nl802154_seclevels {                         338 enum nl802154_seclevels {
460         NL802154_SECLEVEL_NONE,                   339         NL802154_SECLEVEL_NONE,
461         NL802154_SECLEVEL_MIC32,                  340         NL802154_SECLEVEL_MIC32,
462         NL802154_SECLEVEL_MIC64,                  341         NL802154_SECLEVEL_MIC64,
463         NL802154_SECLEVEL_MIC128,                 342         NL802154_SECLEVEL_MIC128,
464         NL802154_SECLEVEL_ENC,                    343         NL802154_SECLEVEL_ENC,
465         NL802154_SECLEVEL_ENC_MIC32,              344         NL802154_SECLEVEL_ENC_MIC32,
466         NL802154_SECLEVEL_ENC_MIC64,              345         NL802154_SECLEVEL_ENC_MIC64,
467         NL802154_SECLEVEL_ENC_MIC128,             346         NL802154_SECLEVEL_ENC_MIC128,
468                                                   347 
469         /* keep last */                           348         /* keep last */
470         __NL802154_SECLEVEL_AFTER_LAST,           349         __NL802154_SECLEVEL_AFTER_LAST,
471         NL802154_SECLEVEL_MAX = __NL802154_SEC    350         NL802154_SECLEVEL_MAX = __NL802154_SECLEVEL_AFTER_LAST - 1
472 };                                                351 };
473                                                   352 
474 enum nl802154_frames {                            353 enum nl802154_frames {
475         NL802154_FRAME_BEACON,                    354         NL802154_FRAME_BEACON,
476         NL802154_FRAME_DATA,                      355         NL802154_FRAME_DATA,
477         NL802154_FRAME_ACK,                       356         NL802154_FRAME_ACK,
478         NL802154_FRAME_CMD,                       357         NL802154_FRAME_CMD,
479                                                   358 
480         /* keep last */                           359         /* keep last */
481         __NL802154_FRAME_AFTER_LAST,              360         __NL802154_FRAME_AFTER_LAST,
482         NL802154_FRAME_MAX = __NL802154_FRAME_    361         NL802154_FRAME_MAX = __NL802154_FRAME_AFTER_LAST - 1
483 };                                                362 };
484                                                   363 
485 enum nl802154_cmd_frames {                        364 enum nl802154_cmd_frames {
486         __NL802154_CMD_FRAME_INVALID,             365         __NL802154_CMD_FRAME_INVALID,
487         NL802154_CMD_FRAME_ASSOC_REQUEST,         366         NL802154_CMD_FRAME_ASSOC_REQUEST,
488         NL802154_CMD_FRAME_ASSOC_RESPONSE,        367         NL802154_CMD_FRAME_ASSOC_RESPONSE,
489         NL802154_CMD_FRAME_DISASSOC_NOTIFY,       368         NL802154_CMD_FRAME_DISASSOC_NOTIFY,
490         NL802154_CMD_FRAME_DATA_REQUEST,          369         NL802154_CMD_FRAME_DATA_REQUEST,
491         NL802154_CMD_FRAME_PAN_ID_CONFLICT_NOT    370         NL802154_CMD_FRAME_PAN_ID_CONFLICT_NOTIFY,
492         NL802154_CMD_FRAME_ORPHAN_NOTIFY,         371         NL802154_CMD_FRAME_ORPHAN_NOTIFY,
493         NL802154_CMD_FRAME_BEACON_REQUEST,        372         NL802154_CMD_FRAME_BEACON_REQUEST,
494         NL802154_CMD_FRAME_COORD_REALIGNMENT,     373         NL802154_CMD_FRAME_COORD_REALIGNMENT,
495         NL802154_CMD_FRAME_GTS_REQUEST,           374         NL802154_CMD_FRAME_GTS_REQUEST,
496                                                   375 
497         /* keep last */                           376         /* keep last */
498         __NL802154_CMD_FRAME_AFTER_LAST,          377         __NL802154_CMD_FRAME_AFTER_LAST,
499         NL802154_CMD_FRAME_MAX = __NL802154_CM    378         NL802154_CMD_FRAME_MAX = __NL802154_CMD_FRAME_AFTER_LAST - 1
500 };                                                379 };
501                                                   380 
502 enum nl802154_seclevel_attrs {                    381 enum nl802154_seclevel_attrs {
503         NL802154_SECLEVEL_ATTR_UNSPEC,            382         NL802154_SECLEVEL_ATTR_UNSPEC,
504                                                   383 
505         NL802154_SECLEVEL_ATTR_LEVELS,            384         NL802154_SECLEVEL_ATTR_LEVELS,
506         NL802154_SECLEVEL_ATTR_FRAME,             385         NL802154_SECLEVEL_ATTR_FRAME,
507         NL802154_SECLEVEL_ATTR_CMD_FRAME,         386         NL802154_SECLEVEL_ATTR_CMD_FRAME,
508         NL802154_SECLEVEL_ATTR_DEV_OVERRIDE,      387         NL802154_SECLEVEL_ATTR_DEV_OVERRIDE,
509                                                   388 
510         /* keep last */                           389         /* keep last */
511         __NL802154_SECLEVEL_ATTR_AFTER_LAST,      390         __NL802154_SECLEVEL_ATTR_AFTER_LAST,
512         NL802154_SECLEVEL_ATTR_MAX = __NL80215    391         NL802154_SECLEVEL_ATTR_MAX = __NL802154_SECLEVEL_ATTR_AFTER_LAST - 1
513 };                                                392 };
514                                                   393 
515 /* TODO what is this? couldn't find in mib */     394 /* TODO what is this? couldn't find in mib */
516 enum {                                            395 enum {
517         NL802154_DEVKEY_IGNORE,                   396         NL802154_DEVKEY_IGNORE,
518         NL802154_DEVKEY_RESTRICT,                 397         NL802154_DEVKEY_RESTRICT,
519         NL802154_DEVKEY_RECORD,                   398         NL802154_DEVKEY_RECORD,
520                                                   399 
521         /* keep last */                           400         /* keep last */
522         __NL802154_DEVKEY_AFTER_LAST,             401         __NL802154_DEVKEY_AFTER_LAST,
523         NL802154_DEVKEY_MAX = __NL802154_DEVKE    402         NL802154_DEVKEY_MAX = __NL802154_DEVKEY_AFTER_LAST - 1
524 };                                                403 };
525                                                   404 
526 enum nl802154_dev {                               405 enum nl802154_dev {
527         NL802154_DEV_ATTR_UNSPEC,                 406         NL802154_DEV_ATTR_UNSPEC,
528                                                   407 
529         NL802154_DEV_ATTR_FRAME_COUNTER,          408         NL802154_DEV_ATTR_FRAME_COUNTER,
530         NL802154_DEV_ATTR_PAN_ID,                 409         NL802154_DEV_ATTR_PAN_ID,
531         NL802154_DEV_ATTR_SHORT_ADDR,             410         NL802154_DEV_ATTR_SHORT_ADDR,
532         NL802154_DEV_ATTR_EXTENDED_ADDR,          411         NL802154_DEV_ATTR_EXTENDED_ADDR,
533         NL802154_DEV_ATTR_SECLEVEL_EXEMPT,        412         NL802154_DEV_ATTR_SECLEVEL_EXEMPT,
534         NL802154_DEV_ATTR_KEY_MODE,               413         NL802154_DEV_ATTR_KEY_MODE,
535         NL802154_DEV_ATTR_PAD,                    414         NL802154_DEV_ATTR_PAD,
536                                                   415 
537         /* keep last */                           416         /* keep last */
538         __NL802154_DEV_ATTR_AFTER_LAST,           417         __NL802154_DEV_ATTR_AFTER_LAST,
539         NL802154_DEV_ATTR_MAX = __NL802154_DEV    418         NL802154_DEV_ATTR_MAX = __NL802154_DEV_ATTR_AFTER_LAST - 1
540 };                                                419 };
541                                                   420 
542 enum nl802154_devkey {                            421 enum nl802154_devkey {
543         NL802154_DEVKEY_ATTR_UNSPEC,              422         NL802154_DEVKEY_ATTR_UNSPEC,
544                                                   423 
545         NL802154_DEVKEY_ATTR_FRAME_COUNTER,       424         NL802154_DEVKEY_ATTR_FRAME_COUNTER,
546         NL802154_DEVKEY_ATTR_EXTENDED_ADDR,       425         NL802154_DEVKEY_ATTR_EXTENDED_ADDR,
547         NL802154_DEVKEY_ATTR_ID,                  426         NL802154_DEVKEY_ATTR_ID,
548         NL802154_DEVKEY_ATTR_PAD,                 427         NL802154_DEVKEY_ATTR_PAD,
549                                                   428 
550         /* keep last */                           429         /* keep last */
551         __NL802154_DEVKEY_ATTR_AFTER_LAST,        430         __NL802154_DEVKEY_ATTR_AFTER_LAST,
552         NL802154_DEVKEY_ATTR_MAX = __NL802154_    431         NL802154_DEVKEY_ATTR_MAX = __NL802154_DEVKEY_ATTR_AFTER_LAST - 1
553 };                                                432 };
554                                                   433 
555 enum nl802154_key {                               434 enum nl802154_key {
556         NL802154_KEY_ATTR_UNSPEC,                 435         NL802154_KEY_ATTR_UNSPEC,
557                                                   436 
558         NL802154_KEY_ATTR_ID,                     437         NL802154_KEY_ATTR_ID,
559         NL802154_KEY_ATTR_USAGE_FRAMES,           438         NL802154_KEY_ATTR_USAGE_FRAMES,
560         NL802154_KEY_ATTR_USAGE_CMDS,             439         NL802154_KEY_ATTR_USAGE_CMDS,
561         NL802154_KEY_ATTR_BYTES,                  440         NL802154_KEY_ATTR_BYTES,
562                                                   441 
563         /* keep last */                           442         /* keep last */
564         __NL802154_KEY_ATTR_AFTER_LAST,           443         __NL802154_KEY_ATTR_AFTER_LAST,
565         NL802154_KEY_ATTR_MAX = __NL802154_KEY    444         NL802154_KEY_ATTR_MAX = __NL802154_KEY_ATTR_AFTER_LAST - 1
566 };                                                445 };
567                                                   446 
568 #define NL802154_KEY_SIZE               16        447 #define NL802154_KEY_SIZE               16
569 #define NL802154_CMD_FRAME_NR_IDS       256       448 #define NL802154_CMD_FRAME_NR_IDS       256
570                                                   449 
571 #endif /* CONFIG_IEEE802154_NL802154_EXPERIMEN    450 #endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
572                                                   451 
573 #endif /* __NL802154_H */                         452 #endif /* __NL802154_H */
574                                                   453 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php