summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_freebsd.h
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-04-14 18:29:40 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-04-14 18:29:40 +0000
commita3b4a561d7b915bdf75d562720f61a9e468e08dc (patch)
treea3633a7cba0320cc4670f6513d1d35a578f082bb /sys/net80211/ieee80211_freebsd.h
parent9c5b156d2780bc420277c4d93f8fddb892ee011f (diff)
downloadFreeBSD-src-a3b4a561d7b915bdf75d562720f61a9e468e08dc.zip
FreeBSD-src-a3b4a561d7b915bdf75d562720f61a9e468e08dc.tar.gz
Make this code a little more portable by wrapping the mtx calls into
macros. MFC after: 1 week
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.h')
-rw-r--r--sys/net80211/ieee80211_freebsd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h
index 861ac51..abfc2c0 100644
--- a/sys/net80211/ieee80211_freebsd.h
+++ b/sys/net80211/ieee80211_freebsd.h
@@ -148,6 +148,16 @@ typedef struct mtx acl_lock_t;
mtx_assert((&(_as)->as_lock), MA_OWNED)
/*
+ * Scan table definitions.
+ */
+typedef struct mtx ieee80211_scan_table_lock_t;
+#define IEEE80211_SCAN_TABLE_LOCK_INIT(_st, _name) \
+ mtx_init(&(_st)->st_lock, _name, "802.11 scan table", MTX_DEF)
+#define IEEE80211_SCAN_TABLE_LOCK_DESTROY(_st) mtx_destroy(&(_st)->st_lock)
+#define IEEE80211_SCAN_TABLE_LOCK(_st) mtx_lock(&(_st)->st_lock)
+#define IEEE80211_SCAN_TABLE_UNLOCK(_st) mtx_unlock(&(_st)->st_lock)
+
+/*
* Node reference counting definitions.
*
* ieee80211_node_initref initialize the reference count to 1
OpenPOWER on IntegriCloud