From b196f496dfdf395d7da3a4bb1d2872c7dd3c7b10 Mon Sep 17 00:00:00 2001 From: Xianjun Jiao Date: Mon, 28 Mar 2022 14:14:49 +0200 Subject: [PATCH] Add priv->actual_tx_lo preparing for further tx/rx related setting --- driver/sdr.c | 2 ++ driver/sdr.h | 1 + 2 files changed, 3 insertions(+) diff --git a/driver/sdr.c b/driver/sdr.c index 8969477..d4a25a7 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -143,6 +143,7 @@ static void ad9361_rf_set_channel(struct ieee80211_hw *dev, if (change_flag) { priv->actual_rx_lo = actual_rx_lo; + priv->actual_tx_lo = actual_tx_lo; actual_tx_lo = conf->chandef.chan->center_freq - priv->tx_freq_offset_to_lo_MHz; @@ -1704,6 +1705,7 @@ 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; 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); diff --git a/driver/sdr.h b/driver/sdr.h index 07d50da..6458221 100644 --- a/driver/sdr.h +++ b/driver/sdr.h @@ -355,6 +355,7 @@ struct openwifi_priv { int tx_freq_offset_to_lo_MHz; u32 rf_bw; u32 actual_rx_lo; + u32 actual_tx_lo; struct ieee80211_rate rates_2GHz[12]; struct ieee80211_rate rates_5GHz[12];