nimble/ll: Fix max supported TX time

Max TX time (regardless of PHY) is 17040us since this is maximum value
allowed by HCI commands and we should accept it. This does not mean we
will use whatever hosts requests since these are just suggestions and
we calculate actual supported and effective TX time taking into account
connection settings and other limitations from spec.

X-Original-Commit: 46f451be162f21a8b3218f5b1b6f6869fdf97501
This commit is contained in:
Andrzej Kaczmarek
2018-02-05 14:21:40 +01:00
parent afbaf4b961
commit 573a764370
+3 -6
View File
@@ -27,14 +27,11 @@ extern "C" {
#endif
/*
* Definitions for max rx/tx time/bytes for connections
* NOTE: you get 327 usecs from 27 bytes of payload by:
* -> adding 4 bytes for MIC
* -> adding 2 bytes for PDU header
* -> adding 8 bytes for preamble (1), access address (4) and crc (3).
* Definitions for min/max RX/TX time/bytes values allowed for connections.
* Source: Core 5.0 specification, Vol 6, Part B, section 4.5.10
*/
#define BLE_LL_CONN_SUPP_TIME_MIN (328) /* usecs */
#define BLE_LL_CONN_SUPP_TIME_MAX (2120) /* usecs */
#define BLE_LL_CONN_SUPP_TIME_MAX (17040) /* usecs */
#define BLE_LL_CONN_SUPP_TIME_MIN_UNCODED (328) /* usecs */
#define BLE_LL_CONN_SUPP_TIME_MAX_UNCODED (2120) /* usecs */
#define BLE_LL_CONN_SUPP_TIME_MIN_CODED (2704) /* usecs */