Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2017 02:11:16 +0000 (UTC)
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r312002 - in head/sys/dev/rtwn: rtl8188e rtl8192c
Message-ID:  <201701130211.v0D2BGUq092764@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevlo
Date: Fri Jan 13 02:11:16 2017
New Revision: 312002
URL: https://svnweb.freebsd.org/changeset/base/312002

Log:
  Increase retry count to 100 in r88e_fw_cmd() and r92c_fw_cmd().

Modified:
  head/sys/dev/rtwn/rtl8188e/r88e_fw.c
  head/sys/dev/rtwn/rtl8192c/r92c_fw.c

Modified: head/sys/dev/rtwn/rtl8188e/r88e_fw.c
==============================================================================
--- head/sys/dev/rtwn/rtl8188e/r88e_fw.c	Fri Jan 13 01:39:19 2017	(r312001)
+++ head/sys/dev/rtwn/rtl8188e/r88e_fw.c	Fri Jan 13 02:11:16 2017	(r312002)
@@ -69,7 +69,7 @@ r88e_fw_cmd(struct rtwn_softc *sc, uint8
 	}
 
 	/* Wait for current FW box to be empty. */
-	for (ntries = 0; ntries < 50; ntries++) {
+	for (ntries = 0; ntries < 100; ntries++) {
 		if (!(rtwn_read_1(sc, R92C_HMETFR) & (1 << sc->fwcur)))
 			break;
 		rtwn_delay(sc, 2000);

Modified: head/sys/dev/rtwn/rtl8192c/r92c_fw.c
==============================================================================
--- head/sys/dev/rtwn/rtl8192c/r92c_fw.c	Fri Jan 13 01:39:19 2017	(r312001)
+++ head/sys/dev/rtwn/rtl8192c/r92c_fw.c	Fri Jan 13 02:11:16 2017	(r312002)
@@ -80,7 +80,7 @@ r92c_fw_cmd(struct rtwn_softc *sc, uint8
 	}
 
 	/* Wait for current FW box to be empty. */
-	for (ntries = 0; ntries < 50; ntries++) {
+	for (ntries = 0; ntries < 100; ntries++) {
 		if (!(rtwn_read_1(sc, R92C_HMETFR) & (1 << sc->fwcur)))
 			break;
 		rtwn_delay(sc, 2000);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701130211.v0D2BGUq092764>