From f61dd564dd09ba27aae436b1d873ea2f50d0cf55 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 3 Apr 2004 03:33:02 +0000 Subject: [PATCH] do proper subclassing of node free+copy; the previous hack falls apart when the 802.11 layer does useful work Obtained from: madwifi --- sys/dev/ath/if_athvar.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h index 766163d69ef1..0d3598981881 100644 --- a/sys/dev/ath/if_athvar.h +++ b/sys/dev/ath/if_athvar.h @@ -93,6 +93,11 @@ struct ath_softc { struct ieee80211com sc_ic; /* IEEE 802.11 common */ int (*sc_newstate)(struct ieee80211com *, enum ieee80211_state, int); + void (*sc_node_free)(struct ieee80211com *, + struct ieee80211_node *); + void (*sc_node_copy)(struct ieee80211com *, + struct ieee80211_node *, + const struct ieee80211_node *); device_t sc_dev; bus_space_tag_t sc_st; /* bus space tag */ bus_space_handle_t sc_sh; /* bus space handle */