diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg802154.h | 7 | ||||
-rw-r--r-- | include/net/ieee802154_netdev.h | 4 | ||||
-rw-r--r-- | include/net/mac802154.h | 5 |
3 files changed, 13 insertions, 3 deletions
diff --git a/include/net/cfg802154.h b/include/net/cfg802154.h index 7f713acfa106..6ee2618ac78a 100644 --- a/include/net/cfg802154.h +++ b/include/net/cfg802154.h | |||
@@ -56,6 +56,11 @@ struct cfg802154_ops { | |||
56 | struct wpan_dev *wpan_dev, bool mode); | 56 | struct wpan_dev *wpan_dev, bool mode); |
57 | }; | 57 | }; |
58 | 58 | ||
59 | struct wpan_phy_cca { | ||
60 | enum nl802154_cca_modes mode; | ||
61 | enum nl802154_cca_opts opt; | ||
62 | }; | ||
63 | |||
59 | struct wpan_phy { | 64 | struct wpan_phy { |
60 | struct mutex pib_lock; | 65 | struct mutex pib_lock; |
61 | 66 | ||
@@ -76,7 +81,7 @@ struct wpan_phy { | |||
76 | u8 current_page; | 81 | u8 current_page; |
77 | u32 channels_supported[IEEE802154_MAX_PAGE + 1]; | 82 | u32 channels_supported[IEEE802154_MAX_PAGE + 1]; |
78 | s8 transmit_power; | 83 | s8 transmit_power; |
79 | u8 cca_mode; | 84 | struct wpan_phy_cca cca; |
80 | 85 | ||
81 | __le64 perm_extended_addr; | 86 | __le64 perm_extended_addr; |
82 | 87 | ||
diff --git a/include/net/ieee802154_netdev.h b/include/net/ieee802154_netdev.h index 83bb8a73d23c..94a297052442 100644 --- a/include/net/ieee802154_netdev.h +++ b/include/net/ieee802154_netdev.h | |||
@@ -28,6 +28,8 @@ | |||
28 | #include <linux/skbuff.h> | 28 | #include <linux/skbuff.h> |
29 | #include <linux/ieee802154.h> | 29 | #include <linux/ieee802154.h> |
30 | 30 | ||
31 | #include <net/cfg802154.h> | ||
32 | |||
31 | struct ieee802154_sechdr { | 33 | struct ieee802154_sechdr { |
32 | #if defined(__LITTLE_ENDIAN_BITFIELD) | 34 | #if defined(__LITTLE_ENDIAN_BITFIELD) |
33 | u8 level:3, | 35 | u8 level:3, |
@@ -337,7 +339,7 @@ struct ieee802154_mac_params { | |||
337 | s8 frame_retries; | 339 | s8 frame_retries; |
338 | 340 | ||
339 | bool lbt; | 341 | bool lbt; |
340 | u8 cca_mode; | 342 | struct wpan_phy_cca cca; |
341 | s32 cca_ed_level; | 343 | s32 cca_ed_level; |
342 | }; | 344 | }; |
343 | 345 | ||
diff --git a/include/net/mac802154.h b/include/net/mac802154.h index c823d910b46c..850647811749 100644 --- a/include/net/mac802154.h +++ b/include/net/mac802154.h | |||
@@ -20,6 +20,8 @@ | |||
20 | #include <linux/ieee802154.h> | 20 | #include <linux/ieee802154.h> |
21 | #include <linux/skbuff.h> | 21 | #include <linux/skbuff.h> |
22 | 22 | ||
23 | #include <net/cfg802154.h> | ||
24 | |||
23 | /* General MAC frame format: | 25 | /* General MAC frame format: |
24 | * 2 bytes: Frame Control | 26 | * 2 bytes: Frame Control |
25 | * 1 byte: Sequence Number | 27 | * 1 byte: Sequence Number |
@@ -212,7 +214,8 @@ struct ieee802154_ops { | |||
212 | unsigned long changed); | 214 | unsigned long changed); |
213 | int (*set_txpower)(struct ieee802154_hw *hw, int db); | 215 | int (*set_txpower)(struct ieee802154_hw *hw, int db); |
214 | int (*set_lbt)(struct ieee802154_hw *hw, bool on); | 216 | int (*set_lbt)(struct ieee802154_hw *hw, bool on); |
215 | int (*set_cca_mode)(struct ieee802154_hw *hw, u8 mode); | 217 | int (*set_cca_mode)(struct ieee802154_hw *hw, |
218 | const struct wpan_phy_cca *cca); | ||
216 | int (*set_cca_ed_level)(struct ieee802154_hw *hw, | 219 | int (*set_cca_ed_level)(struct ieee802154_hw *hw, |
217 | s32 level); | 220 | s32 level); |
218 | int (*set_csma_params)(struct ieee802154_hw *hw, | 221 | int (*set_csma_params)(struct ieee802154_hw *hw, |