diff options
author | Taehee Yoo <ap420073@gmail.com> | 2015-03-20 06:31:33 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-03-30 04:30:07 -0400 |
commit | e480e1344873b6a715d06a003e603d86a11a4033 (patch) | |
tree | 5cf27c98279699bf712125b29a89216c0b0ed749 /drivers | |
parent | 01fbd4ecff4f8dc8ca9614778326cc159705623e (diff) |
rtlwifi: Change REG_CR+2 to MSR
I changed REG_CR+2 and (MSR) to MSR because MSR is defined as (REG_CR + 2).
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 4 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192de/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192ee/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192se/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723ae/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8723be/hw.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8821ae/hw.c | 4 |
9 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c index bb9f5382da17..86ce5b1930e6 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | |||
@@ -886,7 +886,7 @@ static bool _rtl88ee_init_mac(struct ieee80211_hw *hw) | |||
886 | 886 | ||
887 | rtl_write_word(rtlpriv, REG_CR, 0x2ff); | 887 | rtl_write_word(rtlpriv, REG_CR, 0x2ff); |
888 | rtl_write_byte(rtlpriv, REG_CR+1, 0x06); | 888 | rtl_write_byte(rtlpriv, REG_CR+1, 0x06); |
889 | rtl_write_byte(rtlpriv, REG_CR+2, 0x00); | 889 | rtl_write_byte(rtlpriv, MSR, 0x00); |
890 | 890 | ||
891 | if (!rtlhal->mac_func_enable) { | 891 | if (!rtlhal->mac_func_enable) { |
892 | if (_rtl88ee_llt_table_init(hw) == false) { | 892 | if (_rtl88ee_llt_table_init(hw) == false) { |
@@ -1278,7 +1278,7 @@ static int _rtl88ee_set_media_status(struct ieee80211_hw *hw, | |||
1278 | mode); | 1278 | mode); |
1279 | } | 1279 | } |
1280 | 1280 | ||
1281 | rtl_write_byte(rtlpriv, (MSR), bt_msr | mode); | 1281 | rtl_write_byte(rtlpriv, MSR, bt_msr | mode); |
1282 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1282 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1283 | if (mode == MSR_AP) | 1283 | if (mode == MSR_AP) |
1284 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1284 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index 43b2b20e3fcf..d310d55d800e 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | |||
@@ -1364,7 +1364,7 @@ static int _rtl92cu_set_media_status(struct ieee80211_hw *hw, | |||
1364 | "Network type %d not supported!\n", type); | 1364 | "Network type %d not supported!\n", type); |
1365 | goto error_out; | 1365 | goto error_out; |
1366 | } | 1366 | } |
1367 | rtl_write_byte(rtlpriv, (MSR), bt_msr); | 1367 | rtl_write_byte(rtlpriv, MSR, bt_msr); |
1368 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1368 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1369 | if ((bt_msr & MSR_MASK) == MSR_AP) | 1369 | if ((bt_msr & MSR_MASK) == MSR_AP) |
1370 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1370 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c b/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c index 133e395b7401..adb810794eef 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | |||
@@ -497,7 +497,7 @@ int rtl92c_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type) | |||
497 | "Network type %d not supported!\n", type); | 497 | "Network type %d not supported!\n", type); |
498 | return -EOPNOTSUPP; | 498 | return -EOPNOTSUPP; |
499 | } | 499 | } |
500 | rtl_write_byte(rtlpriv, (REG_CR + 2), value); | 500 | rtl_write_byte(rtlpriv, MSR, value); |
501 | return 0; | 501 | return 0; |
502 | } | 502 | } |
503 | 503 | ||
diff --git a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c index 01bcc2d218dc..f49b60d31450 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192de/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192de/hw.c | |||
@@ -1126,7 +1126,7 @@ static int _rtl92de_set_media_status(struct ieee80211_hw *hw, | |||
1126 | break; | 1126 | break; |
1127 | 1127 | ||
1128 | } | 1128 | } |
1129 | rtl_write_byte(rtlpriv, REG_CR + 2, bt_msr); | 1129 | rtl_write_byte(rtlpriv, MSR, bt_msr); |
1130 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1130 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1131 | if ((bt_msr & MSR_MASK) == MSR_AP) | 1131 | if ((bt_msr & MSR_MASK) == MSR_AP) |
1132 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1132 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ee/hw.c b/drivers/net/wireless/rtlwifi/rtl8192ee/hw.c index db230a3f0137..da0a6125f314 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192ee/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192ee/hw.c | |||
@@ -1510,7 +1510,7 @@ static int _rtl92ee_set_media_status(struct ieee80211_hw *hw, | |||
1510 | mode); | 1510 | mode); |
1511 | } | 1511 | } |
1512 | 1512 | ||
1513 | rtl_write_byte(rtlpriv, (MSR), bt_msr | mode); | 1513 | rtl_write_byte(rtlpriv, MSR, bt_msr | mode); |
1514 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1514 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1515 | if (mode == MSR_AP) | 1515 | if (mode == MSR_AP) |
1516 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1516 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c index dee88a80bee1..12b0978ba4fa 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c | |||
@@ -1204,7 +1204,7 @@ static int _rtl92se_set_media_status(struct ieee80211_hw *hw, | |||
1204 | if (type != NL80211_IFTYPE_AP && | 1204 | if (type != NL80211_IFTYPE_AP && |
1205 | rtlpriv->mac80211.link_state < MAC80211_LINKED) | 1205 | rtlpriv->mac80211.link_state < MAC80211_LINKED) |
1206 | bt_msr = rtl_read_byte(rtlpriv, MSR) & ~MSR_LINK_MASK; | 1206 | bt_msr = rtl_read_byte(rtlpriv, MSR) & ~MSR_LINK_MASK; |
1207 | rtl_write_byte(rtlpriv, (MSR), bt_msr); | 1207 | rtl_write_byte(rtlpriv, MSR, bt_msr); |
1208 | 1208 | ||
1209 | temp = rtl_read_dword(rtlpriv, TCR); | 1209 | temp = rtl_read_dword(rtlpriv, TCR); |
1210 | rtl_write_dword(rtlpriv, TCR, temp & (~BIT(8))); | 1210 | rtl_write_dword(rtlpriv, TCR, temp & (~BIT(8))); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c b/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c index b3b094759f6d..67bb47d77b68 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723ae/hw.c | |||
@@ -1183,7 +1183,7 @@ static int _rtl8723e_set_media_status(struct ieee80211_hw *hw, | |||
1183 | mode); | 1183 | mode); |
1184 | } | 1184 | } |
1185 | 1185 | ||
1186 | rtl_write_byte(rtlpriv, (MSR), bt_msr | mode); | 1186 | rtl_write_byte(rtlpriv, MSR, bt_msr | mode); |
1187 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1187 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1188 | if (mode == MSR_AP) | 1188 | if (mode == MSR_AP) |
1189 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1189 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c index b46998341c40..b681af3c7a35 100644 --- a/drivers/net/wireless/rtlwifi/rtl8723be/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8723be/hw.c | |||
@@ -1558,7 +1558,7 @@ static int _rtl8723be_set_media_status(struct ieee80211_hw *hw, | |||
1558 | mode); | 1558 | mode); |
1559 | } | 1559 | } |
1560 | 1560 | ||
1561 | rtl_write_byte(rtlpriv, (MSR), bt_msr | mode); | 1561 | rtl_write_byte(rtlpriv, MSR, bt_msr | mode); |
1562 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 1562 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
1563 | if (mode == MSR_AP) | 1563 | if (mode == MSR_AP) |
1564 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 1564 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |
diff --git a/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c index 2a0a71bac00c..8704eee9f3a4 100644 --- a/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8821ae/hw.c | |||
@@ -423,7 +423,7 @@ void rtl8821ae_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
423 | *((u16 *)(val+4)) = rtl_read_word(rtlpriv, REG_BSSID+4); | 423 | *((u16 *)(val+4)) = rtl_read_word(rtlpriv, REG_BSSID+4); |
424 | break; | 424 | break; |
425 | case HW_VAR_MEDIA_STATUS: | 425 | case HW_VAR_MEDIA_STATUS: |
426 | val[0] = rtl_read_byte(rtlpriv, REG_CR+2) & 0x3; | 426 | val[0] = rtl_read_byte(rtlpriv, MSR) & 0x3; |
427 | break; | 427 | break; |
428 | case HW_VAR_SLOT_TIME: | 428 | case HW_VAR_SLOT_TIME: |
429 | *((u8 *)(val)) = mac->slot_time; | 429 | *((u8 *)(val)) = mac->slot_time; |
@@ -2178,7 +2178,7 @@ static int _rtl8821ae_set_media_status(struct ieee80211_hw *hw, | |||
2178 | return 1; | 2178 | return 1; |
2179 | } | 2179 | } |
2180 | 2180 | ||
2181 | rtl_write_byte(rtlpriv, (MSR), bt_msr); | 2181 | rtl_write_byte(rtlpriv, MSR, bt_msr); |
2182 | rtlpriv->cfg->ops->led_control(hw, ledaction); | 2182 | rtlpriv->cfg->ops->led_control(hw, ledaction); |
2183 | if ((bt_msr & 0xfc) == MSR_AP) | 2183 | if ((bt_msr & 0xfc) == MSR_AP) |
2184 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); | 2184 | rtl_write_byte(rtlpriv, REG_BCNTCFG + 1, 0x00); |