-/* $OpenBSD: rtwn.c,v 1.24 2017/07/01 15:56:11 kevlo Exp $ */
+/* $OpenBSD: rtwn.c,v 1.25 2017/07/02 14:48:19 kevlo Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
s = splnet();
if (ic->ic_flags & IEEE80211_F_SHSLOT)
- rtwn_write_1(sc, R92C_SLOT, 9);
+ rtwn_write_1(sc, R92C_SLOT, IEEE80211_DUR_DS_SHSLOT);
else
rtwn_write_1(sc, R92C_SLOT, IEEE80211_DUR_DS_SLOT);
splx(s);
uint8_t acm = 0;
if (ic->ic_flags & IEEE80211_F_SHSLOT)
- slottime = 9; /* XXX needs a macro in ieee80211.h */
+ slottime = IEEE80211_DUR_DS_SHSLOT;
else
slottime = IEEE80211_DUR_DS_SLOT;
s = splnet();
-/* $OpenBSD: ieee80211.h,v 1.59 2017/04/23 21:04:55 stsp Exp $ */
+/* $OpenBSD: ieee80211.h,v 1.60 2017/07/02 14:48:19 kevlo Exp $ */
/* $NetBSD: ieee80211.h,v 1.6 2004/04/30 23:51:53 dyoung Exp $ */
/*-
#define IEEE80211_DUR_DS_SLOW_CTS 112
#define IEEE80211_DUR_DS_FAST_CTS 56
#define IEEE80211_DUR_DS_SLOT 20
+#define IEEE80211_DUR_DS_SHSLOT 9
#define IEEE80211_DUR_DS_SIFS 10
#define IEEE80211_DUR_DS_PIFS (IEEE80211_DUR_DS_SIFS + IEEE80211_DUR_DS_SLOT)
#define IEEE80211_DUR_DS_DIFS (IEEE80211_DUR_DS_SIFS + \