]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/events.c
Pass signal strength through, fix units
authorJohannes Berg <johannes.berg@intel.com>
Sun, 1 Apr 2012 15:48:12 +0000 (18:48 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 1 Apr 2012 15:48:12 +0000 (18:48 +0300)
commitbaf513d6952c67b94925c5e82291be19f858ad1e
tree72d718d3dfde76cdbe45a78e93fa414105507b56
parent370b076197bccc4b6d6862b94861571dadc5c128
Pass signal strength through, fix units

The signal strength is currently never used as the only driver reporting
it is nl80211 which uses IEEE80211_RADIOTAP_DB_ANTSIGNAL which is never
populated by the kernel. The kernel will (soon) populate
IEEE80211_RADIOTAP_DBM_ANTSIGNAL instead though, so use that.

Also, since it was never really populated, we can redefine the signal
field to be in dBm units only.

My next patch will also require knowing the signal strength of probe
requests throughout the code (where available), so add it to the
necessary APIs.

Signed-hostap: Johannes Berg <johannes.berg@intel.com>
13 files changed:
src/ap/beacon.c
src/ap/beacon.h
src/ap/drv_callbacks.c
src/ap/hostapd.h
src/ap/ieee802_11.c
src/ap/utils.c
src/ap/wps_hostapd.c
src/drivers/driver.h
src/drivers/driver_nl80211.c
wpa_supplicant/ap.c
wpa_supplicant/events.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/p2p_supplicant.h