Re: [PATCH bluetooth-next 2/3] cc2520: update initial transmit power value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/28/2015 12:20 PM, Varka Bhadram wrote:

CC2520 has the default 0dBm transmit power level  on reset.
This patch update initial value of transmit power with 0dBm value.

CC2520 has the 0dBm value on reset, but in the driver we are setting
tx power value to 5dBm.

Signed-off-by: Varka Bhadram <varkab@xxxxxxx>
---
  drivers/net/ieee802154/cc2520.c |    2 ++
  1 file changed, 2 insertions(+)

diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index a20e6d4..94347d4 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -708,6 +708,8 @@ static int cc2520_register(struct cc2520_private *priv)
  	priv->hw->phy->supported.tx_powers = cc2520_powers;
  	priv->hw->phy->supported.tx_powers_size = ARRAY_SIZE(cc2520_powers);
+ priv->hw->phy->transmit_power = priv->hw->phy->supported.tx_powers[4];
+

This has to be:

priv->hw->phy->transmit_power = priv->hw->phy->supported.tx_powers[0];

  	dev_vdbg(&priv->spi->dev, "registered cc2520\n");
  	ret = ieee802154_register_hw(priv->hw);
  	if (ret)

--
Varka Bhadram

--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux