Lines Matching refs:att_err
120 static uint8_t bgr_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in bgr_feat_read_cb() argument
125 int err = att_err; in bgr_feat_read_cb()
129 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in bgr_feat_read_cb()
132 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in bgr_feat_read_cb()
133 if (att_err == BT_ATT_ERR_SUCCESS) { in bgr_feat_read_cb()
134 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in bgr_feat_read_cb()
209 static uint8_t bgs_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in bgs_feat_read_cb() argument
214 int err = att_err; in bgs_feat_read_cb()
218 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in bgs_feat_read_cb()
221 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in bgs_feat_read_cb()
222 if (att_err == BT_ATT_ERR_SUCCESS) { in bgs_feat_read_cb()
223 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in bgs_feat_read_cb()
308 static uint8_t ugt_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in ugt_feat_read_cb() argument
313 int err = att_err; in ugt_feat_read_cb()
317 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in ugt_feat_read_cb()
320 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in ugt_feat_read_cb()
321 if (att_err == BT_ATT_ERR_SUCCESS) { in ugt_feat_read_cb()
322 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in ugt_feat_read_cb()
409 static uint8_t ugg_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in ugg_feat_read_cb() argument
414 int err = att_err; in ugg_feat_read_cb()
418 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in ugg_feat_read_cb()
421 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in ugg_feat_read_cb()
422 if (att_err == BT_ATT_ERR_SUCCESS) { in ugg_feat_read_cb()
423 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in ugg_feat_read_cb()
512 static uint8_t role_read_cb(struct bt_conn *conn, uint8_t att_err, in role_read_cb() argument
517 int err = att_err; in role_read_cb()
521 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in role_read_cb()
524 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in role_read_cb()
525 if (att_err == BT_ATT_ERR_SUCCESS) { in role_read_cb()
526 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in role_read_cb()