drivers/nble: Sync ble_gatt_notif_ind_rsp definition
The definition is not in sync with firmware which cause the following error: bt: rpc_deserialize (0xa8008a24): on_ble_gatts_send_notif_ind_rsp panic: errcode -1 Change-Id: Iddaa1eece7c43b5707c01db6e053d104a2a846e6 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
2b7a5229f2
commit
4efacd3d5b
2 changed files with 4 additions and 2 deletions
|
@ -486,7 +486,7 @@ void on_ble_gatts_read_evt(const struct nble_gatt_rd_evt *evt)
|
||||||
|
|
||||||
attr = evt->attr;
|
attr = evt->attr;
|
||||||
|
|
||||||
BT_DBG("read %p", attr);
|
BT_DBG("handle %p", attr);
|
||||||
|
|
||||||
if (attr->read) {
|
if (attr->read) {
|
||||||
reply_data.status = attr->read(NULL, attr, data, sizeof(data),
|
reply_data.status = attr->read(NULL, attr, data, sizeof(data),
|
||||||
|
|
|
@ -141,10 +141,12 @@ enum ble_gatts_notif_ind_type {
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ble_gatt_notif_ind_rsp {
|
struct ble_gatt_notif_ind_rsp {
|
||||||
|
/**< Callback function to call on reception of this message */
|
||||||
|
bt_gatt_notify_func_t cback;
|
||||||
int status; /**< Status of the operation. */
|
int status; /**< Status of the operation. */
|
||||||
/**< Connection handle, can be 0xFFFF if value change broadcast */
|
/**< Connection handle, can be 0xFFFF if value change broadcast */
|
||||||
uint16_t conn_handle;
|
uint16_t conn_handle;
|
||||||
uint16_t handle; /**< Characteristic value handle */
|
struct bt_gatt_attr *attr; /**< GATT Attribute */
|
||||||
/**< MSG_ID_BLE_GATTS_SEND_NOTIF_RSP for notification or
|
/**< MSG_ID_BLE_GATTS_SEND_NOTIF_RSP for notification or
|
||||||
* MSG_ID_BLE_GATTS_SEND_IND_RSP for indication
|
* MSG_ID_BLE_GATTS_SEND_IND_RSP for indication
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue