From: Larry Finger <Larry.Finger@lwfinger.net>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org,
Larry Finger <Larry.Finger@lwfinger.net>,
netdev@vger.kernel.org, Stable <stable@vger.kernel.org>
Subject: [PATCH 01/12 NEXT] rtlwifi: rtl8192c: Prevent reconnect attempts if not connected
Date: Mon, 18 Nov 2013 11:11:25 -0600 [thread overview]
Message-ID: <1384794696-20314-2-git-send-email-Larry.Finger@lwfinger.net> (raw)
In-Reply-To: <1384794696-20314-1-git-send-email-Larry.Finger@lwfinger.net>
This driver has a watchdog timer that attempts to reconnect when beacon frames
are not seen for 6 seconds. This patch disables that reconnect whenever the
device has never been connected.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Stable <stable@vger.kernel.org>
---
drivers/net/wireless/rtlwifi/base.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: wireless-testing/drivers/net/wireless/rtlwifi/base.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/rtlwifi/base.c
+++ wireless-testing/drivers/net/wireless/rtlwifi/base.c
@@ -1437,7 +1437,8 @@ void rtl_watchdog_wq_callback(void *data
/* if we can't recv beacon for 6s, we should
* reconnect this AP
*/
- if (rtlpriv->link_info.roam_times >= 3) {
+ if ((rtlpriv->link_info.roam_times >= 3) &&
+ !is_zero_ether_addr(rtlpriv->mac80211.bssid)) {
RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
"AP off, try to reconnect now\n");
rtlpriv->link_info.roam_times = 0;
next prev parent reply other threads:[~2013-11-18 17:11 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-18 17:11 [PATCH 00/12] Fix various problems with the rtl8192cu driver Larry Finger
2013-11-18 17:11 ` Larry Finger [this message]
2013-11-18 17:11 ` [PATCH 02/12 NEXT] rtlwifi: rtl8192cu: Add new firmware Larry Finger
2013-11-18 17:11 ` [PATCH 04/12 NEXT] rtlwifi: Set the link state Larry Finger
2013-11-18 17:11 ` [PATCH 05/12 NEXT] rtlwifi: rtl8192c: Add new definitions in the dm_common header Larry Finger
2013-11-18 17:11 ` [PATCH 06/12 NEXT] rtlwifi: Increase the RX queue length for USB drivers Larry Finger
2013-11-18 17:11 ` [PATCH 07/12 NEXT] rtlwifi: Update beacon statistics for USB driver Larry Finger
2013-11-18 17:11 ` [PATCH 08/12 NEXT] rtlwifi: rtl8192c: Add routines to save/restore power index registers Larry Finger
2013-11-18 17:11 ` [PATCH 09/12 NEXT] rtlwifi: rtl8192cu: Update the " Larry Finger
[not found] ` <1384794696-20314-1-git-send-email-Larry.Finger-tQ5ms3gMjBLk1uMJSBkQmQ@public.gmane.org>
2013-11-18 17:11 ` [PATCH 03/12 NEXT] rtlwifi: Redo register save locations Larry Finger
2013-11-18 17:11 ` [PATCH 10/12 NEXT] rtlwifi: rtl8192cu: Fix some code in RF handling Larry Finger
2013-11-18 17:11 ` [PATCH 11/12 NEXT] rtlwifi: Add missing code to PWDB statics routine Larry Finger
2013-11-18 17:11 ` [PATCH 12/12 NEXT] rtlwifi: rtl8192c: Update dynamic gain calculations Larry Finger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1384794696-20314-2-git-send-email-Larry.Finger@lwfinger.net \
--to=larry.finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox