Skip to content

Commit

Permalink
Merge branch 'apache:master' into gap-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
wpiet authored Aug 7, 2023
2 parents d602df7 + fa5cc47 commit a2c2f7a
Show file tree
Hide file tree
Showing 11 changed files with 1,000 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ syscfg.vals:
BLE_PHY_DBG_TIME_TXRXEN_READY_PIN: 12
BLE_PHY_DBG_TIME_WFR_PIN: 16
BLE_XTAL_SETTLE_TIME: 1500
BLE_LL_HCI_LLCP_TRACE: 1
2 changes: 1 addition & 1 deletion .github/workflows/build_targets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
git clone --depth=1 https://github.com/mcu-tools/mcuboot.git repos/mcuboot
git clone --depth=1 https://github.com/apache/mynewt-mcumgr repos/apache-mynewt-mcumgr
git clone --depth=1 https://github.com/hathach/tinyusb.git repos/tinyusb
git clone --depth=1 https://github.com/NordicSemiconductor/nrfx --branch v2.8.0 repos/nordic-nrfx
git clone --depth=1 https://github.com/NordicSemiconductor/nrfx --branch v2.11.0 repos/nordic-nrfx
- name: Build targets
shell: bash
run: |
Expand Down
17 changes: 0 additions & 17 deletions apps/bttester/src/btp_l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,19 +140,6 @@ recv_cb(uint16_t conn_handle, struct ble_l2cap_chan *chan,
tester_l2cap_coc_recv(chan, buf);
}

static void
unstalled_cb(uint16_t conn_handle, struct ble_l2cap_chan *chan,
int status, void *arg)
{
if (status) {
tester_rsp(BTP_SERVICE_ID_L2CAP, BTP_L2CAP_SEND_DATA,
BTP_STATUS_FAILED);
} else {
tester_rsp(BTP_SERVICE_ID_L2CAP, BTP_L2CAP_SEND_DATA,
BTP_STATUS_SUCCESS);
}
}

static void
reconfigured_ev(uint16_t conn_handle, struct ble_l2cap_chan *chan,
struct ble_l2cap_chan_info *chan_info,
Expand Down Expand Up @@ -349,10 +336,6 @@ tester_l2cap_event(struct ble_l2cap_event *event, void *arg)
(uint32_t) event->tx_unstalled.chan,
event->tx_unstalled.conn_handle,
event->tx_unstalled.status);

unstalled_cb(event->tx_unstalled.conn_handle,
event->tx_unstalled.chan,
event->tx_unstalled.status, arg);
return 0;
case BLE_L2CAP_EVENT_COC_RECONFIG_COMPLETED:
if (ble_l2cap_get_chan_info(event->reconfigured.chan,
Expand Down
6 changes: 3 additions & 3 deletions nimble/controller/src/ble_ll_hci_ev.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,16 +643,16 @@ void
ble_ll_hci_ev_send_vs_llcp_trace(uint8_t type, uint16_t handle, uint16_t count,
void *pdu, size_t length)
{
struct ble_hci_ev_vs_debug *ev;
struct ble_hci_ev_vs *ev;
struct ble_hci_ev *hci_ev;

hci_ev = ble_transport_alloc_evt(1);
if (hci_ev) {
hci_ev->opcode = BLE_HCI_EVCODE_VS_DEBUG;
hci_ev->opcode = BLE_HCI_EVCODE_VS;
hci_ev->length = sizeof(*ev) + 8 + length;
ev = (void *) hci_ev->data;

ev->id = 0x17;
ev->id = BLE_HCI_VS_SUBEV_ID_LLCP_TRACE;
ev->data[0] = type;
put_le16(&ev->data[1], handle);
put_le16(&ev->data[3], count);
Expand Down
Loading

0 comments on commit a2c2f7a

Please sign in to comment.