aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wpi/if_wpireg.h
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2015-05-03 23:03:06 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2015-05-03 23:03:06 +0000
commitefccc3c60c323cc62fd22563a817fc8a68645f19 (patch)
tree0b8bab7c82baec32f1e80735672b6e995962f746 /sys/dev/wpi/if_wpireg.h
parent42946b7dbc136def052ffde2c15e0efebe62d60a (diff)
downloadsrc-efccc3c60c323cc62fd22563a817fc8a68645f19.tar.gz
src-efccc3c60c323cc62fd22563a817fc8a68645f19.zip
Fix pause scan time calculation (the remainder must be less than beacon interval).
PR: kern/197143 Submitted by: Andriy Voskoboinyk <s3erios@gmail.com>
Notes
Notes: svn path=/head/; revision=282383
Diffstat (limited to 'sys/dev/wpi/if_wpireg.h')
-rw-r--r--sys/dev/wpi/if_wpireg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpireg.h b/sys/dev/wpi/if_wpireg.h
index 48a79f8c6c45..f2704fd9499c 100644
--- a/sys/dev/wpi/if_wpireg.h
+++ b/sys/dev/wpi/if_wpireg.h
@@ -619,6 +619,9 @@ struct wpi_scan_hdr {
uint16_t reserved2;
uint32_t max_svc; /* background scans */
uint32_t pause_svc; /* background scans */
+#define WPI_PAUSE_MAX_TIME ((1 << 20) - 1)
+#define WPI_PAUSE_SCAN(nbeacons, time) ((nbeacons << 24) | time)
+
uint32_t flags;
uint32_t filter;