rtlwifi: Replace hardcode value with macro
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
@@ -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
Larry Finger
NAKQuoted 2 lines · Souptick Joarder
In
_rtl_init_mac80211(), hardcoded value forhw->max_listen_intervalandhw->max_rate_triesare 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
Signed-off-by Souptick Joarder <[email protected]>--- drivers/net/wireless/realtek/rtlwifi/base.c | 1 - 1 file changed, 1 deletion(-)drivers/net/wireless/realtek/rtlwifi/base.c +0
-2@@ -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
Quoted 7 lines · Larry Finger
Quoted 2 lines · Souptick Joarder
In
_rtl_init_mac80211(), hardcoded value forhw->max_listen_intervalandhw->max_rate_triesare 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
Hi Kalle,
Quoted 6 lines · Kalle Valo
Quoted 4 lines · Larry Finger
Quoted 2 lines · Souptick Joarder
In
_rtl_init_mac80211(), hardcoded value forhw->max_listen_intervalandhw->max_rate_triesare 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
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 forhw->max_listen_intervalandhw->max_rate_triesare 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