From 7b2f8bdfff4a4b21b49417fffecf284fe9508924 Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Mon, 28 Mar 2022 15:20:03 +0200 Subject: [PATCH] Align the inital actual_tx_lo/actual_rx_lo to rf_init_11n.sh: Make it far from our usual 2.4/5GHz to force ad9361 to calibration while up in 2.4/5GHz due to large tuning offset from the original frequency (1GHz) --- driver/sdr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/sdr.c b/driver/sdr.c index 48c42ea..788c27f 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -1810,8 +1810,8 @@ static int openwifi_dev_probe(struct platform_device *pdev) } // //-------------find ad9361-phy driver for lo/channel control--------------- - priv->actual_rx_lo = 0; - priv->actual_tx_lo = 0; + priv->actual_rx_lo = 1000; //Some value aligned with rf_init/rf_init_11n.sh that is not WiFi channel to force ad9361_rf_set_channel execution triggered by Linux + priv->actual_tx_lo = 1000; //Some value aligned with rf_init/rf_init_11n.sh that is not WiFi channel to force ad9361_rf_set_channel execution triggered by Linux tmp_dev = bus_find_device( &spi_bus_type, NULL, "ad9361-phy", custom_match_spi_dev ); if (tmp_dev == NULL) { printk(KERN_ERR "%s find_dev ad9361-phy failed\n",sdr_compatible_str);