Skip to contentSkip to conversation

rtlwifi: rtl8192cu: Modify REG_BCN_MAX_ERR related code.

PATCH In review Taehee Yoo 2 participants 6 messages May 5, 2015 – May 11, 2015 Networking drivers (wireless)

lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

PATCH 1/1 rtlwifi: rtl8192cu: Modify REG_BCN_MAX_ERR related code.

1. Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status(). Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value. so i remove this code.

2. Remove rtl92c_init_beacon_max_error's parameter. because parameter "infra_mode" is not used.

---
 drivers/net/wireless/rtlwifi/rtl8192cu/hw.c  | 3 +--
 drivers/net/wireless/rtlwifi/rtl8192cu/mac.c | 2 +-
 drivers/net/wireless/rtlwifi/rtl8192cu/mac.h | 2 +-
 3 files changed, 3 insertions(+), 4 deletions(-)
drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +1 -2
index d310d55..1898596 100644
@@ -889,7 +889,7 @@ static int _rtl92cu_init_mac(struct ieee80211_hw *hw)
 	rtl92c_set_min_space(hw, IS_92C_SERIAL(rtlhal->version));
 	rtl92c_init_beacon_parameters(hw, rtlhal->version);
 	rtl92c_init_ampdu_aggregation(hw);
-	rtl92c_init_beacon_max_error(hw, true);
+	rtl92c_init_beacon_max_error(hw);
 	return err;
 }
 
@@ -1323,7 +1323,6 @@ static int _rtl92cu_set_media_status(struct ieee80211_hw *hw,
 	enum led_ctl_mode ledaction = LED_CTL_NO_LINK;
 
 	bt_msr &= 0xfc;
-	rtl_write_byte(rtlpriv, REG_BCN_MAX_ERR, 0xFF);
 	if (type == NL80211_IFTYPE_UNSPECIFIED || type ==
 	    NL80211_IFTYPE_STATION) {
 		_rtl92cu_stop_tx_beacon(hw);
drivers/net/wireless/rtlwifi/rtl8192cu/mac.c +1 -1
index adb8107..f3db6bc 100644
@@ -613,7 +613,7 @@ void rtl92c_init_ampdu_aggregation(struct ieee80211_hw *hw)
 	rtl_write_word(rtlpriv, 0x4CA, 0x0708);
 }
 
-void rtl92c_init_beacon_max_error(struct ieee80211_hw *hw, bool infra_mode)
+void rtl92c_init_beacon_max_error(struct ieee80211_hw *hw)
 {
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
 
drivers/net/wireless/rtlwifi/rtl8192cu/mac.h +1 -1
index bf53652..58548e8 100644
@@ -66,7 +66,7 @@ void rtl92c_init_edca_param(struct ieee80211_hw *hw,
 
 void rtl92c_init_edca(struct ieee80211_hw *hw);
 void rtl92c_init_ampdu_aggregation(struct ieee80211_hw *hw);
-void rtl92c_init_beacon_max_error(struct ieee80211_hw *hw, bool infra_mode);
+void rtl92c_init_beacon_max_error(struct ieee80211_hw *hw);
 void rtl92c_init_rdg_setting(struct ieee80211_hw *hw);
 void rtl92c_init_retry_function(struct ieee80211_hw *hw);
 
Signature · 1 line
2.1.0
#1 lore raw
Quoted 9 lines · Taehee Yoo

1. Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status(). Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value. so i remove this code.

2. Remove rtl92c_init_beacon_max_error's parameter. because parameter "infra_mode" is not used.

Please split the patches into two. Having a numbered list of changes in the commit log is a strong indication that the patch should be split into smaller patches.

Signature · 1 line
Kalle Valo
author
#2 lore raw

2015-05-08 22:01 GMT+09:00 Kalle Valo <[email protected]>:

Quoted 10 lines
Quoted 8 lines · Taehee Yoo

1. Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status(). Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value. so i remove this code.

2. Remove rtl92c_init_beacon_max_error's parameter. because parameter "infra_mode" is not used.

Quoted 8 lines
Quoted 1 line

Please split the patches into two. Having a numbered list of changes in the commit log is a strong indication that the patch should be split into smaller patches.

--
Kalle Valo

Thank you for your review!
I'll resend two patchs.

#3 lore raw
Quoted 17 lines · Taehee Yoo

2015-05-08 22:01 GMT+09:00 Kalle Valo <[email protected]>:

Quoted 16 lines
Quoted 9 lines · Taehee Yoo

1. Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status(). Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value. so i remove this code.

2. Remove rtl92c_init_beacon_max_error's parameter. because parameter "infra_mode" is not used.

Please split the patches into two. Having a numbered list of changes in the commit log is a strong indication that the patch should be split into smaller patches.

Quoted 5 lines
Quoted 2 lines

--
Kalle Valo

Thank you for your review!
I'll resend two patchs.

Thanks. But when you send new versions please mark them as v2, v3 and so on as that makes it easy for me to see what is the latest version.

Signature · 1 line
Kalle Valo
author
#4 lore raw

2015-05-09 21:02 GMT+09:00 Kalle Valo <[email protected]>:

Quoted 22 lines
Quoted 20 lines · Taehee Yoo

2015-05-08 22:01 GMT+09:00 Kalle Valo <[email protected]>:

Quoted 18 lines
Quoted 9 lines · Taehee Yoo

1. Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status(). Initialization routine set REG_BCN_MAX_ERR to 0xFF.
also _rtl92cu_set_media_status set REG_BCN_MAX_ERR to same value. so i remove this code.

2. Remove rtl92c_init_beacon_max_error's parameter. because parameter "infra_mode" is not used.

Please split the patches into two. Having a numbered list of changes in the commit log is a strong indication that the patch should be split into smaller patches.

--
Kalle Valo

Quoted 8 lines
Quoted 2 lines

Thank you for your review!
I'll resend two patchs.

Thanks. But when you send new versions please mark them as v2, v3 and so on as that makes it easy for me to see what is the latest version.

--
Kalle Valo

I already sent two patchs as "rtlwifi: rtl8192cu: Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status()." and "rtlwifi:
rtl8192cu: Remove rtl92c_init_beacon_max_error's parameter"

is it right? or would I resend as V2?

#5 lore raw
Quoted 11 lines · Taehee Yoo
Quoted 5 lines
Quoted 2 lines

Thank you for your review!
I'll resend two patchs.

Thanks. But when you send new versions please mark them as v2, v3 and so on as that makes it easy for me to see what is the latest version.

I already sent two patchs as "rtlwifi: rtl8192cu: Remove setting REG_BCN_MAX_ERR code in _rtl92cu_set_media_status()." and "rtlwifi:
rtl8192cu: Remove rtl92c_init_beacon_max_error's parameter"

is it right? or would I resend as V2?

No need to resend this time, but in the future please always increase the version when changing patches.

Signature · 1 line
Kalle Valo