mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
rndis_wlan: disable stall workaround
Stall workaround doesn't work with bcm4320a devices like with bcm4320b. This workaround actually causes more stalls/device freeze on bcm4320a. Therefore disable stall workaround by default. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
c1f8ca1d83
commit
77593ae28c
1 changed files with 3 additions and 3 deletions
|
@ -83,11 +83,11 @@ MODULE_PARM_DESC(roamdelta,
|
|||
"set roaming tendency: 0=aggressive, 1=moderate, "
|
||||
"2=conservative (default: moderate)");
|
||||
|
||||
static int modparam_workaround_interval = 500;
|
||||
static int modparam_workaround_interval;
|
||||
module_param_named(workaround_interval, modparam_workaround_interval,
|
||||
int, 0444);
|
||||
MODULE_PARM_DESC(workaround_interval,
|
||||
"set stall workaround interval in msecs (default: 500)");
|
||||
"set stall workaround interval in msecs (0=disabled) (default: 0)");
|
||||
|
||||
|
||||
/* various RNDIS OID defs */
|
||||
|
@ -2550,7 +2550,7 @@ static void rndis_device_poller(struct work_struct *work)
|
|||
/* Workaround transfer stalls on poor quality links.
|
||||
* TODO: find right way to fix these stalls (as stalls do not happen
|
||||
* with ndiswrapper/windows driver). */
|
||||
if (priv->last_qual <= 25) {
|
||||
if (priv->param_workaround_interval > 0 && priv->last_qual <= 25) {
|
||||
/* Decrease stats worker interval to catch stalls.
|
||||
* faster. Faster than 400-500ms causes packet loss,
|
||||
* Slower doesn't catch stalls fast enough.
|
||||
|
|
Loading…
Reference in a new issue