#include #include "taia.h" static const struct taia tolerance_taia = { .sec.x = 0, .nano = 700000000ULL, /* 700ms acceptance window */ .atto = 0, }; bool taia_looks_good(struct taia *arr_taia, struct taia *pkt_taia) { bool good = false; struct taia tmp; if (taia_less(arr_taia, pkt_taia)) { taia_sub(&tmp, pkt_taia, arr_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } else { taia_sub(&tmp, arr_taia, pkt_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } return good; } xt.git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-09-20 22:52:50 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-20 22:52:50 -0400
commit204dfe1798bbfa242e4083b87c3a8c5200412e6f (patch)
treebfaea82669ebf422344557e06c86f1c455ce41b4
parentad9798967dd67f080bf0e8d611b382a5d292aae2 (diff)
parentaf4168c5a925dc3b11b0246c2b91124327919f47 (diff)
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Johan Hedberg says: ==================== pull request: bluetooth-next 2016-09-19 Here's the main bluetooth-next pull request for the 4.9 kernel. - Added new messages for monitor sockets for better mgmt tracing - Added local name and appearance support in scan response - Added new Qualcomm WCNSS SMD based HCI driver - Minor fixes & cleanup to 802.15.4 code - New USB ID to btusb driver - Added Marvell support to HCI UART driver - Add combined LED trigger for controller power - Other minor fixes here and there Please let me know if there are any issues pulling. Thanks. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>