mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
rtlwifi: rtl8192c: Prevent reconnect attempts if not connected
commit 8fd77aec1a upstream.
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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a4b29f1bd1
commit
cfce18a787
|
|
@ -1427,7 +1427,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user