From c9c933e78b7f78237d8012aa7fd7e0f113823c5a Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 15 Sep 2003 22:28:07 +0000 Subject: Generalize the per-node RSSI data so drivers can do more interesting things than record a single value. o add a per-node method for returning the "current RSSI" for a node o create a default method that returns ni_rssi which is the rssi for the last received frame o use the per-node "get rssi" method to return data for the RID's submitted by wicontrol, et. al. Loosely based on work by Tom Marshall for MADWIFI. --- sys/net80211/ieee80211_var.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net80211/ieee80211_var.h') diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index 187ab79..2546bb8 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -171,6 +171,8 @@ struct ieee80211com { void (*ic_node_copy)(struct ieee80211com *, struct ieee80211_node *, const struct ieee80211_node *); + u_int8_t (*ic_node_getrssi)(struct ieee80211com *, + struct ieee80211_node *); TAILQ_HEAD(, ieee80211_node) ic_node; /* information of all nodes */ LIST_HEAD(, ieee80211_node) ic_hash[IEEE80211_NODE_HASHSIZE]; u_int16_t ic_lintval; /* listen interval */ -- cgit v1.1