diff options
author | avos <avos@FreeBSD.org> | 2015-12-13 20:48:24 +0000 |
---|---|---|
committer | avos <avos@FreeBSD.org> | 2015-12-13 20:48:24 +0000 |
commit | 093224c4462002b02a08f5b23e361e7983b9fee1 (patch) | |
tree | b814d4d67532060ec79203f4a600bc5f31291fbd /sys/net80211 | |
parent | 6000e4fde45e8fe83b65b851e2f7347b4982d075 (diff) | |
download | FreeBSD-src-093224c4462002b02a08f5b23e361e7983b9fee1.zip FreeBSD-src-093224c4462002b02a08f5b23e361e7983b9fee1.tar.gz |
net80211: remove hardcoded slot time durations from drivers
- Add IEEE80211_GET_SLOTTIME(ic) macro.
- Use predefined macroses to set slot time.
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4044
Diffstat (limited to 'sys/net80211')
-rw-r--r-- | sys/net80211/ieee80211_phy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_phy.h b/sys/net80211/ieee80211_phy.h index bf39cdd..cb6b358 100644 --- a/sys/net80211/ieee80211_phy.h +++ b/sys/net80211/ieee80211_phy.h @@ -53,6 +53,10 @@ #define IEEE80211_DUR_SHSLOT 9 /* ERP short slottime */ #define IEEE80211_DUR_OFDM_SLOT 9 /* OFDM slottime */ +#define IEEE80211_GET_SLOTTIME(ic) \ + ((ic->ic_flags & IEEE80211_F_SHSLOT) ? \ + IEEE80211_DUR_SHSLOT : IEEE80211_DUR_SLOT) + /* * DIFS (microseconds). */ |