diff options
Diffstat (limited to 'net/mac802154/cfg.c')
-rw-r--r-- | net/mac802154/cfg.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/net/mac802154/cfg.c b/net/mac802154/cfg.c index 5d669d87dd7d..2b3610c51489 100644 --- a/net/mac802154/cfg.c +++ b/net/mac802154/cfg.c | |||
@@ -43,8 +43,7 @@ static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy, | |||
43 | } | 43 | } |
44 | 44 | ||
45 | static int | 45 | static int |
46 | ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page, | 46 | ieee802154_set_channel(struct wpan_phy *wpan_phy, u8 page, u8 channel) |
47 | const u8 channel) | ||
48 | { | 47 | { |
49 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 48 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
50 | int ret; | 49 | int ret; |
@@ -64,8 +63,9 @@ ieee802154_set_channel(struct wpan_phy *wpan_phy, const u8 page, | |||
64 | return ret; | 63 | return ret; |
65 | } | 64 | } |
66 | 65 | ||
67 | static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy, | 66 | static int |
68 | struct wpan_dev *wpan_dev, const u16 pan_id) | 67 | ieee802154_set_pan_id(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, |
68 | u16 pan_id) | ||
69 | { | 69 | { |
70 | ASSERT_RTNL(); | 70 | ASSERT_RTNL(); |
71 | 71 | ||
@@ -86,7 +86,7 @@ static int ieee802154_set_pan_id(struct wpan_phy *wpan_phy, | |||
86 | static int | 86 | static int |
87 | ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy, | 87 | ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy, |
88 | struct wpan_dev *wpan_dev, | 88 | struct wpan_dev *wpan_dev, |
89 | const u8 min_be, const u8 max_be) | 89 | u8 min_be, u8 max_be) |
90 | { | 90 | { |
91 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 91 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
92 | 92 | ||
@@ -102,7 +102,7 @@ ieee802154_set_backoff_exponent(struct wpan_phy *wpan_phy, | |||
102 | 102 | ||
103 | static int | 103 | static int |
104 | ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, | 104 | ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, |
105 | const u16 short_addr) | 105 | u16 short_addr) |
106 | { | 106 | { |
107 | ASSERT_RTNL(); | 107 | ASSERT_RTNL(); |
108 | 108 | ||
@@ -125,9 +125,10 @@ ieee802154_set_short_addr(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
128 | static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy, | 128 | static int |
129 | struct wpan_dev *wpan_dev, | 129 | ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy, |
130 | const u8 max_csma_backoffs) | 130 | struct wpan_dev *wpan_dev, |
131 | u8 max_csma_backoffs) | ||
131 | { | 132 | { |
132 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 133 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
133 | 134 | ||
@@ -140,9 +141,10 @@ static int ieee802154_set_max_csma_backoffs(struct wpan_phy *wpan_phy, | |||
140 | return 0; | 141 | return 0; |
141 | } | 142 | } |
142 | 143 | ||
143 | static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy, | 144 | static int |
144 | struct wpan_dev *wpan_dev, | 145 | ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy, |
145 | const s8 max_frame_retries) | 146 | struct wpan_dev *wpan_dev, |
147 | s8 max_frame_retries) | ||
146 | { | 148 | { |
147 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 149 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
148 | 150 | ||
@@ -155,9 +157,9 @@ static int ieee802154_set_max_frame_retries(struct wpan_phy *wpan_phy, | |||
155 | return 0; | 157 | return 0; |
156 | } | 158 | } |
157 | 159 | ||
158 | static int ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, | 160 | static int |
159 | struct wpan_dev *wpan_dev, | 161 | ieee802154_set_lbt_mode(struct wpan_phy *wpan_phy, struct wpan_dev *wpan_dev, |
160 | const bool mode) | 162 | bool mode) |
161 | { | 163 | { |
162 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); | 164 | struct ieee802154_local *local = wpan_phy_priv(wpan_phy); |
163 | 165 | ||