summaryrefslogtreecommitdiffstats
path: root/include/net/nl802154.h
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2015-05-17 15:44:43 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-05-19 05:44:42 -0400
commitfea3318d20776a94afeea0460c6ee9904e60569e (patch)
tree07af7d4b42998da70ed5c61d427b79282101f93c /include/net/nl802154.h
parent72f655e44db9c7e835ceba96dc03cbe979d3f80d (diff)
ieee802154: add several phy supported handling
This patch adds support for phy supported handling for all other already existing handling 802.15.4 functionality. We assume now a fully 802.15.4 complaint transceiver at phy allocation. If a transceiver can support 802.15.4 default values only, then the values should be overwirtten by values the transceiver supports. If the transceiver doesn't set the according hardware flags, we assume the 802.15.4 defaults now which cannot be changed. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Suggested-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/nl802154.h')
-rw-r--r--include/net/nl802154.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/net/nl802154.h b/include/net/nl802154.h
index f8b5bc997959..055277156eef 100644
--- a/include/net/nl802154.h
+++ b/include/net/nl802154.h
@@ -162,4 +162,26 @@ enum nl802154_cca_opts {
162 NL802154_CCA_OPT_ATTR_MAX = __NL802154_CCA_OPT_ATTR_AFTER_LAST - 1 162 NL802154_CCA_OPT_ATTR_MAX = __NL802154_CCA_OPT_ATTR_AFTER_LAST - 1
163}; 163};
164 164
165/**
166 * enum nl802154_supported_bool_states - bool states for bool capability entry
167 *
168 * @NL802154_SUPPORTED_BOOL_FALSE: indicates to set false
169 * @NL802154_SUPPORTED_BOOL_TRUE: indicates to set true
170 * @__NL802154_SUPPORTED_BOOL_INVALD: reserved
171 * @NL802154_SUPPORTED_BOOL_BOTH: indicates to set true and false
172 * @__NL802154_SUPPORTED_BOOL_AFTER_LAST: Internal
173 * @NL802154_SUPPORTED_BOOL_MAX: highest value for bool states
174 */
175enum nl802154_supported_bool_states {
176 NL802154_SUPPORTED_BOOL_FALSE,
177 NL802154_SUPPORTED_BOOL_TRUE,
178 /* to handle them in a mask */
179 __NL802154_SUPPORTED_BOOL_INVALD,
180 NL802154_SUPPORTED_BOOL_BOTH,
181
182 /* keep last */
183 __NL802154_SUPPORTED_BOOL_AFTER_LAST,
184 NL802154_SUPPORTED_BOOL_MAX = __NL802154_SUPPORTED_BOOL_AFTER_LAST - 1
185};
186
165#endif /* __NL802154_H */ 187#endif /* __NL802154_H */