path: root/src/ap/beacon.h
diff options
authorJohannes Berg <johannes.berg@intel.com>2012-04-01 15:48:12 (GMT)
committerJouni Malinen <j@w1.fi>2012-04-01 15:48:12 (GMT)
commitbaf513d6952c67b94925c5e82291be19f858ad1e (patch)
tree72d718d3dfde76cdbe45a78e93fa414105507b56 /src/ap/beacon.h
parent370b076197bccc4b6d6862b94861571dadc5c128 (diff)
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/beacon.h')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ap/beacon.h b/src/ap/beacon.h
index 0dd6021..37f10d2 100644
--- a/src/ap/beacon.h
+++ b/src/ap/beacon.h
@@ -19,7 +19,8 @@
struct ieee80211_mgmt;
void handle_probe_req(struct hostapd_data *hapd,
- const struct ieee80211_mgmt *mgmt, size_t len);
+ const struct ieee80211_mgmt *mgmt, size_t len,
+ int ssi_signal);
void ieee802_11_set_beacon(struct hostapd_data *hapd);
void ieee802_11_set_beacons(struct hostapd_iface *iface);
void ieee802_11_update_beacons(struct hostapd_iface *iface);