mac802154: fix transmission power datatype
authorVarka Bhadram <varkabhadram@gmail.com>
Thu, 9 Apr 2015 08:25:11 +0000 (13:55 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 9 Apr 2015 17:56:15 +0000 (19:56 +0200)
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>
drivers/net/ieee802154/at86rf230.c
include/net/mac802154.h

index 5ad46f7f514f1332df5f42f6f7546aeef313da30..38026650c0387ecb101d085e24273bf24ded2783 100644 (file)
@@ -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;
 
index 2f0644c0612ab1b42a3fbdd116e589c5a9d7d581..e18e7fd43f47d996613b0c1e7dfe6bc0e636c476 100644 (file)
@@ -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);