diff options
author | Varka Bhadram <varkabhadram@gmail.com> | 2015-05-29 10:56:54 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-05-31 13:40:53 +0200 |
commit | aad1b0b5d3e0e4cdadd695b7188873ba614ca4ef (patch) | |
tree | ef35f3153e408314f17cef49a1751574b218296a /drivers | |
parent | bc6e17b8ccd40895751537579646dae9de8ea7a1 (diff) | |
download | linux-aad1b0b5d3e0e4cdadd695b7188873ba614ca4ef.tar.gz linux-aad1b0b5d3e0e4cdadd695b7188873ba614ca4ef.tar.bz2 linux-aad1b0b5d3e0e4cdadd695b7188873ba614ca4ef.zip |
cc2520: fix in default tx power setting
Initially we dont have the tx power settings from the user-space.
Now we have the support for seeting the tx power level.
So lets use the default tx power setting for the radio.
Signed-off-by: Varka Bhadram <varkab@cdac.in>
Cc: Brad Campbell <bradjc5@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ieee802154/cc2520.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 84b28a05c5a1..ea280d437ca1 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c @@ -782,10 +782,6 @@ static int cc2520_hw_init(struct cc2520_private *priv) * http://www.ti.com/lit/an/swra229a/swra229a.pdf */ if (pdata.amplified) { - ret = cc2520_write_register(priv, CC2520_TXPOWER, 0xF9); - if (ret) - goto err_ret; - ret = cc2520_write_register(priv, CC2520_AGCCTRL1, 0x16); if (ret) goto err_ret; @@ -806,10 +802,6 @@ static int cc2520_hw_init(struct cc2520_private *priv) if (ret) goto err_ret; } else { - ret = cc2520_write_register(priv, CC2520_TXPOWER, 0xF7); - if (ret) - goto err_ret; - ret = cc2520_write_register(priv, CC2520_AGCCTRL1, 0x11); if (ret) goto err_ret; |