From d1c1984cf4f1da86da08ab5e3a7e790676d00547 Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sat, 7 Sep 2013 19:07:33 +0100 Subject: [PATCH] Support for cheap Ralink 3070 WiFi plug See: https://github.com/raspberrypi/linux/pull/321 --- drivers/net/wireless/rt2x00/rt2800.h | 1 + drivers/net/wireless/rt2x00/rt2800lib.c | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/drivers/net/wireless/rt2x00/rt2800.h b/drivers/net/wireless/rt2x00/rt2800.h index d78c495a86a0b2..bcb4c3cc9f0c68 100644 --- a/drivers/net/wireless/rt2x00/rt2800.h +++ b/drivers/net/wireless/rt2x00/rt2800.h @@ -70,6 +70,7 @@ #define RF3322 0x000c #define RF3053 0x000d #define RF5592 0x000f +#define RF3070 0x3070 #define RF3290 0x3290 #define RF5360 0x5360 #define RF5370 0x5370 diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 39d8863c73373e..09afbae205d1ab 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)) { @@ -3229,6 +3231,7 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) case RF3290: case RF5360: case RF5370: + case RF3070: case RF5372: case RF5390: case RF5392: @@ -5744,6 +5747,7 @@ static int rt2800_init_eeprom(struct rt2x00_dev *rt2x00dev) case RF3322: case RF5360: case RF5370: + case RF3070: case RF5372: case RF5390: case RF5392: @@ -6199,6 +6203,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)) { @@ -6301,6 +6306,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: