[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y3kONX7KhQ1GX9QW@qemulion>
Date: Sat, 19 Nov 2022 22:41:17 +0530
From: Deepak R Varma <drv@...lo.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org
Cc: drv@...lo.com
Subject: [PATCH] staging: pi433: call set_lan_gain for receiver config
Value for the LNA gain is captured from the user as part of the struct
pi433_rx_cfg, however, the corresponding function rf69_set_lna_gain() is
never called to set it. Include a call to this function as part of
setting up the rx configurations.
Signed-off-by: Deepak R Varma <drv@...lo.com>
---
drivers/staging/pi433/pi433_if.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index d4e06a3929f3..e588a98d7f33 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -176,6 +176,9 @@ rf69_set_rx_cfg(struct pi433_device *dev, struct pi433_rx_cfg *rx_cfg)
if (ret < 0)
return ret;
ret = rf69_set_antenna_impedance(dev->spi, rx_cfg->antenna_impedance);
+ if (ret < 0)
+ return ret;
+ ret = rf69_set_lna_gain(dev->spi, rx_cfg->lna_gain);
if (ret < 0)
return ret;
ret = rf69_set_rssi_threshold(dev->spi, rx_cfg->rssi_threshold);
--
2.34.1
Powered by blists - more mailing lists