Skip to contentSkip to conversation

mac802154: fix transmission power datatype

PATCH In review Varka Bhadram 3 participants 3 messages Apr 9, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
 drivers/net/ieee802154/at86rf230.c |    2 +-
 include/net/mac802154.h            |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ieee802154/at86rf230.c +1 -1
index 5ad46f7..3802665 100644
@@ -1173,7 +1173,7 @@ at86rf230_set_hw_addr_filt(struct ieee802154_hw *hw,
 }
 
 static int
-at86rf230_set_txpower(struct ieee802154_hw *hw, int db)
+at86rf230_set_txpower(struct ieee802154_hw *hw, s8 db)
 {
 	struct at86rf230_local *lp = hw->priv;
 
include/net/mac802154.h +1 -1
index fb4e8a3d..1213419 100644
@@ -213,7 +213,7 @@ struct ieee802154_ops {
 	int		(*set_hw_addr_filt)(struct ieee802154_hw *hw,
 					    struct ieee802154_hw_addr_filt *filt,
 					    unsigned long changed);
-	int		(*set_txpower)(struct ieee802154_hw *hw, int db);
+	int		(*set_txpower)(struct ieee802154_hw *hw, s8 dbm);
 	int		(*set_lbt)(struct ieee802154_hw *hw, bool on);
 	int		(*set_cca_mode)(struct ieee802154_hw *hw,
 					const struct wpan_phy_cca *cca);
Signature · 1 line
1.7.9.5
#2 lore raw
In reply to Varka Bhadram

Hi Varka,

Quoted 9 lines

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.

---

drivers/net/ieee802154/at86rf230.c |    2 +-
include/net/mac802154.h            |    2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel