wifi: rtlwifi: Ignore IEEE80211_CONF_CHANGE_RETRY_LIMITS
PATCH 1/1 wifi: rtlwifi: Ignore IEEE80211_CONF_CHANGE_RETRY_LIMITS
Since commit 0a44dfc07074 ("wifi: mac80211: simplify non-chanctx drivers") ieee80211_hw_config() is no longer called with changed = ~0. rtlwifi relied on ~0 in order to ignore the default retry limits of 4/7, preferring 48/48 in station mode and 7/7 in AP/IBSS.
RTL8192DU has a lot of packet loss with the default limits from mac80211. Fix it by ignoring IEEE80211_CONF_CHANGE_RETRY_LIMITS completely, because it's the simplest solution.
--- drivers/net/wireless/realtek/rtlwifi/core.c | 15 --------------- 1 file changed, 15 deletions(-)
drivers/net/wireless/realtek/rtlwifi/core.c +0 -15
@@ -633,21 +633,6 @@ static int rtl_op_config(struct ieee80211_hw *hw, u32 changed) } } -if (changed &IEEE80211_CONF_CHANGE_RETRY_LIMITS ) { -rtl_dbg (rtlpriv,COMP_MAC80211 ,DBG_LOUD , -"IEEE80211_CONF_CHANGE_RETRY_LIMITS %x\n" , - hw->conf.long_frame_max_tx_count); -/* brought up everything changes (changed == ~0) indicates first -* open, so use our default value instead of that of wiphy. -*/ -if (changed != ~0 ) { - mac->retry_long = hw->conf.long_frame_max_tx_count; - mac->retry_short = hw->conf.long_frame_max_tx_count; - rtlpriv->cfg->ops->set_hw_reg (hw,HW_VAR_RETRY_LIMIT , - (u8 *)(&hw->conf.long_frame_max_tx_count)); - } - } -if (changed &IEEE80211_CONF_CHANGE_CHANNEL && !rtlpriv->proximity.proxim_on) {struct ieee80211_channel *channel = hw->conf.chandef.chan;
Signature · 1 line
2.45.1
Quoted 5 lines · Bitterblue Smith
Since commit
0a44dfc07074("wifi: mac80211: simplify non-chanctx drivers")ieee80211_hw_config()is no longer called with changed = ~0. rtlwifi relied on ~0 in order to ignore the default retry limits of 4/7, preferring 48/48 in station mode and 7/7 in AP/IBSS.
Quoted 7 lines
RTL8192DU has a lot of packet loss with the default limits from mac80211. Fix it by ignoring
IEEE80211_CONF_CHANGE_RETRY_LIMITScompletely, because it's the simplest solution.Cc [email protected] # 6.9.xSigned-off-by Bitterblue Smith <[email protected]>
Ping, should this go to v6.10? If you agree, ack and assign it to me on patchwork. I'll then take it to wireless tree.
But feel free to take it to rtw-next as well, your call.
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Quoted 7 lines · Kalle Valo
Quoted 5 lines · Bitterblue Smith
Since commit
0a44dfc07074("wifi: mac80211: simplify non-chanctx drivers")ieee80211_hw_config()is no longer called with changed = ~0. rtlwifi relied on ~0 in order to ignore the default retry limits of 4/7, preferring 48/48 in station mode and 7/7 in AP/IBSS.
Quoted 7 lines
Quoted 7 lines
RTL8192DU has a lot of packet loss with the default limits from mac80211. Fix it by ignoring
IEEE80211_CONF_CHANGE_RETRY_LIMITScompletely, because it's the simplest solution.Cc [email protected] # 6.9.xSigned-off-by Bitterblue Smith <[email protected]>
Quoted 6 lines
Ping, should this go to v6.10? If you agree, ack and assign it to me on patchwork. I'll then take it to wireless tree.
But feel free to take it to rtw-next as well, your call.
Please take it to v6.10, and assign it to you. Thanks.
Quoted 5 lines · Bitterblue Smith
Since commit
0a44dfc07074("wifi: mac80211: simplify non-chanctx drivers")ieee80211_hw_config()is no longer called with changed = ~0. rtlwifi relied on ~0 in order to ignore the default retry limits of 4/7, preferring 48/48 in station mode and 7/7 in AP/IBSS.
Quoted 8 lines
RTL8192DU has a lot of packet loss with the default limits from mac80211. Fix it by ignoring
IEEE80211_CONF_CHANGE_RETRY_LIMITScompletely, because it's the simplest solution.Cc [email protected] # 6.9.xSigned-off-by Bitterblue Smith <[email protected]>Acked-by Ping-Ke Shih <[email protected]>
Patch applied to wireless.git, thanks.
819bda58e77b wifi: rtlwifi: Ignore IEEE80211_CONF_CHANGE_RETRY_LIMITS
Signature · 3 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches