summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVarka Bhadram <varkabhadram@gmail.com>2015-04-09 11:25:11 +0300
committerMarcel Holtmann <marcel@holtmann.org>2015-04-09 20:56:15 +0300
commit23310f6f3a8f30f4b6794e941763da4708f7471a (patch)
treeebc9a1455acf35ff08f1cd121c6b966a9d9e185f /include
parentccd6da2ab81815e03c0713069597a8fc8f6f8431 (diff)
downloadlinux-23310f6f3a8f30f4b6794e941763da4708f7471a.tar.xz
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>
Diffstat (limited to 'include')
-rw-r--r--include/net/mac802154.h2
1 files changed, 1 insertions, 1 deletions
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 {
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);