kernel: Add patch to make RT5592 chipsets more stable
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Dec 2014 13:17:06 +0000 (14:17 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Dec 2014 13:17:06 +0000 (14:17 +0100)
Reduces massive power consumption which makes the module
and USB bus very unstable.

From: http://git.ipfire.org/?p=ipfire-2.x.git;a=commit;h=e71475c13afeef652ae94a545978e354e21eb03e

kernel/kernel.nm
kernel/patches/linux-3.14.25-rt5592_no_special_txop_init.patch [new file with mode: 0644]

index 9ad7578..eec42b0 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = kernel
 version    = 3.17.4
-release    = 1
+release    = 2
 thisapp    = linux-%{version}
 
 maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
diff --git a/kernel/patches/linux-3.14.25-rt5592_no_special_txop_init.patch b/kernel/patches/linux-3.14.25-rt5592_no_special_txop_init.patch
new file mode 100644 (file)
index 0000000..fe30c9e
--- /dev/null
@@ -0,0 +1,13 @@
+diff -Naur linux-3.14.25.org/drivers/net/wireless/rt2x00/rt2800lib.c linux-3.14.25/drivers/net/wireless/rt2x00/rt2800lib.c
+--- linux-3.14.25.org/drivers/net/wireless/rt2x00/rt2800lib.c  2014-11-21 18:23:44.000000000 +0100
++++ linux-3.14.25/drivers/net/wireless/rt2x00/rt2800lib.c      2014-12-03 11:30:58.813355413 +0100
+@@ -4847,7 +4847,8 @@
+       rt2x00_set_field32(&reg, TXOP_CTRL_CFG_EXT_CWMIN, 0);
+       rt2800_register_write(rt2x00dev, TXOP_CTRL_CFG, reg);
+-      reg = rt2x00_rt(rt2x00dev, RT5592) ? 0x00000082 : 0x00000002;
++//    reg = rt2x00_rt(rt2x00dev, RT5592) ? 0x00000082 : 0x00000002;
++      reg = 0x00000002;
+       rt2800_register_write(rt2x00dev, TXOP_HLDR_ET, reg);
+       rt2800_register_read(rt2x00dev, TX_RTS_CFG, &reg);