diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2017-07-03 09:21:10 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2017-07-03 09:21:10 +0000 |
commit | c9462cd1540df2ea28583e593c9a7de951053cf8 (patch) | |
tree | db778c510dc5d1f527e275857f10d032f2f7c6c8 /sys/dev/ic/rt2560.c | |
parent | efb77a426f47d40bbb56edd75dbbfb5eeb13086b (diff) |
Replace slot time durations with macros.
ok stsp@
Diffstat (limited to 'sys/dev/ic/rt2560.c')
-rw-r--r-- | sys/dev/ic/rt2560.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ic/rt2560.c b/sys/dev/ic/rt2560.c index 87f1d5fddb9..d951ec9b8ee 100644 --- a/sys/dev/ic/rt2560.c +++ b/sys/dev/ic/rt2560.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rt2560.c,v 1.82 2017/01/22 10:17:38 dlg Exp $ */ +/* $OpenBSD: rt2560.c,v 1.83 2017/07/03 09:21:09 kevlo Exp $ */ /*- * Copyright (c) 2005, 2006 @@ -2356,7 +2356,8 @@ rt2560_set_slottime(struct rt2560_softc *sc) uint16_t sifs, pifs, difs, eifs; uint32_t tmp; - slottime = (ic->ic_flags & IEEE80211_F_SHSLOT) ? 9 : 20; + slottime = (ic->ic_flags & IEEE80211_F_SHSLOT) ? + IEEE80211_DUR_DS_SHSLOT : IEEE80211_DUR_DS_SLOT; /* define the MAC slot boundaries */ sifs = RAL_SIFS - RT2560_RXTX_TURNAROUND; |