Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
* [PATCH bluetooth-next] mac802154: fix transmission power datatype
@ 2015-04-09  7:14 Varka Bhadram
  2015-04-09  7:28 ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Varka Bhadram @ 2015-04-09  7:14 UTC (permalink / raw)
  To: linux-wpan; +Cc: alex.aring, Varka Bhadram

Available 802.15.4 devices support multiple power levels,
which includes positive and negative values.This patch fix
set_txpower() operation arugument type to signed from int

Signed-off-by: Varka Bhadram <varkab@cdac.in>
---
 include/net/mac802154.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/mac802154.h b/include/net/mac802154.h
index fb4e8a3d..1213419 100644
--- a/include/net/mac802154.h
+++ b/include/net/mac802154.h
@@ -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);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-09  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09  7:14 [PATCH bluetooth-next] mac802154: fix transmission power datatype Varka Bhadram
2015-04-09  7:28 ` Marcel Holtmann
2015-04-09  7:41   ` Varka Bhadram
2015-04-09  7:46     ` Marcel Holtmann
2015-04-09  8:16       ` Varka Bhadram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox