diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-09-11 18:16:27 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2018-09-11 18:16:27 +0000 |
commit | f13f11cf6000cdf29ab3eb4573a96355070140ae (patch) | |
tree | 2cd6c881aab1770324a9aba0c70883d0ff23eae0 /sys/net80211 | |
parent | fcc7823d118c7714b983b20aeb010f1590a98eb7 (diff) |
Nuke unused LIST() ieee80211com_head.
ok stsp@
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211.c | 7 | ||||
-rw-r--r-- | sys/net80211/ieee80211_var.h | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 3f5aba761e3..fc9411f5f8b 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211.c,v 1.69 2018/07/11 21:18:23 nayden Exp $ */ +/* $OpenBSD: ieee80211.c,v 1.70 2018/09/11 18:16:26 krw Exp $ */ /* $NetBSD: ieee80211.c,v 1.19 2004/06/06 05:45:29 dyoung Exp $ */ /*- @@ -65,9 +65,6 @@ int ieee80211_debug = 0; int ieee80211_cache_size = IEEE80211_CACHE_SIZE; -struct ieee80211com_head ieee80211com_head = - LIST_HEAD_INITIALIZER(ieee80211com_head); - void ieee80211_setbasicrates(struct ieee80211com *); int ieee80211_findrate(struct ieee80211com *, enum ieee80211_phymode, int); @@ -184,7 +181,6 @@ ieee80211_ifattach(struct ifnet *ifp) ic->ic_bmissthres = 7; /* default 7 beacons */ ic->ic_dtim_period = 1; /* all TIMs are DTIMs */ - LIST_INSERT_HEAD(&ieee80211com_head, ic, ic_list); ieee80211_node_attach(ifp); ieee80211_proto_attach(ifp); @@ -205,7 +201,6 @@ ieee80211_ifdetach(struct ifnet *ifp) ieee80211_proto_detach(ifp); ieee80211_crypto_detach(ifp); ieee80211_node_detach(ifp); - LIST_REMOVE(ic, ic_list); ifmedia_delete_instance(&ic->ic_media, IFM_INST_ANY); ether_ifdetach(ifp); } diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h index 9fc5c736e65..ec0e0755dbf 100644 --- a/sys/net80211/ieee80211_var.h +++ b/sys/net80211/ieee80211_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_var.h,v 1.90 2018/09/10 08:26:39 phessler Exp $ */ +/* $OpenBSD: ieee80211_var.h,v 1.91 2018/09/11 18:16:26 krw Exp $ */ /* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */ /*- @@ -339,9 +339,6 @@ struct ieee80211com { #define ic_if ic_ac.ac_if #define ic_softc ic_if.if_softc -LIST_HEAD(ieee80211com_head, ieee80211com); -extern struct ieee80211com_head ieee80211com_head; - /* list of APs we want to automatically use */ /* all data is copied from struct ieee80211com */ struct ieee80211_ess { |