Skip to contentSkip to conversation

rtlwifi: Replace hardcode value with macro

PATCH Superseded Souptick Joarder 4 participants 5 messages Jul 31, 2017 – Aug 2, 2017 Realtek wireless driver (rtlwifi family)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 rtlwifi: Replace hardcode value with macro

In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro.

---
 drivers/net/wireless/realtek/rtlwifi/base.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/wireless/realtek/rtlwifi/base.c +0 -1
index f45d093..52f2d0b 100644
@@ -422,7 +422,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw)
 	hw->extra_tx_headroom = RTL_TX_HEADER_SIZE;
 
 	/* TODO: Correct this value for our hw */
-	/* defined these hard code values */
 	hw->max_listen_interval = MAX_LISTEN_INTERVAL;
 	hw->max_rate_tries = MAX_RATE_TRIES;
 	/* hw->max_rates = 1; */

--
1.9.1

#1 lore raw
Quoted 2 lines · Souptick Joarder

In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro.

That is NOT what your patch does. It only removes a comment! Granted, that comment is useless and should come out, but your commit message must be a little more accurate.

NACK.

Larry

Quoted 22 lines
---
  drivers/net/wireless/realtek/rtlwifi/base.c | 1 -
  1 file changed, 1 deletion(-)
drivers/net/wireless/realtek/rtlwifi/base.c +0 -2
index f45d093..52f2d0b 100644
@@ -422,7 +422,6 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw)
  	hw->extra_tx_headroom = RTL_TX_HEADER_SIZE;
 
  	/* TODO: Correct this value for our hw */
-	/* defined these hard code values */
  	hw->max_listen_interval = MAX_LISTEN_INTERVAL;
  	hw->max_rate_tries = MAX_RATE_TRIES;
  	/* hw->max_rates = 1; */
--

1.9.1

#2 lore raw
Quoted 7 lines · Larry Finger
Quoted 2 lines · Souptick Joarder

In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro.

That is NOT what your patch does. It only removes a comment! Granted, that comment is useless and should come out, but your commit message must be a little more accurate.

Actually the patch does not even apply, I suspect that Souptick incorrectly used v3 of his patch as the baseline for v4. Instead this v4 should be folded with v3.

Signature · 1 line
Kalle Valo
#3 lore raw

Hi Kalle,

Quoted 6 lines · Kalle Valo
Quoted 4 lines · Larry Finger
Quoted 2 lines · Souptick Joarder

In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro.

Quoted 7 lines
Quoted 3 lines

That is NOT what your patch does. It only removes a comment! Granted, that comment is useless and should come out, but your commit message must be a little more accurate.

Actually the patch does not even apply, I suspect that Souptick incorrectly used v3 of his patch as the baseline for v4. Instead this v4 should be folded with v3.

Do you mean I should address your comment in v3 and send v3 again instead of v4 ?

Quoted 3 lines

--
Kalle Valo

-Souptick

#4 lore raw
Quoted 13 lines · Souptick Joarder

Hi Kalle,

Quoted 10 lines · Kalle Valo
Quoted 7 lines · Larry Finger
Quoted 2 lines · Souptick Joarder

In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval and hw->max_rate_tries are replaced by macro.

That is NOT what your patch does. It only removes a comment! Granted, that comment is useless and should come out, but your commit message must be a little more accurate.

Quoted 6 lines
Quoted 3 lines

Actually the patch does not even apply, I suspect that Souptick incorrectly used v3 of his patch as the baseline for v4. Instead this v4 should be folded with v3.

Do you mean I should address your comment in v3 and send v3 again instead of v4 ?

Your v4 patch should apply on top of wireless-drivers-next/master as is.

Regards,
Arend