4 * 802.15.4 netlink interface public header
6 * Copyright 2014 Alexander Aring <aar@pengutronix.de>
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.
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.
22 #define NL802154_GENL_NAME "nl802154"
24 enum 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 */
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
,
34 NL802154_CMD_GET_INTERFACE
, /* can dump */
35 NL802154_CMD_SET_INTERFACE
,
36 NL802154_CMD_NEW_INTERFACE
,
37 NL802154_CMD_DEL_INTERFACE
,
39 NL802154_CMD_SET_CHANNEL
,
41 NL802154_CMD_SET_PAN_ID
,
42 NL802154_CMD_SET_SHORT_ADDR
,
44 NL802154_CMD_SET_TX_POWER
,
45 NL802154_CMD_SET_CCA_MODE
,
46 NL802154_CMD_SET_CCA_ED_LEVEL
,
48 NL802154_CMD_SET_MAX_FRAME_RETRIES
,
50 NL802154_CMD_SET_BACKOFF_EXPONENT
,
51 NL802154_CMD_SET_MAX_CSMA_BACKOFFS
,
53 NL802154_CMD_SET_LBT_MODE
,
55 /* add new commands above here */
57 /* used to define NL802154_CMD_MAX below */
58 __NL802154_CMD_AFTER_LAST
,
59 NL802154_CMD_MAX
= __NL802154_CMD_AFTER_LAST
- 1
63 /* don't change the order or add anything between, this is ABI! */
64 /* currently we don't shipping this file via uapi, ignore the above one */
67 NL802154_ATTR_WPAN_PHY
,
68 NL802154_ATTR_WPAN_PHY_NAME
,
70 NL802154_ATTR_IFINDEX
,
74 NL802154_ATTR_WPAN_DEV
,
77 NL802154_ATTR_CHANNEL
,
80 NL802154_ATTR_SHORT_ADDR
,
82 NL802154_ATTR_TX_POWER
,
84 NL802154_ATTR_CCA_MODE
,
85 NL802154_ATTR_CCA_MODE3_AND
,
86 NL802154_ATTR_CCA_ED_LEVEL
,
88 NL802154_ATTR_MAX_FRAME_RETRIES
,
92 NL802154_ATTR_MAX_CSMA_BACKOFFS
,
94 NL802154_ATTR_LBT_MODE
,
96 NL802154_ATTR_GENERATION
,
98 NL802154_ATTR_CHANNELS_SUPPORTED
,
99 NL802154_ATTR_SUPPORTED_CHANNEL
,
101 NL802154_ATTR_EXTENDED_ADDR
,
103 /* add attributes here, update the policy in nl802154.c */
105 __NL802154_ATTR_AFTER_LAST
,
106 NL802154_ATTR_MAX
= __NL802154_ATTR_AFTER_LAST
- 1
109 enum nl802154_iftype
{
110 /* for backwards compatibility TODO */
111 NL802154_IFTYPE_UNSPEC
= -1,
113 NL802154_IFTYPE_NODE
,
114 NL802154_IFTYPE_MONITOR
,
115 NL802154_IFTYPE_COORD
,
118 NUM_NL802154_IFTYPES
,
119 NL802154_IFTYPE_MAX
= NUM_NL802154_IFTYPES
- 1
122 #endif /* __NL802154_H */