This is an automated email from the ASF dual-hosted git repository. rymek pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git
commit bf931d5ee65520c9a69256d711466b210f276a8d Author: Krzysztof Kopyściński <[email protected]> AuthorDate: Fri Jul 31 07:56:12 2020 +0200 apps/blestress - switch from PSM = 1 to PSM = 0x80 (128) - from dynamic range --- apps/blestress/src/rx_stress.c | 2 +- apps/blestress/src/stress.h | 2 ++ apps/blestress/src/tx_stress.c | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/blestress/src/rx_stress.c b/apps/blestress/src/rx_stress.c index a4253ce..5b91e4d 100644 --- a/apps/blestress/src/rx_stress.c +++ b/apps/blestress/src/rx_stress.c @@ -1365,7 +1365,7 @@ rx_stress_start(int test_num) break; case 10: console_printf("Stress L2CAP send\033[0m\n"); - rc = ble_l2cap_create_server(1, STRESS_COC_MTU, + rc = ble_l2cap_create_server(TEST_PSM, STRESS_COC_MTU, rx_stress_10_l2cap_event, NULL); assert(rc == 0); rx_stress_simple_adv(&rx_stress_adv_sets[10]); diff --git a/apps/blestress/src/stress.h b/apps/blestress/src/stress.h index 6f19331..db4fbb3 100644 --- a/apps/blestress/src/stress.h +++ b/apps/blestress/src/stress.h @@ -44,6 +44,8 @@ extern "C" { #define STRESS_FIND_SRV 1 #define STRESS_FIND_CHR 2 #define STRESS_FIND_DSC 3 +/* L2CAP PSM */ +#define TEST_PSM 0x80 struct stress_gatt_search_ctx; typedef void stress_gatt_disc_end_fn(struct stress_gatt_search_ctx *search_ctx); diff --git a/apps/blestress/src/tx_stress.c b/apps/blestress/src/tx_stress.c index 1e62491..4416c56 100644 --- a/apps/blestress/src/tx_stress.c +++ b/apps/blestress/src/tx_stress.c @@ -1127,7 +1127,7 @@ tx_stress_10_gap_event(struct ble_gap_event *event, void *arg) assert(sdu_rx != NULL); tx_stress_ctx->conn_handle = event->connect.conn_handle; - rc = ble_l2cap_connect(event->connect.conn_handle, 1, + rc = ble_l2cap_connect(event->connect.conn_handle, TEST_PSM, STRESS_COC_MTU, sdu_rx, tx_stress_10_l2cap_event, NULL); assert(rc == 0);
