Raizo62 / vwifi

Simulator of WiFi (802.11) interfaces to communicate between several Virtual Machines
GNU Lesser General Public License v3.0
57 stars 8 forks source link

cwifiserver.cc: Bound signal level to appropriate value #10

Closed jprestwo closed 1 year ago

jprestwo commented 1 year ago

If the distance between two clients is low it can result in the signal level being greater than zero. This doesn't make sense as dBm is always a negative value. On the client side passing a >0 value to the kernel as the signal results in extreme signal levels reported (likely due to a signed/unsigned conversion somewhere).

Check the calculated signal and if greater than zero bound to -10.

Raizo62 commented 1 year ago

Hi

Thank you for your contribution :-)