From 994b19a73eafb808cb93722892ca9c2f0e76097a Mon Sep 17 00:00:00 2001
From: Robert Ghilduta <robert.ghilduta@nuand.com>
Date: Wed, 21 Aug 2019 01:23:41 -0700
Subject: [PATCH 4/4] Revert "fpga_common: make the bladeRF2 default gain mode
 manual"

This reverts commit a739a73096786ce1a4542b699e89327483d643a6.
---
 fpga_common/src/ad936x_params.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fpga_common/src/ad936x_params.c b/fpga_common/src/ad936x_params.c
index 7606074a..9e665ba5 100644
--- a/fpga_common/src/ad936x_params.c
+++ b/fpga_common/src/ad936x_params.c
@@ -78,8 +78,8 @@ AD9361_InitParam bladerf2_rfic_init_params = {
     CLKOUT_DISABLE, // disable clkout pin (see enum ad9361_clkout)                      // clk_output_mode_select *** adi,clk-output-mode-select
 
     /* Gain Control */
-    RF_GAIN_MGC, // RX1 BLADERF_GAIN_DEFAULT = slow attack AGC               // gc_rx1_mode *** adi,gc-rx1-mode
-    RF_GAIN_MGC, // RX2 BLADERF_GAIN_DEFAULT = slow attack AGC               // gc_rx2_mode *** adi,gc-rx2-mode
+    RF_GAIN_SLOWATTACK_AGC, // RX1 BLADERF_GAIN_DEFAULT = slow attack AGC               // gc_rx1_mode *** adi,gc-rx1-mode
+    RF_GAIN_SLOWATTACK_AGC, // RX2 BLADERF_GAIN_DEFAULT = slow attack AGC               // gc_rx2_mode *** adi,gc-rx2-mode
     58,             // magic AGC setting, see AD9361 docs                               // gc_adc_large_overload_thresh *** adi,gc-adc-large-overload-thresh
     4,              // magic AGC setting, see AD9361 docs                               // gc_adc_ovr_sample_size *** adi,gc-adc-ovr-sample-size
     47,             // magic AGC setting, see AD9361 docs                               // gc_adc_small_overload_thresh *** adi,gc-adc-small-overload-thresh
-- 
2.20.1

