nimble/host: Fix data type of power level and delta to handle negative values

This commit is contained in:
Rahul Tank
2023-06-08 23:07:13 +02:00
committed by Andrzej Kaczmarek
parent 8074802c11
commit b2ebf7630d
2 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -1068,14 +1068,14 @@ struct ble_gap_event {
/** Advertising PHY */
uint8_t phy;
/** Transmit power Level */
uint8_t transmit_power_level;
/** Transmit power Level */
int8_t transmit_power_level;
/** Transmit Power Level Flag */
uint8_t transmit_power_level_flag;
/** Delta indicating change in transmit Power Level */
uint8_t delta;
/** Delta indicating change in transmit Power Level */
int8_t delta;
} transmit_power;
#endif
/**
+7 -7
View File
@@ -1937,14 +1937,14 @@ struct ble_hci_ev_le_subev_path_loss_threshold {
#define BLE_HCI_LE_SUBEV_TRANSMIT_POWER_REPORT (0x21)
struct ble_hci_ev_le_subev_transmit_power_report {
uint8_t subev_code;
uint8_t status;
uint8_t subev_code;
uint8_t status;
uint16_t conn_handle;
uint8_t reason;
uint8_t phy;
uint8_t transmit_power_level;
uint8_t transmit_power_level_flag;
uint8_t delta;
uint8_t reason;
uint8_t phy;
int8_t transmit_power_level;
uint8_t transmit_power_level_flag;
int8_t delta;
} __attribute__((packed));
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)