diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-09-26 14:25:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-10-03 16:39:09 -0400 |
commit | 3fc0165657592e98a957f348711209dd2c6c4f1c (patch) | |
tree | 3e516ff37a1fab1930ab1420e2cf8e50e53a195b | |
parent | 6483033ad8b5bbc1d2c9cd6556b6c35a563409ae (diff) |
rtlwifi: rtl8723ae: Convert driver to use new rtl_phy_scan_operation_backup() routine
Now that rtl_phy_scan_operation_backup() exists, convert rtl8723ae to use it.
Routine rtl8723ae_phy_scan_operation_backup() is no longer used and is removed.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/phy.c | 29 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/phy.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/sw.c | 3 |
3 files changed, 2 insertions, 32 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c index eafbb18dd48e..5d318a85eda4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.c | |||
@@ -934,35 +934,6 @@ static long _phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw, | |||
934 | return pwrout_dbm; | 934 | return pwrout_dbm; |
935 | } | 935 | } |
936 | 936 | ||
937 | void rtl8723ae_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation) | ||
938 | { | ||
939 | struct rtl_priv *rtlpriv = rtl_priv(hw); | ||
940 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); | ||
941 | enum io_type iotype; | ||
942 | |||
943 | if (!is_hal_stop(rtlhal)) { | ||
944 | switch (operation) { | ||
945 | case SCAN_OPT_BACKUP: | ||
946 | iotype = IO_CMD_PAUSE_DM_BY_SCAN; | ||
947 | rtlpriv->cfg->ops->set_hw_reg(hw, | ||
948 | HW_VAR_IO_CMD, | ||
949 | (u8 *)&iotype); | ||
950 | |||
951 | break; | ||
952 | case SCAN_OPT_RESTORE: | ||
953 | iotype = IO_CMD_RESUME_DM_BY_SCAN; | ||
954 | rtlpriv->cfg->ops->set_hw_reg(hw, | ||
955 | HW_VAR_IO_CMD, | ||
956 | (u8 *)&iotype); | ||
957 | break; | ||
958 | default: | ||
959 | RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, | ||
960 | "Unknown Scan Backup operation.\n"); | ||
961 | break; | ||
962 | } | ||
963 | } | ||
964 | } | ||
965 | |||
966 | void rtl8723ae_phy_set_bw_mode_callback(struct ieee80211_hw *hw) | 937 | void rtl8723ae_phy_set_bw_mode_callback(struct ieee80211_hw *hw) |
967 | { | 938 | { |
968 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 939 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.h b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.h index e7a59eba351a..3d8f9e3aad76 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/phy.h +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/phy.h | |||
@@ -205,8 +205,6 @@ extern void rtl8723ae_phy_set_txpower_level(struct ieee80211_hw *hw, | |||
205 | u8 channel); | 205 | u8 channel); |
206 | extern bool rtl8723ae_phy_update_txpower_dbm(struct ieee80211_hw *hw, | 206 | extern bool rtl8723ae_phy_update_txpower_dbm(struct ieee80211_hw *hw, |
207 | long power_indbm); | 207 | long power_indbm); |
208 | extern void rtl8723ae_phy_scan_operation_backup(struct ieee80211_hw *hw, | ||
209 | u8 operation); | ||
210 | extern void rtl8723ae_phy_set_bw_mode_callback(struct ieee80211_hw *hw); | 208 | extern void rtl8723ae_phy_set_bw_mode_callback(struct ieee80211_hw *hw); |
211 | extern void rtl8723ae_phy_set_bw_mode(struct ieee80211_hw *hw, | 209 | extern void rtl8723ae_phy_set_bw_mode(struct ieee80211_hw *hw, |
212 | enum nl80211_channel_type ch_type); | 210 | enum nl80211_channel_type ch_type); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/sw.c b/drivers/net/wireless/rtlwifi/rtl8723ae/sw.c index d9ee2efffe5f..62b204faf773 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/sw.c | |||
@@ -33,6 +33,7 @@ | |||
33 | 33 | ||
34 | #include "../core.h" | 34 | #include "../core.h" |
35 | #include "../pci.h" | 35 | #include "../pci.h" |
36 | #include "../base.h" | ||
36 | #include "reg.h" | 37 | #include "reg.h" |
37 | #include "def.h" | 38 | #include "def.h" |
38 | #include "phy.h" | 39 | #include "phy.h" |
@@ -220,7 +221,7 @@ static struct rtl_hal_ops rtl8723ae_hal_ops = { | |||
220 | .set_bw_mode = rtl8723ae_phy_set_bw_mode, | 221 | .set_bw_mode = rtl8723ae_phy_set_bw_mode, |
221 | .switch_channel = rtl8723ae_phy_sw_chnl, | 222 | .switch_channel = rtl8723ae_phy_sw_chnl, |
222 | .dm_watchdog = rtl8723ae_dm_watchdog, | 223 | .dm_watchdog = rtl8723ae_dm_watchdog, |
223 | .scan_operation_backup = rtl8723ae_phy_scan_operation_backup, | 224 | .scan_operation_backup = rtl_phy_scan_operation_backup, |
224 | .set_rf_power_state = rtl8723ae_phy_set_rf_power_state, | 225 | .set_rf_power_state = rtl8723ae_phy_set_rf_power_state, |
225 | .led_control = rtl8723ae_led_control, | 226 | .led_control = rtl8723ae_led_control, |
226 | .set_desc = rtl8723ae_set_desc, | 227 | .set_desc = rtl8723ae_set_desc, |