Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1395171 > unrolled thread
| Started by | Wang YanQing <udknight@gmail.com> |
|---|---|
| First post | 2016-05-05 17:10 +0200 |
| Last post | 2016-05-11 21:00 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH v2] rtlwifi: Remove double check for cnt_after_linked Wang YanQing <udknight@gmail.com> - 2016-05-05 17:10 +0200
Re: [v2] rtlwifi: Remove double check for cnt_after_linked Kalle Valo <kvalo@codeaurora.org> - 2016-05-11 21:00 +0200
| From | Wang YanQing <udknight@gmail.com> |
|---|---|
| Date | 2016-05-05 17:10 +0200 |
| Subject | [PATCH v2] rtlwifi: Remove double check for cnt_after_linked |
| Message-ID | <rvt4C-2cn-7@gated-at.bofh.it> |
rtl_lps_enter does two successive check for cnt_after_linked
to make sure some time has elapsed after linked. The second
check isn't necessary, because if cnt_after_linked is bigger
than 5, it is bigger than 2 of course!
This patch remove the second check code.
Signed-off-by: Wang YanQing <udknight@gmail.com>
---
Changes
v1-v2:
1: rewrite subject and commit message.
2: fix issues report by checkpatch.pl.
drivers/net/wireless/realtek/rtlwifi/ps.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/ps.c b/drivers/net/wireless/realtek/rtlwifi/ps.c
index b69321d..93579ca 100644
--- a/drivers/net/wireless/realtek/rtlwifi/ps.c
+++ b/drivers/net/wireless/realtek/rtlwifi/ps.c
@@ -443,14 +443,10 @@ void rtl_lps_enter(struct ieee80211_hw *hw)
spin_lock_irqsave(&rtlpriv->locks.lps_lock, flag);
- /* Idle for a while if we connect to AP a while ago. */
- if (mac->cnt_after_linked >= 2) {
- if (ppsc->dot11_psmode == EACTIVE) {
- RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD,
- "Enter 802.11 power save mode...\n");
-
- rtl_lps_set_psmode(hw, EAUTOPS);
- }
+ if (ppsc->dot11_psmode == EACTIVE) {
+ RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD,
+ "Enter 802.11 power save mode...\n");
+ rtl_lps_set_psmode(hw, EAUTOPS);
}
spin_unlock_irqrestore(&rtlpriv->locks.lps_lock, flag);
--
1.8.5.6.2.g3d8a54e.dirty
[toc] | [next] | [standalone]
| From | Kalle Valo <kvalo@codeaurora.org> |
|---|---|
| Date | 2016-05-11 21:00 +0200 |
| Subject | Re: [v2] rtlwifi: Remove double check for cnt_after_linked |
| Message-ID | <rxHwu-5FD-7@gated-at.bofh.it> |
| In reply to | #1395171 |
wang yanqing <udknight@gmail.com> wrote: > rtl_lps_enter does two successive check for cnt_after_linked > to make sure some time has elapsed after linked. The second > check isn't necessary, because if cnt_after_linked is bigger > than 5, it is bigger than 2 of course! > > This patch remove the second check code. > > Signed-off-by: Wang YanQing <udknight@gmail.com> Thanks, 1 patch applied to wireless-drivers-next.git: 976aff5fc94b rtlwifi: Remove double check for cnt_after_linked -- Sent by pwcli https://patchwork.kernel.org/patch/9025161/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web