Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Commit 2bf127a

Browse files
sgruszkalinvjw
authored andcommitted
rt2400pci: fix RSSI read
RSSI value is provided on word3 not on word2. Cc: [email protected] Signed-off-by: Stanislaw Gruszka <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 7ede612 commit 2bf127a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/rt2x00/rt2400pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1261,7 +1261,7 @@ static void rt2400pci_fill_rxdone(struct queue_entry *entry,
12611261
*/
12621262
rxdesc->timestamp = ((u64)rx_high << 32) | rx_low;
12631263
rxdesc->signal = rt2x00_get_field32(word2, RXD_W2_SIGNAL) & ~0x08;
1264-
rxdesc->rssi = rt2x00_get_field32(word2, RXD_W3_RSSI) -
1264+
rxdesc->rssi = rt2x00_get_field32(word3, RXD_W3_RSSI) -
12651265
entry->queue->rt2x00dev->rssi_offset;
12661266
rxdesc->size = rt2x00_get_field32(word0, RXD_W0_DATABYTE_COUNT);
12671267

0 commit comments

Comments
 (0)