On 7/16/07, Hans Petter Selasky <[EMAIL PROTECTED]> wrote:
Hi,

Can someone answer me quick on this one:

In FreeBSD 7-current, I think I see some mistakes in "if_ural.c".

For example:

> #define URAL_RSSI(rssi)                                       \
>       ((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ?   \
>        ((rssi) - RAL_NOISE_FLOOR + RAL_RSSI_CORR) : 0)


Should there be a parenthesis here ??

Ah, yes, you are correct.  My fault.


> #define URAL_RSSI(rssi)                                       \
>       ((rssi) > (RAL_NOISE_FLOOR + RAL_RSSI_CORR) ?   \
>        ((rssi) - (RAL_NOISE_FLOOR + RAL_RSSI_CORR)) : 0)

Also I see that the basic rate set is set multiple times:

By "set_chan" and when the RUN state is entered! This does not make sense!

This does make sense:
1) It is actually "ack rate set", as according to Ralink's sample driver.
2) Even if it is "basic rate set", the value is not necessarily the
same when probing BSS or when joining a BSS.  The BSS that the STA has
joined (before ->RUN) may have different basic rate set than STA used
to do BSS probing.

Best Regards,
sephe

--
Live Free or Die
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to