@@ -2301,180 +2301,179 @@ configure_security_mode(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *
23012301
23022302static const struct btp_handler handlers [] = {
23032303 {
2304- .opcode = BTP_GAP_READ_SUPPORTED_COMMANDS ,
2305- .index = BTP_INDEX_NONE ,
2306- .expect_len = 0 ,
2307- .func = supported_commands ,
2308- },
2304+ .opcode = BTP_GAP_READ_SUPPORTED_COMMANDS ,
2305+ .index = BTP_INDEX_NONE ,
2306+ .expect_len = 0 ,
2307+ .func = supported_commands ,
2308+ },
23092309 {
2310- .opcode = BTP_GAP_READ_CONTROLLER_INDEX_LIST ,
2311- .index = BTP_INDEX_NONE ,
2312- .expect_len = 0 ,
2313- .func = controller_index_list ,
2314- },
2310+ .opcode = BTP_GAP_READ_CONTROLLER_INDEX_LIST ,
2311+ .index = BTP_INDEX_NONE ,
2312+ .expect_len = 0 ,
2313+ .func = controller_index_list ,
2314+ },
23152315 {
2316- .opcode = BTP_GAP_READ_CONTROLLER_INFO ,
2317- .expect_len = 0 ,
2318- .func = controller_info ,
2319- },
2316+ .opcode = BTP_GAP_READ_CONTROLLER_INFO ,
2317+ .expect_len = 0 ,
2318+ .func = controller_info ,
2319+ },
23202320 {
2321- .opcode = BTP_GAP_SET_CONNECTABLE ,
2322- .expect_len = sizeof (struct btp_gap_set_connectable_cmd ),
2323- .func = set_connectable ,
2324- },
2321+ .opcode = BTP_GAP_SET_CONNECTABLE ,
2322+ .expect_len = sizeof (struct btp_gap_set_connectable_cmd ),
2323+ .func = set_connectable ,
2324+ },
23252325 {
2326- .opcode = BTP_GAP_SET_DISCOVERABLE ,
2327- .expect_len = sizeof (struct btp_gap_set_discoverable_cmd ),
2328- .func = set_discoverable ,
2329- },
2326+ .opcode = BTP_GAP_SET_DISCOVERABLE ,
2327+ .expect_len = sizeof (struct btp_gap_set_discoverable_cmd ),
2328+ .func = set_discoverable ,
2329+ },
23302330 {
2331- .opcode = BTP_GAP_SET_BONDABLE ,
2332- .expect_len = sizeof (struct btp_gap_set_bondable_cmd ),
2333- .func = set_bondable ,
2334- },
2331+ .opcode = BTP_GAP_SET_BONDABLE ,
2332+ .expect_len = sizeof (struct btp_gap_set_bondable_cmd ),
2333+ .func = set_bondable ,
2334+ },
23352335 {
2336- .opcode = BTP_GAP_START_ADVERTISING ,
2337- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2338- .func = start_advertising ,
2339- },
2336+ .opcode = BTP_GAP_START_ADVERTISING ,
2337+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2338+ .func = start_advertising ,
2339+ },
23402340 {
2341- .opcode = BTP_GAP_START_DIRECT_ADV ,
2342- .expect_len = sizeof (struct btp_gap_start_direct_adv_cmd ),
2343- .func = start_direct_adv ,
2344- },
2341+ .opcode = BTP_GAP_START_DIRECT_ADV ,
2342+ .expect_len = sizeof (struct btp_gap_start_direct_adv_cmd ),
2343+ .func = start_direct_adv ,
2344+ },
23452345 {
2346- .opcode = BTP_GAP_STOP_ADVERTISING ,
2347- .expect_len = 0 ,
2348- .func = stop_advertising ,
2349- },
2346+ .opcode = BTP_GAP_STOP_ADVERTISING ,
2347+ .expect_len = 0 ,
2348+ .func = stop_advertising ,
2349+ },
23502350 {
2351- .opcode = BTP_GAP_START_DISCOVERY ,
2352- .expect_len = sizeof (struct btp_gap_start_discovery_cmd ),
2353- .func = start_discovery ,
2354- },
2351+ .opcode = BTP_GAP_START_DISCOVERY ,
2352+ .expect_len = sizeof (struct btp_gap_start_discovery_cmd ),
2353+ .func = start_discovery ,
2354+ },
23552355 {
2356- .opcode = BTP_GAP_STOP_DISCOVERY ,
2357- .expect_len = 0 ,
2358- .func = stop_discovery ,
2359- },
2356+ .opcode = BTP_GAP_STOP_DISCOVERY ,
2357+ .expect_len = 0 ,
2358+ .func = stop_discovery ,
2359+ },
23602360 {
2361- .opcode = BTP_GAP_CONNECT ,
2362- .expect_len = sizeof (struct btp_gap_connect_cmd ),
2363- .func = connect ,
2364- },
2361+ .opcode = BTP_GAP_CONNECT ,
2362+ .expect_len = sizeof (struct btp_gap_connect_cmd ),
2363+ .func = connect ,
2364+ },
23652365 {
2366- .opcode = BTP_GAP_DISCONNECT ,
2367- .expect_len = sizeof (struct btp_gap_disconnect_cmd ),
2368- .func = disconnect ,
2369- },
2366+ .opcode = BTP_GAP_DISCONNECT ,
2367+ .expect_len = sizeof (struct btp_gap_disconnect_cmd ),
2368+ .func = disconnect ,
2369+ },
23702370 {
2371- .opcode = BTP_GAP_SET_IO_CAP ,
2372- .expect_len = sizeof (struct btp_gap_set_io_cap_cmd ),
2373- .func = set_io_cap ,
2374- },
2371+ .opcode = BTP_GAP_SET_IO_CAP ,
2372+ .expect_len = sizeof (struct btp_gap_set_io_cap_cmd ),
2373+ .func = set_io_cap ,
2374+ },
23752375 {
2376- .opcode = BTP_GAP_PAIR ,
2377- .expect_len = sizeof (struct btp_gap_pair_cmd ),
2378- .func = pair ,
2379- },
2376+ .opcode = BTP_GAP_PAIR ,
2377+ .expect_len = sizeof (struct btp_gap_pair_cmd ),
2378+ .func = pair ,
2379+ },
23802380 {
2381- .opcode = BTP_GAP_UNPAIR ,
2382- .expect_len = sizeof (struct btp_gap_unpair_cmd ),
2383- .func = unpair ,
2384- },
2381+ .opcode = BTP_GAP_UNPAIR ,
2382+ .expect_len = sizeof (struct btp_gap_unpair_cmd ),
2383+ .func = unpair ,
2384+ },
23852385 {
2386- .opcode = BTP_GAP_PASSKEY_ENTRY ,
2387- .expect_len = sizeof (struct btp_gap_passkey_entry_cmd ),
2388- .func = passkey_entry ,
2389- },
2386+ .opcode = BTP_GAP_PASSKEY_ENTRY ,
2387+ .expect_len = sizeof (struct btp_gap_passkey_entry_cmd ),
2388+ .func = passkey_entry ,
2389+ },
23902390 {
2391- .opcode = BTP_GAP_PASSKEY_CONFIRM ,
2392- .expect_len = sizeof (struct btp_gap_passkey_confirm_cmd ),
2393- .func = passkey_confirm ,
2394- },
2391+ .opcode = BTP_GAP_PASSKEY_CONFIRM ,
2392+ .expect_len = sizeof (struct btp_gap_passkey_confirm_cmd ),
2393+ .func = passkey_confirm ,
2394+ },
23952395 {
2396- .opcode = BTP_GAP_CONN_PARAM_UPDATE ,
2397- .expect_len = sizeof (struct btp_gap_conn_param_update_cmd ),
2398- .func = conn_param_update_async ,
2399- },
2396+ .opcode = BTP_GAP_CONN_PARAM_UPDATE ,
2397+ .expect_len = sizeof (struct btp_gap_conn_param_update_cmd ),
2398+ .func = conn_param_update_async ,
2399+ },
24002400 {
2401- .opcode = BTP_GAP_OOB_LEGACY_SET_DATA ,
2402- .expect_len = sizeof (struct btp_gap_oob_legacy_set_data_cmd ),
2403- .func = set_oob_legacy_data ,
2404- },
2401+ .opcode = BTP_GAP_OOB_LEGACY_SET_DATA ,
2402+ .expect_len = sizeof (struct btp_gap_oob_legacy_set_data_cmd ),
2403+ .func = set_oob_legacy_data ,
2404+ },
24052405 {
2406- .opcode = BTP_GAP_OOB_SC_GET_LOCAL_DATA ,
2407- .expect_len = 0 ,
2408- .func = get_oob_sc_local_data ,
2409- },
2406+ .opcode = BTP_GAP_OOB_SC_GET_LOCAL_DATA ,
2407+ .expect_len = 0 ,
2408+ .func = get_oob_sc_local_data ,
2409+ },
24102410 {
2411- .opcode = BTP_GAP_OOB_SC_SET_REMOTE_DATA ,
2412- .expect_len = sizeof (struct btp_gap_oob_sc_set_remote_data_cmd ),
2413- .func = set_oob_sc_remote_data ,
2414- },
2411+ .opcode = BTP_GAP_OOB_SC_SET_REMOTE_DATA ,
2412+ .expect_len = sizeof (struct btp_gap_oob_sc_set_remote_data_cmd ),
2413+ .func = set_oob_sc_remote_data ,
2414+ },
24152415 {
2416- .opcode = BTP_GAP_SET_MITM ,
2417- .expect_len = sizeof (struct btp_gap_set_mitm_cmd ),
2418- .func = set_mitm ,
2419- },
2416+ .opcode = BTP_GAP_SET_MITM ,
2417+ .expect_len = sizeof (struct btp_gap_set_mitm_cmd ),
2418+ .func = set_mitm ,
2419+ },
24202420 {
2421- .opcode = BTP_GAP_SET_FILTER_ACCEPT_LIST ,
2422- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2423- .func = set_filter_accept_list ,
2424- },
2421+ .opcode = BTP_GAP_SET_FILTER_ACCEPT_LIST ,
2422+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2423+ .func = set_filter_accept_list ,
2424+ },
24252425#if MYNEWT_VAL (BLE_EXT_ADV )
24262426 {
2427- .opcode = GAP_SET_EXT_ADV ,
2428- .expect_len = sizeof (struct btp_gap_set_ext_advertising_cmd ),
2429- .func = set_ext_advertising ,
2430- },
2427+ .opcode = GAP_SET_EXT_ADV ,
2428+ .expect_len = sizeof (struct btp_gap_set_ext_advertising_cmd ),
2429+ .func = set_ext_advertising ,
2430+ },
24312431#endif /* BLE_EXT_ADV*/
24322432#if MYNEWT_VAL (BLE_PERIODIC_ADV )
24332433 {
2434- .opcode = GAP_PADV_CONFIGURE ,
2435- .expect_len = sizeof (struct gap_periodic_adv_configure_cmd ),
2436- .func = periodic_adv_configure ,
2437- },
2434+ .opcode = GAP_PADV_CONFIGURE ,
2435+ .expect_len = sizeof (struct gap_periodic_adv_configure_cmd ),
2436+ .func = periodic_adv_configure ,
2437+ },
24382438 {
2439- .opcode = GAP_PADV_START ,
2440- .expect_len = sizeof (struct gap_periodic_adv_start_cmd ),
2441- .func = periodic_adv_start ,
2442- },
2439+ .opcode = GAP_PADV_START ,
2440+ .expect_len = sizeof (struct gap_periodic_adv_start_cmd ),
2441+ .func = periodic_adv_start ,
2442+ },
24432443 {
2444- .opcode = GAP_PADV_SET_DATA ,
2445- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2446- .func = periodic_adv_set_data ,
2447- },
2444+ .opcode = GAP_PADV_SET_DATA ,
2445+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2446+ .func = periodic_adv_set_data ,
2447+ },
24482448 {
2449- .opcode = GAP_PADV_CREATE_SYNC ,
2450- .expect_len = sizeof (struct gap_periodic_adv_create_sync_cmd ),
2451- .func = periodic_adv_create_sync ,
2452- },
2449+ .opcode = GAP_PADV_CREATE_SYNC ,
2450+ .expect_len = sizeof (struct gap_periodic_adv_create_sync_cmd ),
2451+ .func = periodic_adv_create_sync ,
2452+ },
24532453#endif
24542454#if MYNEWT_VAL (BLE_PERIODIC_ADV_SYNC_TRANSFER )
24552455 {
2456- .opcode = GAP_PADV_SYNC_TRANSFER_SET_INFO ,
2457- .expect_len =
2458- sizeof (struct gap_periodic_adv_sync_transfer_set_info_cmd ),
2459- .func = periodic_adv_sync_transfer_set_info ,
2460- },
2456+ .opcode = GAP_PADV_SYNC_TRANSFER_SET_INFO ,
2457+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_set_info_cmd ),
2458+ .func = periodic_adv_sync_transfer_set_info ,
2459+ },
24612460 {
2462- .opcode = GAP_PADV_SYNC_TRANSFER_START ,
2463- .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_start_cmd ),
2464- .func = periodic_adv_sync_transfer_start ,
2465- },
2461+ .opcode = GAP_PADV_SYNC_TRANSFER_START ,
2462+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_start_cmd ),
2463+ .func = periodic_adv_sync_transfer_start ,
2464+ },
24662465 {
2467- .opcode = GAP_PADV_SYNC_TRANSFER_RECV ,
2468- .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_recv_cmd ),
2469- .func = periodic_adv_sync_transfer_recv ,
2470- },
2466+ .opcode = GAP_PADV_SYNC_TRANSFER_RECV ,
2467+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_recv_cmd ),
2468+ .func = periodic_adv_sync_transfer_recv ,
2469+ },
24712470#endif
24722471#if MYNEWT_VAL (BLE_CONN_SUBRATING )
24732472 {
2474- .opcode = GAP_SUBRATE_REQUEST ,
2475- .expect_len = sizeof (struct gap_subrate_request_cmd ),
2476- .func = subrate_request ,
2477- },
2473+ .opcode = GAP_SUBRATE_REQUEST ,
2474+ .expect_len = sizeof (struct gap_subrate_request_cmd ),
2475+ .func = subrate_request ,
2476+ },
24782477#endif
24792478 {
24802479 .opcode = GAP_CONFIGURE_SECURITY_MODE ,
0 commit comments