From 50c8a14a840f91b7945b719926596af0cb100564 Mon Sep 17 00:00:00 2001 From: krw Date: Tue, 11 Sep 2018 18:16:26 +0000 Subject: [PATCH] Nuke unused LIST() ieee80211com_head. ok stsp@ --- sys/net80211/ieee80211.c | 7 +------ 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 { -- 2.20.1