John W. Linville wrote: > On Wed, Dec 03, 2008 at 09:20:46PM -0600, Larry Finger wrote: >> Hin-Tak Leung wrote: >>> --- On Thu, 4/12/08, Larry Finger <Larry.Finger@xxxxxxxxxxxx> wrote: >>> >>>> The current wireless statistics for the RTL8187 poorly >>>> indicate the signal >>>> strength and quality. With testing, I found that the AGC >>>> value is inversely >>>> correlated with the strength as in the RTL8187B. By >>>> implementing a similar >>>> calculation, much more code becomes common to the two >>>> devices. >>>> >>>> Signed-off-by: Larry Finger >>>> <Larry.Finger@xxxxxxxxxxxx> >>>> Tested by: Martín Ernesto Barreyro >>>> <barreyromartin@xxxxxxxxx> >>>> --- >>> Acked-by: Hin-Tak Leung <htl10@xxxxxxxxxxxxxxxxxxxxx> >>> >>> Acually eveything to do with "quality" can be moved out of the if/then. >>> >>> I mean these 3 lines: >>> >>> + if (quality > 100) >>> + quality = 100; >>> + .... >>> + rx_status.qual = quality; >>> >>> You have removed "rx_status.qual = quality;" from the "then" part, but didn't put it back in the common portion afterwards? >>> >>> Also, what happened to "dev->max_signal = 65;" at the end? >> Thanks for the comments. I'll fix up the code and resubmit. >> >> The dev->max_signal is only needed if the IEEE80211_HW_SIGNAL_UNSPEC flag is >> used. Once we switch to IEEE80211_HW_SIGNAL_DBM, then the maximum is known. > > I'm dropping this patch from my mailbox. Is a new version of this > still coming? It is already in wireless-testing as commit b95e4bc3da1167bba718bc5. It was sent to you as "[PATCH V2] rtl8187: Improve wireless statistics for RTL8187" on Dec 3. The original should be dropped. Larry -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html