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/dev/usb/wlan/if_run.c | |
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/dev/usb/wlan/if_run.c')
-rw-r--r-- | sys/dev/usb/wlan/if_run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index aa853c6..1ad9f60 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -5186,7 +5186,7 @@ run_updateslot_cb(void *arg) run_read(sc, RT2860_BKOFF_SLOT_CFG, &tmp); tmp &= ~0xff; - tmp |= (ic->ic_flags & IEEE80211_F_SHSLOT) ? 9 : 20; + tmp |= IEEE80211_GET_SLOTTIME(ic); run_write(sc, RT2860_BKOFF_SLOT_CFG, tmp); } |