[PATCH v3] driver_nl80211: report invalid signal and noise when info is unavailable

Brian Norris briannorris at chromium.org
Thu Nov 5 16:21:47 EST 2020


On Mon, Nov 2, 2020 at 11:55 PM Andrei Otcheretianski
<andrei.otcheretianski at intel.com> wrote:
> From: Avraham Stern <avraham.stern at intel.com>
>
> When the driver sends a CQM RSSI threshold event, wpa_supplicant
> queries the driver for the signal and noise values. However, it
> is possible that by that time the station has already disconnected
> from the AP, so these values are no longer valid. In this case,
> indicate that these values are invalid by setting them to
> WPA_INVALID_NOISE.
> Previously a value of 0 would be reported, which may be confusing as
> this is a valid value.
> Since nl80211_get_link_signal() and nl80211_get_link_noise() already
> set invalid values for a case of failure, just use the value set by
> these functions even if they fail.
>
> Signed-off-by: Avraham Stern <avraham.stern at intel.com>
> Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>

Thanks!

Reviewed-by: Brian Norris <briannorris at chromium.org>



More information about the Hostap mailing list