aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2015-04-09 04:25:11 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-04-09 13:56:15 -0400
commit23310f6f3a8f30f4b6794e941763da4708f7471a (patch)
treeebc9a1455acf35ff08f1cd121c6b966a9d9e185f
parentccd6da2ab81815e03c0713069597a8fc8f6f8431 (diff)
mac802154: fix transmission power datatype
Netlink attribute for the power is s8. But for the driver level operations we are collection power level value into integer. It has to be change to s8 from int. Signed-off-by: Varka Bhadram <varkab@cdac.in> Acked-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r--drivers/net/ieee802154/at86rf230.c2
-rw-r--r--include/net/mac802154.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c
index 5ad46f7f514f..38026650c038 100644
--- a/drivers/net/ieee802154/at86rf230.c
+++ b/drivers/net/ieee802154/at86rf230.c
@@ -1173,7 +1173,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_hw *hw,
1173} 1173}
1174 1174
1175static int 1175static int
1176at86rf230_set_txpower(struct ieee802154_hw *hw, int db) 1176at86rf230_set_txpower(struct ieee802154_hw *hw, s8 db)
1177{ 1177{
1178 struct at86rf230_local *lp = hw->priv; 1178 struct at86rf230_local *lp = hw->priv;
1179 1179
diff --git a/include/net/mac802154.h b/include/net/mac802154.h
index 2f0644c0612a..e18e7fd43f47 100644
--- a/include/net/mac802154.h
+++ b/include/net/mac802154.h
@@ -213,7 +213,7 @@ struct ieee802154_ops {
213 int (*set_hw_addr_filt)(struct ieee802154_hw *hw, 213 int (*set_hw_addr_filt)(struct ieee802154_hw *hw,
214 struct ieee802154_hw_addr_filt *filt, 214 struct ieee802154_hw_addr_filt *filt,
215 unsigned long changed); 215 unsigned long changed);
216 int (*set_txpower)(struct ieee802154_hw *hw, int db); 216 int (*set_txpower)(struct ieee802154_hw *hw, s8 dbm);
217 int (*set_lbt)(struct ieee802154_hw *hw, bool on); 217 int (*set_lbt)(struct ieee802154_hw *hw, bool on);
218 int (*set_cca_mode)(struct ieee802154_hw *hw, 218 int (*set_cca_mode)(struct ieee802154_hw *hw,
219 const struct wpan_phy_cca *cca); 219 const struct wpan_phy_cca *cca);