Merge tag 'dlm-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm
[linux-2.6-block.git] / include / linux / nl802154.h
index 33d9f5175109558d4934de7893003e0a1608759d..5a3db3aa5f17425587411e26ed1736cb92a6a5c4 100644 (file)
@@ -68,6 +68,7 @@ enum {
        IEEE802154_ATTR_CHANNEL_PAGE_LIST,
 
        IEEE802154_ATTR_PHY_NAME,
+       IEEE802154_ATTR_DEV_TYPE,
 
        __IEEE802154_ATTR_MAX,
 };
@@ -126,4 +127,23 @@ enum {
 
 #define IEEE802154_CMD_MAX (__IEEE802154_CMD_MAX - 1)
 
+enum {
+       __IEEE802154_DEV_INVALID = -1,
+
+        /* TODO:
+        * Nowadays three device types supported by this stack at linux-zigbee
+        * project: WPAN = 0, MONITOR = 1 and SMAC = 2.
+        *
+        * Since this stack implementation exists many years, it's definitely
+        * bad idea to change the assigned values due to they are already used
+        * by third-party userspace software like: iz-tools, wireshark...
+        *
+        * Currently only monitor device is added and initialized by '1' for
+        * compatibility.
+        */
+       IEEE802154_DEV_MONITOR = 1,
+
+       __IEEE802154_DEV_MAX,
+};
+
 #endif