@@ -1162,6 +1162,38 @@ int ble_gap_adv_rsp_set_fields(const struct ble_hs_adv_fields *rsp_fields);
11621162int ble_hs_hci_util_set_data_len (uint16_t conn_handle , uint16_t tx_octets ,
11631163 uint16_t tx_time );
11641164
1165+ /**
1166+ * Read host's suggested values for the controller's maximum transmitted number of payload octets
1167+ * and maximum packet transmission time (OGF = 0x08, OCF = 0x0024).
1168+ *
1169+ * @param out_sugg_max_tx_octets The Host's suggested value for the Controller's maximum transmitted
1170+ * number of payload octets in LL Data PDUs to be used for new
1171+ * connections. (Range 0x001B-0x00FB).
1172+ * @param out_sugg_max_tx_time The Host's suggested value for the Controller's maximum packet
1173+ * transmission time for packets containing LL Data PDUs to be used
1174+ * for new connections. (Range 0x0148-0x4290).
1175+ *
1176+ * @return 0 on success,
1177+ * other error code on failure.
1178+ */
1179+ int ble_hs_hci_util_read_sugg_def_data_len (uint16_t * out_sugg_max_tx_octets ,
1180+ uint16_t * out_sugg_max_tx_time );
1181+ /**
1182+ * Configure host's suggested maximum transmitted number of payload octets and maximum packet
1183+ * transmission time in controller (OGF = 0x08, OCF = 0x0024).
1184+ *
1185+ * @param sugg_max_tx_octets The Host's suggested value for the Controller's maximum transmitted
1186+ * number of payload octets in LL Data PDUs to be used for new
1187+ * connections. (Range 0x001B-0x00FB).
1188+ * @param sugg_max_tx_time The Host's suggested value for the Controller's maximum packet
1189+ * transmission time for packets containing LL Data PDUs to be used
1190+ * for new connections. (Range 0x0148-0x4290).
1191+ *
1192+ * @return 0 on success,
1193+ * other error code on failure.
1194+ */
1195+ int ble_hs_hci_util_write_sugg_def_data_len (uint16_t sugg_max_tx_octets , uint16_t sugg_max_tx_time );
1196+
11651197#if MYNEWT_VAL (BLE_EXT_ADV )
11661198/** @brief Extended advertising parameters */
11671199struct ble_gap_ext_adv_params {
@@ -1843,6 +1875,37 @@ int ble_gap_update_params(uint16_t conn_handle,
18431875 */
18441876int ble_gap_set_data_len (uint16_t conn_handle , uint16_t tx_octets , uint16_t tx_time );
18451877
1878+ /**
1879+ * Read LE Suggested Default Data Length in controller (OGF = 0x08, OCF = 0x0024).
1880+ *
1881+ * @param out_sugg_max_tx_octets The Host's suggested value for the Controller's maximum transmitted
1882+ * number of payload octets in LL Data PDUs to be used for new
1883+ * connections. (Range 0x001B-0x00FB).
1884+ * @param out_sugg_max_tx_time The Host's suggested value for the Controller's maximum packet
1885+ * transmission time for packets containing LL Data PDUs to be used
1886+ * for new connections. (Range 0x0148-0x4290).
1887+ *
1888+ * @return 0 on success,
1889+ * other error code on failure.
1890+ */
1891+ int ble_gap_read_sugg_def_data_len (uint16_t * out_sugg_max_tx_octets ,
1892+ uint16_t * out_sugg_max_tx_time );
1893+
1894+ /**
1895+ * Configure LE Suggested Default Data Length in controller (OGF = 0x08, OCF = 0x0024).
1896+ *
1897+ * @param sugg_max_tx_octets The Host's suggested value for the Controller's maximum transmitted
1898+ * number of payload octets in LL Data PDUs to be used for new
1899+ * connections. (Range 0x001B-0x00FB).
1900+ * @param sugg_max_tx_time The Host's suggested value for the Controller's maximum packet
1901+ * transmission time for packets containing LL Data PDUs to be used
1902+ * for new connections. (Range 0x0148-0x4290).
1903+ *
1904+ * @return 0 on success,
1905+ * other error code on failure.
1906+ */
1907+ int ble_gap_write_sugg_def_data_len (uint16_t sugg_max_tx_octets , uint16_t sugg_max_tx_time );
1908+
18461909/**
18471910 * Initiates the GAP security procedure.
18481911 *
0 commit comments