rtlwifi: Fix logic error in enter/exit power-save mode
PATCH v2 1/1 rtlwifi: Fix logic error in enter/exit power-save mode
In commit a269913c52ad ("rtlwifi: Rework rtl_lps_leave() and rtl_lps_enter() to use work queue"), the tests for enter/exit power-save mode were inverted. With this change applied, the wifi connection becomes much more stable.
---
Hi, Larry!
Because commit a269913c52ad is the first commit bring this problem, so maybe use above commit message is ok, right? And stable kernels 3.10-3.18 don't have commit fd09ff958777, but have a269913c52ad.
Thanks for suggestion concerning to good subject and commit message writing, it is harder than coding sometimes:)
Changes:
v1-v2:
1: Fix subject and commit message.
drivers/net/wireless/realtek/rtlwifi/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/realtek/rtlwifi/base.c +2 -2
@@ -1660,9 +1660,9 @@ void rtl_watchdog_wq_callback(void *data)if (((rtlpriv->link_info.num_rx_inperiod + rtlpriv->link_info.num_tx_inperiod) >8 ) || (rtlpriv->link_info.num_rx_inperiod >2 )) -rtl_lps_enter (hw); -else rtl_lps_leave (hw); +else +rtl_lps_enter (hw); } rtlpriv->link_info.num_rx_inperiod =0 ;
Signature · 5 lines
1.8.5.6.2.g3d8a54e.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 15 lines · Wang YanQing
In commit
a269913c52ad("rtlwifi: Reworkrtl_lps_leave()andrtl_lps_enter()to use work queue"), the tests for enter/exit power-save mode were inverted. With this change applied, the wifi connection becomes much more stable.Fixes a269913c52ad ("rtlwifi: Rework rtl_lps_leave() and rtl_lps_enter() to use work queue")Signed-off-by Wang YanQing <[email protected]>CC Stable <[email protected]> [3.10+]---
Hi, Larry!Because commit
a269913c52adis the first commit bring this problem, so maybe use above commit message is ok, right? And stable kernels 3.10-3.18 don't have commitfd09ff958777, but havea269913c52ad.
Quoted 6 lines
Thanks for suggestion concerning to good subject and commit message writing, it is harder than coding sometimes:)
Changes:
v1-v2:
1: Fix subject and commit message.
Yes, I agree that the commit message is hard.
Thanks,
Larry
Quoted 21 lines
drivers/net/wireless/realtek/rtlwifi/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/net/wireless/realtek/rtlwifi/base.c +2
-2@@ -1660,9 +1660,9 @@ void rtl_watchdog_wq_callback(void *data)if (((rtlpriv->link_info.num_rx_inperiod + rtlpriv->link_info.num_tx_inperiod) >8 ) || (rtlpriv->link_info.num_rx_inperiod >2 )) -rtl_lps_enter (hw); -else rtl_lps_leave (hw); +else +rtl_lps_enter (hw); } rtlpriv->link_info.num_rx_inperiod =0 ;
Quoted 9 lines · wang yanqing
In commit
a269913c52ad("rtlwifi: Reworkrtl_lps_leave()andrtl_lps_enter()to use work queue"), the tests for enter/exit power-save mode were inverted. With this change applied, the wifi connection becomes much more stable.Fixes a269913c52ad ("rtlwifi: Rework rtl_lps_leave() and rtl_lps_enter() to use work queue")Signed-off-by Wang YanQing <[email protected]>CC Stable <[email protected]> [3.10+]Acked-by Larry Finger <[email protected]>
Thanks, 1 patch applied to wireless-drivers-next.git:
873ffe154ae0 rtlwifi: Fix logic error in enter/exit power-save mode
Signature · 2 lines
Sent by pwcli https://patchwork.kernel.org/patch/8993841/