[rt2x00-users] [PATCH] rt2x00: Convert AGC value from descriptor to RSSI (dBm)
helmut.schaa at googlemail.com
Fri Jul 2 15:18:08 AEST 2010
Am Donnerstag 01 Juli 2010 schrieb Ivo van Doorn:
> The RSSI values in the RXWI descriptor aren't true RSSI
> values. Instead they are more like the AGC values similar
> to rt61pci. And as such, it needs the same conversion
> before it can be passed to rt2x00lib/mac80211.
> This requires the struct queue_entry to be passed to
> rt2800_process_rxwi rather then the skb structure which
> is contained in the queue_entry. This is required to
> obtain the lna_gain information from the rt2x00_dev structure.
> This fixes connection problems when using wpa_supplicant
> which would try to connect to the worst AP's rather then the
> best ones.
> Signed-off-by: Ivo van Doorn <IvDoorn at gmail.com>
> + /*
> + * Convert the value from the descriptor into thhe RSSI value
Otherwise looks good to me and consistent with the legacy drivers
More information about the users