diff options
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2800usb.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800usb.c b/drivers/net/wireless/rt2x00/rt2800usb.c index 8cfb5573b883..15aed2916e0c 100644 --- a/drivers/net/wireless/rt2x00/rt2800usb.c +++ b/drivers/net/wireless/rt2x00/rt2800usb.c | |||
@@ -226,6 +226,12 @@ static void rt2800usb_rf_write(struct rt2x00_dev *rt2x00dev, | |||
226 | mutex_unlock(&rt2x00dev->csr_mutex); | 226 | mutex_unlock(&rt2x00dev->csr_mutex); |
227 | } | 227 | } |
228 | 228 | ||
229 | static inline void rt2800_rf_write(struct rt2x00_dev *rt2x00dev, | ||
230 | const unsigned int word, const u32 value) | ||
231 | { | ||
232 | rt2800usb_rf_write(rt2x00dev, word, value); | ||
233 | } | ||
234 | |||
229 | static void rt2800usb_mcu_request(struct rt2x00_dev *rt2x00dev, | 235 | static void rt2800usb_mcu_request(struct rt2x00_dev *rt2x00dev, |
230 | const u8 command, const u8 token, | 236 | const u8 command, const u8 token, |
231 | const u8 arg0, const u8 arg1) | 237 | const u8 arg0, const u8 arg1) |
@@ -280,7 +286,7 @@ static const struct rt2x00debug rt2800usb_rt2x00debug = { | |||
280 | }, | 286 | }, |
281 | .rf = { | 287 | .rf = { |
282 | .read = rt2x00_rf_read, | 288 | .read = rt2x00_rf_read, |
283 | .write = rt2800usb_rf_write, | 289 | .write = rt2800_rf_write, |
284 | .word_base = RF_BASE, | 290 | .word_base = RF_BASE, |
285 | .word_size = sizeof(u32), | 291 | .word_size = sizeof(u32), |
286 | .word_count = RF_SIZE / sizeof(u32), | 292 | .word_count = RF_SIZE / sizeof(u32), |
@@ -747,24 +753,24 @@ static void rt2800usb_config_channel_rt2x(struct rt2x00_dev *rt2x00dev, | |||
747 | 753 | ||
748 | rt2x00_set_field32(&rf->rf4, RF4_HT40, conf_is_ht40(conf)); | 754 | rt2x00_set_field32(&rf->rf4, RF4_HT40, conf_is_ht40(conf)); |
749 | 755 | ||
750 | rt2800usb_rf_write(rt2x00dev, 1, rf->rf1); | 756 | rt2800_rf_write(rt2x00dev, 1, rf->rf1); |
751 | rt2800usb_rf_write(rt2x00dev, 2, rf->rf2); | 757 | rt2800_rf_write(rt2x00dev, 2, rf->rf2); |
752 | rt2800usb_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); | 758 | rt2800_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); |
753 | rt2800usb_rf_write(rt2x00dev, 4, rf->rf4); | 759 | rt2800_rf_write(rt2x00dev, 4, rf->rf4); |
754 | 760 | ||
755 | udelay(200); | 761 | udelay(200); |
756 | 762 | ||
757 | rt2800usb_rf_write(rt2x00dev, 1, rf->rf1); | 763 | rt2800_rf_write(rt2x00dev, 1, rf->rf1); |
758 | rt2800usb_rf_write(rt2x00dev, 2, rf->rf2); | 764 | rt2800_rf_write(rt2x00dev, 2, rf->rf2); |
759 | rt2800usb_rf_write(rt2x00dev, 3, rf->rf3 | 0x00000004); | 765 | rt2800_rf_write(rt2x00dev, 3, rf->rf3 | 0x00000004); |
760 | rt2800usb_rf_write(rt2x00dev, 4, rf->rf4); | 766 | rt2800_rf_write(rt2x00dev, 4, rf->rf4); |
761 | 767 | ||
762 | udelay(200); | 768 | udelay(200); |
763 | 769 | ||
764 | rt2800usb_rf_write(rt2x00dev, 1, rf->rf1); | 770 | rt2800_rf_write(rt2x00dev, 1, rf->rf1); |
765 | rt2800usb_rf_write(rt2x00dev, 2, rf->rf2); | 771 | rt2800_rf_write(rt2x00dev, 2, rf->rf2); |
766 | rt2800usb_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); | 772 | rt2800_rf_write(rt2x00dev, 3, rf->rf3 & ~0x00000004); |
767 | rt2800usb_rf_write(rt2x00dev, 4, rf->rf4); | 773 | rt2800_rf_write(rt2x00dev, 4, rf->rf4); |
768 | } | 774 | } |
769 | 775 | ||
770 | static void rt2800usb_config_channel_rt3x(struct rt2x00_dev *rt2x00dev, | 776 | static void rt2800usb_config_channel_rt3x(struct rt2x00_dev *rt2x00dev, |