]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: Remove ath_ant_comb_update()
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 5 Aug 2013 09:38:26 +0000 (15:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 5 Aug 2013 18:52:45 +0000 (14:52 -0400)
During a HW reset, the diversity config is programmed
in the set_board_values() eeprom callback, there is no
need to do it again by calling ath_ant_comb_update().

Fixed antenna support is not fully handled for 1-stream
cards, it can be done later.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/antenna.c
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/main.c

index 85391e6909315ac26ccafb72f90c66b24e5f0fe4..dd1cc73d7946104d2353a777586c6da4bf3c6f67 100644 (file)
@@ -867,26 +867,3 @@ div_comb_done:
        antcomb->main_recv_cnt = 0;
        antcomb->alt_recv_cnt = 0;
 }
-
-void ath_ant_comb_update(struct ath_softc *sc)
-{
-       struct ath_hw *ah = sc->sc_ah;
-       struct ath_common *common = ath9k_hw_common(ah);
-       struct ath_hw_antcomb_conf div_ant_conf;
-       u8 lna_conf;
-
-       ath9k_hw_antdiv_comb_conf_get(ah, &div_ant_conf);
-
-       if (sc->ant_rx == 1)
-               lna_conf = ATH_ANT_DIV_COMB_LNA1;
-       else
-               lna_conf = ATH_ANT_DIV_COMB_LNA2;
-
-       div_ant_conf.main_lna_conf = lna_conf;
-       div_ant_conf.alt_lna_conf = lna_conf;
-
-       ath9k_hw_antdiv_comb_conf_set(ah, &div_ant_conf);
-
-       if (common->bt_ant_diversity)
-               ath9k_hw_set_bt_ant_diversity(ah, true);
-}
index 18898abeef841500b0ef117075f6eb3ac4e14096..c497d529ce862d208ca69bc193445098e2975fb7 100644 (file)
@@ -628,7 +628,6 @@ struct ath_ant_comb {
 };
 
 void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs);
-void ath_ant_comb_update(struct ath_softc *sc);
 
 /********************/
 /* Main driver core */
index daa316bf47b3922c0e700732422aa5dc004ba6a0..a155190e2c8485d5d89eb78bd8b2f3c581fd77b9 100644 (file)
@@ -307,7 +307,7 @@ static ssize_t write_file_bt_ant_diversity(struct file *file,
 
        common->bt_ant_diversity = !!bt_ant_diversity;
        ath9k_ps_wakeup(sc);
-       ath_ant_comb_update(sc);
+       ath9k_hw_set_bt_ant_diversity(sc->sc_ah, common->bt_ant_diversity);
        ath_dbg(common, CONFIG, "Enable WLAN/BT RX Antenna diversity: %d\n",
                common->bt_ant_diversity);
        ath9k_ps_restore(sc);
index 1adb803a9d86e4cf587aa31f5fafc800d4f0057f..afeab3ca9a6908521d7c6b1525b278e169200774 100644 (file)
@@ -238,9 +238,6 @@ static bool ath_complete_reset(struct ath_softc *sc, bool start)
                ath_restart_work(sc);
        }
 
-       if ((ah->caps.hw_caps & ATH9K_HW_CAP_ANT_DIV_COMB) && sc->ant_rx != 3)
-               ath_ant_comb_update(sc);
-
        ieee80211_wake_queues(sc->hw);
 
        return true;