at86rf230: add reset states of tx power level
authorAlexander Aring <alex.aring@gmail.com>
Sun, 17 May 2015 19:44:52 +0000 (21:44 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 19 May 2015 09:44:44 +0000 (11:44 +0200)
This patch adds the reset states for tx power levels after running reset
procedure.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index 3aa7bc9488e4eb307cd5bc497b083082aeead40e..5601c743fa7b5729499d29eafa7fd421cc03d690 100644 (file)
@@ -1701,6 +1701,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
        }
 
        lp->hw->phy->cca_ed_level = lp->hw->phy->supported.cca_ed_levels[7];
+       lp->hw->phy->transmit_power = lp->hw->phy->supported.tx_powers[0];
 
 not_supp:
        dev_info(&lp->spi->dev, "Detected %s chip version %d\n", chip, version);