summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-05-28 23:10:53 +0000
committersam <sam@FreeBSD.org>2008-05-28 23:10:53 +0000
commit24e6f87d1f669ccf1ec84c9f5756542d09f3ef93 (patch)
tree18cfe47136d48ef7269922b95d0a11805ddacab0 /sys/net80211/ieee80211.c
parent20001eb2e24e4ed036e6fc8a56b3d644856de4eb (diff)
downloadFreeBSD-src-24e6f87d1f669ccf1ec84c9f5756542d09f3ef93.zip
FreeBSD-src-24e6f87d1f669ccf1ec84c9f5756542d09f3ef93.tar.gz
Revise lock name handling:
o construct a name for the com lock as done for other locks o pass the device name to IEEE80211_LOCK_INIT so the mtx name is constructed as foo_com_lock o introduce *_LOCK_OBJ macro's to hide the lock contents and minimize redundant code
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index fbea173..ca4113a 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -220,7 +220,7 @@ ieee80211_ifattach(struct ieee80211com *ic)
KASSERT(ifp->if_type == IFT_IEEE80211, ("if_type %d", ifp->if_type));
- IEEE80211_LOCK_INIT(ic, "ieee80211com");
+ IEEE80211_LOCK_INIT(ic, ifp->if_xname);
TAILQ_INIT(&ic->ic_vaps);
/*
* Fill in 802.11 available channel set, mark all
OpenPOWER on IntegriCloud