From 641a980a9b8262d5127c9c8444a7364ff4ac6545 Mon Sep 17 00:00:00 2001 From: thavinga Date: Tue, 29 Mar 2022 11:34:57 +0200 Subject: [PATCH] Disable AD9361 auto calibration and enable openwifi FPGA SPI control in openwifi_start() --- driver/sdr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/driver/sdr.c b/driver/sdr.c index 6998266..b1e8eb6 100644 --- a/driver/sdr.c +++ b/driver/sdr.c @@ -1404,6 +1404,10 @@ static int openwifi_start(struct ieee80211_hw *dev) rx_intf_api->RX_INTF_REG_M_AXIS_RST_write(0); // release M AXIS xpu_api->XPU_REG_TSF_LOAD_VAL_write(0,0); // reset tsf timer + // disable ad9361 auto calibration and enable openwifi fpga spi control + priv->ad9361_phy->state->auto_cal_en = false; // turn off auto Tx quadrature calib. + priv->ad9361_phy->state->manual_tx_quad_cal_en = true; // turn on manual Tx quadrature calib. + xpu_api->XPU_REG_SPI_DISABLE_write(0); // normal_out: printk("%s openwifi_start: normal end\n", sdr_compatible_str);