diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-11-23 20:23:52 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-11-23 20:23:52 +0000 |
commit | 0ceaa7af952f1804d03c7f517933ac2959f2a546 (patch) | |
tree | 6104f29d8089863b703367dc2f55e3c76851b142 /sys/dev/usb/if_ralvar.h | |
parent | 5a4092f96da8ee676546eb76cfea0d2a119a021b (diff) |
Implement the Adaptive Multi Rate Retry algorithm (AMRR) for BSS mode.
This algorithm is particularly well suited for ural since it does not
require per-frame retry statistics.
Diffstat (limited to 'sys/dev/usb/if_ralvar.h')
-rw-r--r-- | sys/dev/usb/if_ralvar.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/usb/if_ralvar.h b/sys/dev/usb/if_ralvar.h index 9b553b20c41..6c9eb9eefd6 100644 --- a/sys/dev/usb/if_ralvar.h +++ b/sys/dev/usb/if_ralvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ralvar.h,v 1.2 2005/05/13 18:42:50 damien Exp $ */ +/* $OpenBSD: if_ralvar.h,v 1.3 2005/11/23 20:23:48 damien Exp $ */ /*- * Copyright (c) 2005 @@ -67,6 +67,14 @@ struct ural_rx_data { struct mbuf *m; }; +struct ural_amrr { + int txcnt; + int retrycnt; + int success; + int success_threshold; + int recovery; +}; + struct ural_softc { USBBASEDEVICE sc_dev; struct ieee80211com sc_ic; @@ -82,20 +90,26 @@ struct ural_softc { uint32_t asic_rev; uint8_t rf_rev; + usbd_xfer_handle amrr_xfer; + usbd_pipe_handle sc_rx_pipeh; usbd_pipe_handle sc_tx_pipeh; enum ieee80211_state sc_state; struct usb_task sc_task; + struct ural_amrr amrr; + struct ural_rx_data rx_data[RAL_RX_LIST_COUNT]; struct ural_tx_data tx_data[RAL_TX_LIST_COUNT]; int tx_queued; struct timeout scan_ch; + struct timeout amrr_ch; int sc_tx_timer; + uint16_t sta[11]; uint32_t rf_regs[4]; uint8_t txpow[14]; |