Merge branch 'bugfix/handle_signed_power_level_pcl_v5.1' into 'release/v5.1'

fix(nimble): Fix data type of power level and delta to handle negative values (v5.1)

See merge request espressif/esp-idf!24712
This commit is contained in:
Jiang Jiang Jian 2023-07-12 16:54:23 +08:00
commit e27b44e661
3 changed files with 4 additions and 4 deletions

@ -1 +1 @@
Subproject commit 528a67f4e73f9521609879587a1d7d2180e18372
Subproject commit e4a61068854850910155a3f5950b10791c3d8381

View File

@ -1863,9 +1863,9 @@ struct ble_hci_ev_le_subev_transmit_power_report {
uint16_t conn_handle;
uint8_t reason;
uint8_t phy;
uint8_t transmit_power_level;
int8_t transmit_power_level;
uint8_t transmit_power_level_flag;
uint8_t delta;
int8_t delta;
} __attribute__((packed));
#define BLE_HCI_LE_SUBEV_BIGINFO_ADV_REPORT (0x22)

View File

@ -808,7 +808,7 @@ blecent_gap_event(struct ble_gap_event *event, void *arg)
#if MYNEWT_VAL(BLE_POWER_CONTROL)
case BLE_GAP_EVENT_TRANSMIT_POWER:
MODLOG_DFLT(INFO, "Transmit power event : status=%d conn_handle=%d reason=%d "
"phy=%d power_level=%x power_level_flag=%d delta=%d",
"phy=%d power_level=%d power_level_flag=%d delta=%d",
event->transmit_power.status,
event->transmit_power.conn_handle,
event->transmit_power.reason,