diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-04-01 18:48:12 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-04-01 18:48:12 +0300 |
commit | baf513d6952c67b94925c5e82291be19f858ad1e (patch) | |
tree | 72d718d3dfde76cdbe45a78e93fa414105507b56 /src/ap/utils.c | |
parent | 370b076197bccc4b6d6862b94861571dadc5c128 (diff) | |
download | external_wpa_supplicant_8_ti-baf513d6952c67b94925c5e82291be19f858ad1e.zip external_wpa_supplicant_8_ti-baf513d6952c67b94925c5e82291be19f858ad1e.tar.gz external_wpa_supplicant_8_ti-baf513d6952c67b94925c5e82291be19f858ad1e.tar.bz2 |
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>
Diffstat (limited to 'src/ap/utils.c')
-rw-r--r-- | src/ap/utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/utils.c b/src/ap/utils.c index 36c1182..3e9fc08 100644 --- a/src/ap/utils.c +++ b/src/ap/utils.c @@ -17,7 +17,8 @@ int hostapd_register_probereq_cb(struct hostapd_data *hapd, int (*cb)(void *ctx, const u8 *sa, const u8 *da, const u8 *bssid, - const u8 *ie, size_t ie_len), + const u8 *ie, size_t ie_len, + int ssi_signal), void *ctx) { struct hostapd_probereq_cb *n; |