diff --git a/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch b/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch new file mode 100644 index 00000000000..dba087cd575 --- /dev/null +++ b/packages/linux/patches/3.10/linux-999.01-Support-for-cheap-Ralink-3070-WiFi-plug.patch @@ -0,0 +1,72 @@ +commit 073af93346306a0e079c161e3ed8dd263fef0b20 +Author: Stefan Saraev +Date: Sat Jul 13 19:31:03 2013 +0300 + + Support for cheap Ralink 3070 WiFi plug + + source: http://www.geekamole.com/2013/rt2800usb-fix-for-ralinkmediatek-3070-gentoo-linux/ + +diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h +index a7630d5..9504d45 100644 +--- a/drivers/net/wireless/rt2x00/rt2800.h ++++ b/drivers/net/wireless/rt2x00/rt2800.h +@@ -69,6 +69,7 @@ + #define RF3320 0x000b + #define RF3322 0x000c + #define RF3053 0x000d ++#define RF3070 0x3070 + #define RF5592 0x000f + #define RF3290 0x3290 + #define RF5360 0x5360 +diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c +index 72f32e5..3e18df4 100644 +--- a/drivers/net/wireless/rt2x00/rt2800lib.c ++++ b/drivers/net/wireless/rt2x00/rt2800lib.c +@@ -2599,6 +2599,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, + break; + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -2615,6 +2616,7 @@ static void rt2800_config_channel(struct rt2x00_dev *rt2x00dev, + rt2x00_rf(rt2x00dev, RF3322) || + rt2x00_rf(rt2x00dev, RF5360) || + rt2x00_rf(rt2x00dev, RF5370) || ++ rt2x00_rf(rt2x00dev, RF3070) || + rt2x00_rf(rt2x00dev, RF5372) || + rt2x00_rf(rt2x00dev, RF5390) || + rt2x00_rf(rt2x00dev, RF5392)) { +@@ -3199,6 +3201,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) + case RF3290: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -5515,6 +5518,7 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) + case RF3322: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: +@@ -5969,6 +5973,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) + rt2x00_rf(rt2x00dev, RF3322) || + rt2x00_rf(rt2x00dev, RF5360) || + rt2x00_rf(rt2x00dev, RF5370) || ++ rt2x00_rf(rt2x00dev, RF3070) || + rt2x00_rf(rt2x00dev, RF5372) || + rt2x00_rf(rt2x00dev, RF5390) || + rt2x00_rf(rt2x00dev, RF5392)) { +@@ -6071,6 +6076,7 @@ static int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev) + case RF3290: + case RF5360: + case RF5370: ++ case RF3070: + case RF5372: + case RF5390: + case RF5392: