diff options
author | sam <sam@FreeBSD.org> | 2008-05-28 23:10:53 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2008-05-28 23:10:53 +0000 |
commit | 24e6f87d1f669ccf1ec84c9f5756542d09f3ef93 (patch) | |
tree | 18cfe47136d48ef7269922b95d0a11805ddacab0 /sys/net80211/ieee80211_scan.c | |
parent | 20001eb2e24e4ed036e6fc8a56b3d644856de4eb (diff) | |
download | FreeBSD-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_scan.c')
-rw-r--r-- | sys/net80211/ieee80211_scan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c index cec9673..e9c9246c 100644 --- a/sys/net80211/ieee80211_scan.c +++ b/sys/net80211/ieee80211_scan.c @@ -102,7 +102,7 @@ ieee80211_scan_attach(struct ieee80211com *ic) ic->ic_scan = NULL; return; } - callout_init_mtx(&ss->ss_scan_timer, &ic->ic_comlock, 0); + callout_init_mtx(&ss->ss_scan_timer, IEEE80211_LOCK_OBJ(ic), 0); ic->ic_scan = &ss->base; ic->ic_scan_curchan = scan_curchan; |