summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-01-24 20:38:26 +0000
committersam <sam@FreeBSD.org>2005-01-24 20:38:26 +0000
commitd07ff12dc96a1f4b81be04db2b5826024cd873d1 (patch)
tree62d2bc05ed8f1479f4076e18b0b34e5ba234ea3f
parentfb92987525aed19726f9107ad33b16afe892cbaa (diff)
downloadFreeBSD-src-d07ff12dc96a1f4b81be04db2b5826024cd873d1.zip
FreeBSD-src-d07ff12dc96a1f4b81be04db2b5826024cd873d1.tar.gz
add macros to convert between txop's and usecs
-rw-r--r--sys/net80211/ieee80211_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_proto.h b/sys/net80211/ieee80211_proto.h
index aecccb3..43708ef 100644
--- a/sys/net80211/ieee80211_proto.h
+++ b/sys/net80211/ieee80211_proto.h
@@ -179,6 +179,8 @@ struct wmeParams {
u_int8_t wmep_txopLimit;
u_int8_t wmep_noackPolicy; /* 0 (ack), 1 (no ack) */
};
+#define IEEE80211_TXOP_TO_US(_txop) ((_txop)<<5)
+#define IEEE80211_US_TO_TXOP(_us) ((_us)>>5)
struct chanAccParams {
u_int8_t cap_info; /* version of the current set */
OpenPOWER on IntegriCloud