Skip to content

Commit

Permalink
rt2800usb: fix rt2800usb_rfcsr_read()
Browse files Browse the repository at this point in the history
The driver should write the read request into RF_CSR_CFG register
and not BBP_CSR_CFG one in rt2800usb_rfcsr_read().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Acked-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and John W. Linville committed Nov 4, 2009
1 parent f44eafa commit a8ea2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2800usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static void rt2800usb_rfcsr_read(struct rt2x00_dev *rt2x00dev,
rt2x00_set_field32(&reg, RF_CSR_CFG_WRITE, 0);
rt2x00_set_field32(&reg, RF_CSR_CFG_BUSY, 1);

rt2x00usb_register_write_lock(rt2x00dev, BBP_CSR_CFG, reg);
rt2x00usb_register_write_lock(rt2x00dev, RF_CSR_CFG, reg);

WAIT_FOR_RFCSR(rt2x00dev, &reg);
}
Expand Down

0 comments on commit a8ea2b2

Please sign in to comment.