summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_rate/sample/sample.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ath/ath_rate/sample/sample.h')
-rw-r--r--sys/dev/ath/ath_rate/sample/sample.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.h b/sys/dev/ath/ath_rate/sample/sample.h
index 2d586b7..fcac316 100644
--- a/sys/dev/ath/ath_rate/sample/sample.h
+++ b/sys/dev/ath/ath_rate/sample/sample.h
@@ -79,6 +79,14 @@ struct txschedule {
*/
#define NUM_PACKET_SIZE_BINS 2
+static const int packet_size_bins[NUM_PACKET_SIZE_BINS] = { 250, 1600 };
+
+static inline int
+bin_to_size(int index)
+{
+ return packet_size_bins[index];
+}
+
/* per-node state */
struct sample_node {
int static_rix; /* rate index of fixed tx rate */
OpenPOWER on IntegriCloud