Skip to content

Commit ad4c704

Browse files
adamfc2000rlubos
authored andcommitted
[nrf fromtree] bluetooth: host: Update FAE table type for HCI commands
Update FAE table type from array of uint8_t to int8_t. From Vol 6.0, Part B, section 2.4.2.52: "The ChFAE field contains the per-channel mode-0 FAE table of the local Controller. Every per-channel mode-0 FAE value is represented by an 8-bit signed integer" Signed-off-by: Adam Cavender <[email protected]> (cherry picked from commit a68a0a4) Signed-off-by: Sean Madigan <[email protected]>
1 parent e168bcf commit ad4c704

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

include/zephyr/bluetooth/conn.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ struct bt_conn_le_cs_capabilities {
410410

411411
/** Remote FAE Table for LE connections supporting CS */
412412
struct bt_conn_le_cs_fae_table {
413-
uint8_t *remote_fae_table;
413+
int8_t *remote_fae_table;
414414
};
415415

416416
/** Channel sounding main mode */

include/zephyr/bluetooth/cs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ int bt_le_cs_write_cached_remote_supported_capabilities(
886886
*
887887
* @return Zero on success or (negative) error code on failure.
888888
*/
889-
int bt_le_cs_write_cached_remote_fae_table(struct bt_conn *conn, uint8_t remote_fae_table[72]);
889+
int bt_le_cs_write_cached_remote_fae_table(struct bt_conn *conn, int8_t remote_fae_table[72]);
890890

891891
#ifdef __cplusplus
892892
}

include/zephyr/bluetooth/hci_types.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2499,7 +2499,7 @@ struct bt_hci_cp_le_read_remote_fae_table {
24992499

25002500
struct bt_hci_cp_le_write_cached_remote_fae_table {
25012501
uint16_t handle;
2502-
uint8_t remote_fae_table[72];
2502+
int8_t remote_fae_table[72];
25032503
} __packed;
25042504

25052505
#define BT_HCI_OP_LE_CS_SET_CHANNEL_CLASSIFICATION BT_OP(BT_OGF_LE, 0x0092) /* 0x2092 */
@@ -3534,7 +3534,7 @@ struct bt_hci_evt_le_cs_read_remote_supported_capabilities_complete {
35343534
struct bt_hci_evt_le_cs_read_remote_fae_table_complete {
35353535
uint8_t status;
35363536
uint16_t conn_handle;
3537-
uint8_t remote_fae_table[72];
3537+
int8_t remote_fae_table[72];
35383538
} __packed;
35393539

35403540
#define BT_HCI_LE_CS_CONFIG_ACTION_REMOVED 0x00

subsys/bluetooth/host/cs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ int bt_le_cs_write_cached_remote_supported_capabilities(
11711171
NULL);
11721172
}
11731173

1174-
int bt_le_cs_write_cached_remote_fae_table(struct bt_conn *conn, uint8_t remote_fae_table[72])
1174+
int bt_le_cs_write_cached_remote_fae_table(struct bt_conn *conn, int8_t remote_fae_table[72])
11751175
{
11761176
struct bt_hci_cp_le_write_cached_remote_fae_table *cp;
11771177
struct net_buf *buf;

0 commit comments

Comments
 (0)