Loading...
1#ifndef __NL802154_H
2#define __NL802154_H
3/*
4 * 802.15.4 netlink interface public header
5 *
6 * Copyright 2014 Alexander Aring <aar@pengutronix.de>
7 *
8 * Permission to use, copy, modify, and/or distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
11 *
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19 *
20 */
21
22#define NL802154_GENL_NAME "nl802154"
23
24enum nl802154_commands {
25/* don't change the order or add anything between, this is ABI! */
26/* currently we don't shipping this file via uapi, ignore the above one */
27 NL802154_CMD_UNSPEC,
28
29 NL802154_CMD_GET_WPAN_PHY, /* can dump */
30 NL802154_CMD_SET_WPAN_PHY,
31 NL802154_CMD_NEW_WPAN_PHY,
32 NL802154_CMD_DEL_WPAN_PHY,
33
34 NL802154_CMD_GET_INTERFACE, /* can dump */
35 NL802154_CMD_SET_INTERFACE,
36 NL802154_CMD_NEW_INTERFACE,
37 NL802154_CMD_DEL_INTERFACE,
38
39 NL802154_CMD_SET_CHANNEL,
40
41 NL802154_CMD_SET_PAN_ID,
42 NL802154_CMD_SET_SHORT_ADDR,
43
44 NL802154_CMD_SET_TX_POWER,
45 NL802154_CMD_SET_CCA_MODE,
46 NL802154_CMD_SET_CCA_ED_LEVEL,
47
48 NL802154_CMD_SET_MAX_FRAME_RETRIES,
49
50 NL802154_CMD_SET_BACKOFF_EXPONENT,
51 NL802154_CMD_SET_MAX_CSMA_BACKOFFS,
52
53 NL802154_CMD_SET_LBT_MODE,
54
55 NL802154_CMD_SET_ACKREQ_DEFAULT,
56
57 /* add new commands above here */
58
59#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
60 NL802154_CMD_SET_SEC_PARAMS,
61 NL802154_CMD_GET_SEC_KEY, /* can dump */
62 NL802154_CMD_NEW_SEC_KEY,
63 NL802154_CMD_DEL_SEC_KEY,
64 NL802154_CMD_GET_SEC_DEV, /* can dump */
65 NL802154_CMD_NEW_SEC_DEV,
66 NL802154_CMD_DEL_SEC_DEV,
67 NL802154_CMD_GET_SEC_DEVKEY, /* can dump */
68 NL802154_CMD_NEW_SEC_DEVKEY,
69 NL802154_CMD_DEL_SEC_DEVKEY,
70 NL802154_CMD_GET_SEC_LEVEL, /* can dump */
71 NL802154_CMD_NEW_SEC_LEVEL,
72 NL802154_CMD_DEL_SEC_LEVEL,
73#endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
74
75 /* used to define NL802154_CMD_MAX below */
76 __NL802154_CMD_AFTER_LAST,
77 NL802154_CMD_MAX = __NL802154_CMD_AFTER_LAST - 1
78};
79
80enum nl802154_attrs {
81/* don't change the order or add anything between, this is ABI! */
82/* currently we don't shipping this file via uapi, ignore the above one */
83 NL802154_ATTR_UNSPEC,
84
85 NL802154_ATTR_WPAN_PHY,
86 NL802154_ATTR_WPAN_PHY_NAME,
87
88 NL802154_ATTR_IFINDEX,
89 NL802154_ATTR_IFNAME,
90 NL802154_ATTR_IFTYPE,
91
92 NL802154_ATTR_WPAN_DEV,
93
94 NL802154_ATTR_PAGE,
95 NL802154_ATTR_CHANNEL,
96
97 NL802154_ATTR_PAN_ID,
98 NL802154_ATTR_SHORT_ADDR,
99
100 NL802154_ATTR_TX_POWER,
101
102 NL802154_ATTR_CCA_MODE,
103 NL802154_ATTR_CCA_OPT,
104 NL802154_ATTR_CCA_ED_LEVEL,
105
106 NL802154_ATTR_MAX_FRAME_RETRIES,
107
108 NL802154_ATTR_MAX_BE,
109 NL802154_ATTR_MIN_BE,
110 NL802154_ATTR_MAX_CSMA_BACKOFFS,
111
112 NL802154_ATTR_LBT_MODE,
113
114 NL802154_ATTR_GENERATION,
115
116 NL802154_ATTR_CHANNELS_SUPPORTED,
117 NL802154_ATTR_SUPPORTED_CHANNEL,
118
119 NL802154_ATTR_EXTENDED_ADDR,
120
121 NL802154_ATTR_WPAN_PHY_CAPS,
122
123 NL802154_ATTR_SUPPORTED_COMMANDS,
124
125 NL802154_ATTR_ACKREQ_DEFAULT,
126
127 /* add attributes here, update the policy in nl802154.c */
128
129#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
130 NL802154_ATTR_SEC_ENABLED,
131 NL802154_ATTR_SEC_OUT_LEVEL,
132 NL802154_ATTR_SEC_OUT_KEY_ID,
133 NL802154_ATTR_SEC_FRAME_COUNTER,
134
135 NL802154_ATTR_SEC_LEVEL,
136 NL802154_ATTR_SEC_DEVICE,
137 NL802154_ATTR_SEC_DEVKEY,
138 NL802154_ATTR_SEC_KEY,
139#endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
140
141 __NL802154_ATTR_AFTER_LAST,
142 NL802154_ATTR_MAX = __NL802154_ATTR_AFTER_LAST - 1
143};
144
145enum nl802154_iftype {
146 /* for backwards compatibility TODO */
147 NL802154_IFTYPE_UNSPEC = -1,
148
149 NL802154_IFTYPE_NODE,
150 NL802154_IFTYPE_MONITOR,
151 NL802154_IFTYPE_COORD,
152
153 /* keep last */
154 NUM_NL802154_IFTYPES,
155 NL802154_IFTYPE_MAX = NUM_NL802154_IFTYPES - 1
156};
157
158/**
159 * enum nl802154_wpan_phy_capability_attr - wpan phy capability attributes
160 *
161 * @__NL802154_CAP_ATTR_INVALID: attribute number 0 is reserved
162 * @NL802154_CAP_ATTR_CHANNELS: a nested attribute for nl802154_channel_attr
163 * @NL802154_CAP_ATTR_TX_POWERS: a nested attribute for
164 * nl802154_wpan_phy_tx_power
165 * @NL802154_CAP_ATTR_MIN_CCA_ED_LEVEL: minimum value for cca_ed_level
166 * @NL802154_CAP_ATTR_MAX_CCA_ED_LEVEL: maxmimum value for cca_ed_level
167 * @NL802154_CAP_ATTR_CCA_MODES: nl802154_cca_modes flags
168 * @NL802154_CAP_ATTR_CCA_OPTS: nl802154_cca_opts flags
169 * @NL802154_CAP_ATTR_MIN_MINBE: minimum of minbe value
170 * @NL802154_CAP_ATTR_MAX_MINBE: maximum of minbe value
171 * @NL802154_CAP_ATTR_MIN_MAXBE: minimum of maxbe value
172 * @NL802154_CAP_ATTR_MAX_MINBE: maximum of maxbe value
173 * @NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS: minimum of csma backoff value
174 * @NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS: maximum of csma backoffs value
175 * @NL802154_CAP_ATTR_MIN_FRAME_RETRIES: minimum of frame retries value
176 * @NL802154_CAP_ATTR_MAX_FRAME_RETRIES: maximum of frame retries value
177 * @NL802154_CAP_ATTR_IFTYPES: nl802154_iftype flags
178 * @NL802154_CAP_ATTR_LBT: nl802154_supported_bool_states flags
179 * @NL802154_CAP_ATTR_MAX: highest cap attribute currently defined
180 * @__NL802154_CAP_ATTR_AFTER_LAST: internal use
181 */
182enum nl802154_wpan_phy_capability_attr {
183 __NL802154_CAP_ATTR_INVALID,
184
185 NL802154_CAP_ATTR_IFTYPES,
186
187 NL802154_CAP_ATTR_CHANNELS,
188 NL802154_CAP_ATTR_TX_POWERS,
189
190 NL802154_CAP_ATTR_CCA_ED_LEVELS,
191 NL802154_CAP_ATTR_CCA_MODES,
192 NL802154_CAP_ATTR_CCA_OPTS,
193
194 NL802154_CAP_ATTR_MIN_MINBE,
195 NL802154_CAP_ATTR_MAX_MINBE,
196
197 NL802154_CAP_ATTR_MIN_MAXBE,
198 NL802154_CAP_ATTR_MAX_MAXBE,
199
200 NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS,
201 NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS,
202
203 NL802154_CAP_ATTR_MIN_FRAME_RETRIES,
204 NL802154_CAP_ATTR_MAX_FRAME_RETRIES,
205
206 NL802154_CAP_ATTR_LBT,
207
208 /* keep last */
209 __NL802154_CAP_ATTR_AFTER_LAST,
210 NL802154_CAP_ATTR_MAX = __NL802154_CAP_ATTR_AFTER_LAST - 1
211};
212
213/**
214 * enum nl802154_cca_modes - cca modes
215 *
216 * @__NL802154_CCA_INVALID: cca mode number 0 is reserved
217 * @NL802154_CCA_ENERGY: Energy above threshold
218 * @NL802154_CCA_CARRIER: Carrier sense only
219 * @NL802154_CCA_ENERGY_CARRIER: Carrier sense with energy above threshold
220 * @NL802154_CCA_ALOHA: CCA shall always report an idle medium
221 * @NL802154_CCA_UWB_SHR: UWB preamble sense based on the SHR of a frame
222 * @NL802154_CCA_UWB_MULTIPLEXED: UWB preamble sense based on the packet with
223 * the multiplexed preamble
224 * @__NL802154_CCA_ATTR_AFTER_LAST: Internal
225 * @NL802154_CCA_ATTR_MAX: Maximum CCA attribute number
226 */
227enum nl802154_cca_modes {
228 __NL802154_CCA_INVALID,
229 NL802154_CCA_ENERGY,
230 NL802154_CCA_CARRIER,
231 NL802154_CCA_ENERGY_CARRIER,
232 NL802154_CCA_ALOHA,
233 NL802154_CCA_UWB_SHR,
234 NL802154_CCA_UWB_MULTIPLEXED,
235
236 /* keep last */
237 __NL802154_CCA_ATTR_AFTER_LAST,
238 NL802154_CCA_ATTR_MAX = __NL802154_CCA_ATTR_AFTER_LAST - 1
239};
240
241/**
242 * enum nl802154_cca_opts - additional options for cca modes
243 *
244 * @NL802154_CCA_OPT_ENERGY_CARRIER_OR: NL802154_CCA_ENERGY_CARRIER with OR
245 * @NL802154_CCA_OPT_ENERGY_CARRIER_AND: NL802154_CCA_ENERGY_CARRIER with AND
246 */
247enum nl802154_cca_opts {
248 NL802154_CCA_OPT_ENERGY_CARRIER_AND,
249 NL802154_CCA_OPT_ENERGY_CARRIER_OR,
250
251 /* keep last */
252 __NL802154_CCA_OPT_ATTR_AFTER_LAST,
253 NL802154_CCA_OPT_ATTR_MAX = __NL802154_CCA_OPT_ATTR_AFTER_LAST - 1
254};
255
256/**
257 * enum nl802154_supported_bool_states - bool states for bool capability entry
258 *
259 * @NL802154_SUPPORTED_BOOL_FALSE: indicates to set false
260 * @NL802154_SUPPORTED_BOOL_TRUE: indicates to set true
261 * @__NL802154_SUPPORTED_BOOL_INVALD: reserved
262 * @NL802154_SUPPORTED_BOOL_BOTH: indicates to set true and false
263 * @__NL802154_SUPPORTED_BOOL_AFTER_LAST: Internal
264 * @NL802154_SUPPORTED_BOOL_MAX: highest value for bool states
265 */
266enum nl802154_supported_bool_states {
267 NL802154_SUPPORTED_BOOL_FALSE,
268 NL802154_SUPPORTED_BOOL_TRUE,
269 /* to handle them in a mask */
270 __NL802154_SUPPORTED_BOOL_INVALD,
271 NL802154_SUPPORTED_BOOL_BOTH,
272
273 /* keep last */
274 __NL802154_SUPPORTED_BOOL_AFTER_LAST,
275 NL802154_SUPPORTED_BOOL_MAX = __NL802154_SUPPORTED_BOOL_AFTER_LAST - 1
276};
277
278#ifdef CONFIG_IEEE802154_NL802154_EXPERIMENTAL
279
280enum nl802154_dev_addr_modes {
281 NL802154_DEV_ADDR_NONE,
282 __NL802154_DEV_ADDR_INVALID,
283 NL802154_DEV_ADDR_SHORT,
284 NL802154_DEV_ADDR_EXTENDED,
285
286 /* keep last */
287 __NL802154_DEV_ADDR_AFTER_LAST,
288 NL802154_DEV_ADDR_MAX = __NL802154_DEV_ADDR_AFTER_LAST - 1
289};
290
291enum nl802154_dev_addr_attrs {
292 NL802154_DEV_ADDR_ATTR_UNSPEC,
293
294 NL802154_DEV_ADDR_ATTR_PAN_ID,
295 NL802154_DEV_ADDR_ATTR_MODE,
296 NL802154_DEV_ADDR_ATTR_SHORT,
297 NL802154_DEV_ADDR_ATTR_EXTENDED,
298
299 /* keep last */
300 __NL802154_DEV_ADDR_ATTR_AFTER_LAST,
301 NL802154_DEV_ADDR_ATTR_MAX = __NL802154_DEV_ADDR_ATTR_AFTER_LAST - 1
302};
303
304enum nl802154_key_id_modes {
305 NL802154_KEY_ID_MODE_IMPLICIT,
306 NL802154_KEY_ID_MODE_INDEX,
307 NL802154_KEY_ID_MODE_INDEX_SHORT,
308 NL802154_KEY_ID_MODE_INDEX_EXTENDED,
309
310 /* keep last */
311 __NL802154_KEY_ID_MODE_AFTER_LAST,
312 NL802154_KEY_ID_MODE_MAX = __NL802154_KEY_ID_MODE_AFTER_LAST - 1
313};
314
315enum nl802154_key_id_attrs {
316 NL802154_KEY_ID_ATTR_UNSPEC,
317
318 NL802154_KEY_ID_ATTR_MODE,
319 NL802154_KEY_ID_ATTR_INDEX,
320 NL802154_KEY_ID_ATTR_IMPLICIT,
321 NL802154_KEY_ID_ATTR_SOURCE_SHORT,
322 NL802154_KEY_ID_ATTR_SOURCE_EXTENDED,
323
324 /* keep last */
325 __NL802154_KEY_ID_ATTR_AFTER_LAST,
326 NL802154_KEY_ID_ATTR_MAX = __NL802154_KEY_ID_ATTR_AFTER_LAST - 1
327};
328
329enum nl802154_seclevels {
330 NL802154_SECLEVEL_NONE,
331 NL802154_SECLEVEL_MIC32,
332 NL802154_SECLEVEL_MIC64,
333 NL802154_SECLEVEL_MIC128,
334 NL802154_SECLEVEL_ENC,
335 NL802154_SECLEVEL_ENC_MIC32,
336 NL802154_SECLEVEL_ENC_MIC64,
337 NL802154_SECLEVEL_ENC_MIC128,
338
339 /* keep last */
340 __NL802154_SECLEVEL_AFTER_LAST,
341 NL802154_SECLEVEL_MAX = __NL802154_SECLEVEL_AFTER_LAST - 1
342};
343
344enum nl802154_frames {
345 NL802154_FRAME_BEACON,
346 NL802154_FRAME_DATA,
347 NL802154_FRAME_ACK,
348 NL802154_FRAME_CMD,
349
350 /* keep last */
351 __NL802154_FRAME_AFTER_LAST,
352 NL802154_FRAME_MAX = __NL802154_FRAME_AFTER_LAST - 1
353};
354
355enum nl802154_cmd_frames {
356 __NL802154_CMD_FRAME_INVALID,
357 NL802154_CMD_FRAME_ASSOC_REQUEST,
358 NL802154_CMD_FRAME_ASSOC_RESPONSE,
359 NL802154_CMD_FRAME_DISASSOC_NOTIFY,
360 NL802154_CMD_FRAME_DATA_REQUEST,
361 NL802154_CMD_FRAME_PAN_ID_CONFLICT_NOTIFY,
362 NL802154_CMD_FRAME_ORPHAN_NOTIFY,
363 NL802154_CMD_FRAME_BEACON_REQUEST,
364 NL802154_CMD_FRAME_COORD_REALIGNMENT,
365 NL802154_CMD_FRAME_GTS_REQUEST,
366
367 /* keep last */
368 __NL802154_CMD_FRAME_AFTER_LAST,
369 NL802154_CMD_FRAME_MAX = __NL802154_CMD_FRAME_AFTER_LAST - 1
370};
371
372enum nl802154_seclevel_attrs {
373 NL802154_SECLEVEL_ATTR_UNSPEC,
374
375 NL802154_SECLEVEL_ATTR_LEVELS,
376 NL802154_SECLEVEL_ATTR_FRAME,
377 NL802154_SECLEVEL_ATTR_CMD_FRAME,
378 NL802154_SECLEVEL_ATTR_DEV_OVERRIDE,
379
380 /* keep last */
381 __NL802154_SECLEVEL_ATTR_AFTER_LAST,
382 NL802154_SECLEVEL_ATTR_MAX = __NL802154_SECLEVEL_ATTR_AFTER_LAST - 1
383};
384
385/* TODO what is this? couldn't find in mib */
386enum {
387 NL802154_DEVKEY_IGNORE,
388 NL802154_DEVKEY_RESTRICT,
389 NL802154_DEVKEY_RECORD,
390
391 /* keep last */
392 __NL802154_DEVKEY_AFTER_LAST,
393 NL802154_DEVKEY_MAX = __NL802154_DEVKEY_AFTER_LAST - 1
394};
395
396enum nl802154_dev {
397 NL802154_DEV_ATTR_UNSPEC,
398
399 NL802154_DEV_ATTR_FRAME_COUNTER,
400 NL802154_DEV_ATTR_PAN_ID,
401 NL802154_DEV_ATTR_SHORT_ADDR,
402 NL802154_DEV_ATTR_EXTENDED_ADDR,
403 NL802154_DEV_ATTR_SECLEVEL_EXEMPT,
404 NL802154_DEV_ATTR_KEY_MODE,
405
406 /* keep last */
407 __NL802154_DEV_ATTR_AFTER_LAST,
408 NL802154_DEV_ATTR_MAX = __NL802154_DEV_ATTR_AFTER_LAST - 1
409};
410
411enum nl802154_devkey {
412 NL802154_DEVKEY_ATTR_UNSPEC,
413
414 NL802154_DEVKEY_ATTR_FRAME_COUNTER,
415 NL802154_DEVKEY_ATTR_EXTENDED_ADDR,
416 NL802154_DEVKEY_ATTR_ID,
417
418 /* keep last */
419 __NL802154_DEVKEY_ATTR_AFTER_LAST,
420 NL802154_DEVKEY_ATTR_MAX = __NL802154_DEVKEY_ATTR_AFTER_LAST - 1
421};
422
423enum nl802154_key {
424 NL802154_KEY_ATTR_UNSPEC,
425
426 NL802154_KEY_ATTR_ID,
427 NL802154_KEY_ATTR_USAGE_FRAMES,
428 NL802154_KEY_ATTR_USAGE_CMDS,
429 NL802154_KEY_ATTR_BYTES,
430
431 /* keep last */
432 __NL802154_KEY_ATTR_AFTER_LAST,
433 NL802154_KEY_ATTR_MAX = __NL802154_KEY_ATTR_AFTER_LAST - 1
434};
435
436#define NL802154_KEY_SIZE 16
437#define NL802154_CMD_FRAME_NR_IDS 256
438
439#endif /* CONFIG_IEEE802154_NL802154_EXPERIMENTAL */
440
441#endif /* __NL802154_H */
1/*
2 * nl802154.h
3 *
4 * Copyright (C) 2007, 2008, 2009 Siemens AG
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2
8 * as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 */
20
21#ifndef IEEE802154_NL_H
22#define IEEE802154_NL_H
23
24struct net_device;
25struct ieee802154_addr;
26
27/**
28 * ieee802154_nl_assoc_indic - Notify userland of an association request.
29 * @dev: The network device on which this association request was
30 * received.
31 * @addr: The address of the device requesting association.
32 * @cap: The capability information field from the device.
33 *
34 * This informs a userland coordinator of a device requesting to
35 * associate with the PAN controlled by the coordinator.
36 *
37 * Note: This is in section 7.3.1 of the IEEE 802.15.4-2006 document.
38 */
39int ieee802154_nl_assoc_indic(struct net_device *dev,
40 struct ieee802154_addr *addr, u8 cap);
41
42/**
43 * ieee802154_nl_assoc_confirm - Notify userland of association.
44 * @dev: The device which has completed association.
45 * @short_addr: The short address assigned to the device.
46 * @status: The status of the association.
47 *
48 * Inform userland of the result of an association request. If the
49 * association request included asking the coordinator to allocate
50 * a short address then it is returned in @short_addr.
51 *
52 * Note: This is in section 7.3.2 of the IEEE 802.15.4 document.
53 */
54int ieee802154_nl_assoc_confirm(struct net_device *dev,
55 u16 short_addr, u8 status);
56
57/**
58 * ieee802154_nl_disassoc_indic - Notify userland of disassociation.
59 * @dev: The device on which disassociation was indicated.
60 * @addr: The device which is disassociating.
61 * @reason: The reason for the disassociation.
62 *
63 * Inform userland that a device has disassociated from the network.
64 *
65 * Note: This is in section 7.3.3 of the IEEE 802.15.4 document.
66 */
67int ieee802154_nl_disassoc_indic(struct net_device *dev,
68 struct ieee802154_addr *addr, u8 reason);
69
70/**
71 * ieee802154_nl_disassoc_confirm - Notify userland of disassociation
72 * completion.
73 * @dev: The device on which disassociation was ordered.
74 * @status: The result of the disassociation.
75 *
76 * Inform userland of the result of requesting that a device
77 * disassociate, or the result of requesting that we disassociate from
78 * a PAN managed by another coordinator.
79 *
80 * Note: This is in section 7.1.4.3 of the IEEE 802.15.4 document.
81 */
82int ieee802154_nl_disassoc_confirm(struct net_device *dev,
83 u8 status);
84
85/**
86 * ieee802154_nl_scan_confirm - Notify userland of completion of scan.
87 * @dev: The device which was instructed to scan.
88 * @status: The status of the scan operation.
89 * @scan_type: What type of scan was performed.
90 * @unscanned: Any channels that the device was unable to scan.
91 * @edl: The energy levels (if a passive scan).
92 *
93 *
94 * Note: This is in section 7.1.11 of the IEEE 802.15.4 document.
95 * Note: This API does not permit the return of an active scan result.
96 */
97int ieee802154_nl_scan_confirm(struct net_device *dev,
98 u8 status, u8 scan_type, u32 unscanned, u8 page,
99 u8 *edl/*, struct list_head *pan_desc_list */);
100
101/**
102 * ieee802154_nl_beacon_indic - Notify userland of a received beacon.
103 * @dev: The device on which a beacon was received.
104 * @panid: The PAN of the coordinator.
105 * @coord_addr: The short address of the coordinator on that PAN.
106 *
107 * Note: This is in section 7.1.5 of the IEEE 802.15.4 document.
108 * Note: This API does not provide extended information such as what
109 * channel the PAN is on or what the LQI of the beacon frame was on
110 * receipt.
111 * Note: This API cannot indicate a beacon frame for a coordinator
112 * operating in long addressing mode.
113 */
114int ieee802154_nl_beacon_indic(struct net_device *dev, u16 panid,
115 u16 coord_addr);
116
117/**
118 * ieee802154_nl_start_confirm - Notify userland of completion of start.
119 * @dev: The device which was instructed to scan.
120 * @status: The status of the scan operation.
121 *
122 * Note: This is in section 7.1.14 of the IEEE 802.15.4 document.
123 */
124int ieee802154_nl_start_confirm(struct net_device *dev, u8 status);
125
126#endif