Thread (5 messages) 5 messages, 3 authors, 2017-06-29

Re: [PATCH v2] rtlwifi: Replace hardcode value with macro

From: Souptick Joarder <hidden>
Date: 2017-06-29 04:13:39

Hi Kalle,

On Wed, Jun 28, 2017 at 9:47 PM, Kalle Valo [off-list ref] wrote:
Souptick Joarder [off-list ref] writes:
quoted
In _rtl_init_mac80211(), hardcoded value for hw->max_listen_interval
and hw->max_rate_tries are replaced by macro.

Signed-off-by: Souptick Joarder <redacted>
---
Changes in v2:
   - Signed-off was missing in previous one.
As Signed-off was missing in first patch, so I send v2 with change
logs mentioned the same.
Just for clarification, shall I replace the comment mentioned in
change log with "no change"?
quoted
 drivers/net/wireless/realtek/rtlwifi/base.c | 6 +++---
 drivers/net/wireless/realtek/rtlwifi/base.h | 2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/base.c b/drivers/net/wireless/realtek/rtlwifi/base.c
index bdc3791..f45d093 100644
--- a/drivers/net/wireless/realtek/rtlwifi/base.c
+++ b/drivers/net/wireless/realtek/rtlwifi/base.c
@@ -422,9 +422,9 @@ static void _rtl_init_mac80211(struct ieee80211_hw *hw)
      hw->extra_tx_headroom = RTL_TX_HEADER_SIZE;

      /* TODO: Correct this value for our hw */
-     /* TODO: define these hard code value */
-     hw->max_listen_interval = 10;
-     hw->max_rate_tries = 4;
+     /* defined these hard code values */
+     hw->max_listen_interval = MAX_LISTEN_INTERVAL;
+     hw->max_rate_tries = MAX_RATE_TRIES;
Like Larry said, the comment does not make any sense. Please remove it
and send v3.

--
Kalle Valo
Souptick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help