This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
The following commit(s) were added to refs/heads/master by this push:
new a38655bb nimble/host: Removed the extra status field in the enh read
transmit power level
a38655bb is described below
commit a38655bb4a84deebc5e798d40d7dec48a19fa58f
Author: Rahul Tank <[email protected]>
AuthorDate: Mon May 22 10:24:41 2023 +0530
nimble/host: Removed the extra status field in the enh read transmit power
level
---
nimble/host/src/ble_gap.c | 2 +-
nimble/include/nimble/hci_common.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/nimble/host/src/ble_gap.c b/nimble/host/src/ble_gap.c
index f486b720..add9ea52 100644
--- a/nimble/host/src/ble_gap.c
+++ b/nimble/host/src/ble_gap.c
@@ -6608,7 +6608,7 @@ ble_gap_enh_read_transmit_power_level(uint16_t
conn_handle, uint8_t phy, uint8_t
return rc;
}
- *out_status = rsp.status;
+ *out_status = rc;
*out_phy = rsp.phy;
*out_curr_tx_power_level = rsp.curr_tx_power_level;
*out_max_tx_power_level = rsp.max_tx_power_level;
diff --git a/nimble/include/nimble/hci_common.h
b/nimble/include/nimble/hci_common.h
index 6c9d4061..13c4a714 100644
--- a/nimble/include/nimble/hci_common.h
+++ b/nimble/include/nimble/hci_common.h
@@ -1095,7 +1095,6 @@ struct ble_hci_le_enh_read_transmit_power_level_cp {
uint8_t phy;
} __attribute__((packed));
struct ble_hci_le_enh_read_transmit_power_level_rp {
- uint8_t status;
uint16_t conn_handle;
uint8_t phy;
uint8_t curr_tx_power_level;