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 and removed the comment. Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com> Acked-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:

committed by
Kalle Valo

parent
e7ece05011
commit
9d54619870
@@ -426,9 +426,8 @@ 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;
|
||||
hw->max_listen_interval = MAX_LISTEN_INTERVAL;
|
||||
hw->max_rate_tries = MAX_RATE_TRIES;
|
||||
/* hw->max_rates = 1; */
|
||||
hw->sta_data_size = sizeof(struct rtl_sta_info);
|
||||
|
||||
|
Reference in New Issue
Block a user