@@ -2304,180 +2304,179 @@ configure_security_mode(const void *cmd, uint16_t cmd_len, void *rsp, uint16_t *
23042304
23052305static const struct btp_handler handlers [] = {
23062306 {
2307- .opcode = BTP_GAP_READ_SUPPORTED_COMMANDS ,
2308- .index = BTP_INDEX_NONE ,
2309- .expect_len = 0 ,
2310- .func = supported_commands ,
2311- },
2307+ .opcode = BTP_GAP_READ_SUPPORTED_COMMANDS ,
2308+ .index = BTP_INDEX_NONE ,
2309+ .expect_len = 0 ,
2310+ .func = supported_commands ,
2311+ },
23122312 {
2313- .opcode = BTP_GAP_READ_CONTROLLER_INDEX_LIST ,
2314- .index = BTP_INDEX_NONE ,
2315- .expect_len = 0 ,
2316- .func = controller_index_list ,
2317- },
2313+ .opcode = BTP_GAP_READ_CONTROLLER_INDEX_LIST ,
2314+ .index = BTP_INDEX_NONE ,
2315+ .expect_len = 0 ,
2316+ .func = controller_index_list ,
2317+ },
23182318 {
2319- .opcode = BTP_GAP_READ_CONTROLLER_INFO ,
2320- .expect_len = 0 ,
2321- .func = controller_info ,
2322- },
2319+ .opcode = BTP_GAP_READ_CONTROLLER_INFO ,
2320+ .expect_len = 0 ,
2321+ .func = controller_info ,
2322+ },
23232323 {
2324- .opcode = BTP_GAP_SET_CONNECTABLE ,
2325- .expect_len = sizeof (struct btp_gap_set_connectable_cmd ),
2326- .func = set_connectable ,
2327- },
2324+ .opcode = BTP_GAP_SET_CONNECTABLE ,
2325+ .expect_len = sizeof (struct btp_gap_set_connectable_cmd ),
2326+ .func = set_connectable ,
2327+ },
23282328 {
2329- .opcode = BTP_GAP_SET_DISCOVERABLE ,
2330- .expect_len = sizeof (struct btp_gap_set_discoverable_cmd ),
2331- .func = set_discoverable ,
2332- },
2329+ .opcode = BTP_GAP_SET_DISCOVERABLE ,
2330+ .expect_len = sizeof (struct btp_gap_set_discoverable_cmd ),
2331+ .func = set_discoverable ,
2332+ },
23332333 {
2334- .opcode = BTP_GAP_SET_BONDABLE ,
2335- .expect_len = sizeof (struct btp_gap_set_bondable_cmd ),
2336- .func = set_bondable ,
2337- },
2334+ .opcode = BTP_GAP_SET_BONDABLE ,
2335+ .expect_len = sizeof (struct btp_gap_set_bondable_cmd ),
2336+ .func = set_bondable ,
2337+ },
23382338 {
2339- .opcode = BTP_GAP_START_ADVERTISING ,
2340- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2341- .func = start_advertising ,
2342- },
2339+ .opcode = BTP_GAP_START_ADVERTISING ,
2340+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2341+ .func = start_advertising ,
2342+ },
23432343 {
2344- .opcode = BTP_GAP_START_DIRECT_ADV ,
2345- .expect_len = sizeof (struct btp_gap_start_direct_adv_cmd ),
2346- .func = start_direct_adv ,
2347- },
2344+ .opcode = BTP_GAP_START_DIRECT_ADV ,
2345+ .expect_len = sizeof (struct btp_gap_start_direct_adv_cmd ),
2346+ .func = start_direct_adv ,
2347+ },
23482348 {
2349- .opcode = BTP_GAP_STOP_ADVERTISING ,
2350- .expect_len = 0 ,
2351- .func = stop_advertising ,
2352- },
2349+ .opcode = BTP_GAP_STOP_ADVERTISING ,
2350+ .expect_len = 0 ,
2351+ .func = stop_advertising ,
2352+ },
23532353 {
2354- .opcode = BTP_GAP_START_DISCOVERY ,
2355- .expect_len = sizeof (struct btp_gap_start_discovery_cmd ),
2356- .func = start_discovery ,
2357- },
2354+ .opcode = BTP_GAP_START_DISCOVERY ,
2355+ .expect_len = sizeof (struct btp_gap_start_discovery_cmd ),
2356+ .func = start_discovery ,
2357+ },
23582358 {
2359- .opcode = BTP_GAP_STOP_DISCOVERY ,
2360- .expect_len = 0 ,
2361- .func = stop_discovery ,
2362- },
2359+ .opcode = BTP_GAP_STOP_DISCOVERY ,
2360+ .expect_len = 0 ,
2361+ .func = stop_discovery ,
2362+ },
23632363 {
2364- .opcode = BTP_GAP_CONNECT ,
2365- .expect_len = sizeof (struct btp_gap_connect_cmd ),
2366- .func = connect ,
2367- },
2364+ .opcode = BTP_GAP_CONNECT ,
2365+ .expect_len = sizeof (struct btp_gap_connect_cmd ),
2366+ .func = connect ,
2367+ },
23682368 {
2369- .opcode = BTP_GAP_DISCONNECT ,
2370- .expect_len = sizeof (struct btp_gap_disconnect_cmd ),
2371- .func = disconnect ,
2372- },
2369+ .opcode = BTP_GAP_DISCONNECT ,
2370+ .expect_len = sizeof (struct btp_gap_disconnect_cmd ),
2371+ .func = disconnect ,
2372+ },
23732373 {
2374- .opcode = BTP_GAP_SET_IO_CAP ,
2375- .expect_len = sizeof (struct btp_gap_set_io_cap_cmd ),
2376- .func = set_io_cap ,
2377- },
2374+ .opcode = BTP_GAP_SET_IO_CAP ,
2375+ .expect_len = sizeof (struct btp_gap_set_io_cap_cmd ),
2376+ .func = set_io_cap ,
2377+ },
23782378 {
2379- .opcode = BTP_GAP_PAIR ,
2380- .expect_len = sizeof (struct btp_gap_pair_cmd ),
2381- .func = pair ,
2382- },
2379+ .opcode = BTP_GAP_PAIR ,
2380+ .expect_len = sizeof (struct btp_gap_pair_cmd ),
2381+ .func = pair ,
2382+ },
23832383 {
2384- .opcode = BTP_GAP_UNPAIR ,
2385- .expect_len = sizeof (struct btp_gap_unpair_cmd ),
2386- .func = unpair ,
2387- },
2384+ .opcode = BTP_GAP_UNPAIR ,
2385+ .expect_len = sizeof (struct btp_gap_unpair_cmd ),
2386+ .func = unpair ,
2387+ },
23882388 {
2389- .opcode = BTP_GAP_PASSKEY_ENTRY ,
2390- .expect_len = sizeof (struct btp_gap_passkey_entry_cmd ),
2391- .func = passkey_entry ,
2392- },
2389+ .opcode = BTP_GAP_PASSKEY_ENTRY ,
2390+ .expect_len = sizeof (struct btp_gap_passkey_entry_cmd ),
2391+ .func = passkey_entry ,
2392+ },
23932393 {
2394- .opcode = BTP_GAP_PASSKEY_CONFIRM ,
2395- .expect_len = sizeof (struct btp_gap_passkey_confirm_cmd ),
2396- .func = passkey_confirm ,
2397- },
2394+ .opcode = BTP_GAP_PASSKEY_CONFIRM ,
2395+ .expect_len = sizeof (struct btp_gap_passkey_confirm_cmd ),
2396+ .func = passkey_confirm ,
2397+ },
23982398 {
2399- .opcode = BTP_GAP_CONN_PARAM_UPDATE ,
2400- .expect_len = sizeof (struct btp_gap_conn_param_update_cmd ),
2401- .func = conn_param_update_async ,
2402- },
2399+ .opcode = BTP_GAP_CONN_PARAM_UPDATE ,
2400+ .expect_len = sizeof (struct btp_gap_conn_param_update_cmd ),
2401+ .func = conn_param_update_async ,
2402+ },
24032403 {
2404- .opcode = BTP_GAP_OOB_LEGACY_SET_DATA ,
2405- .expect_len = sizeof (struct btp_gap_oob_legacy_set_data_cmd ),
2406- .func = set_oob_legacy_data ,
2407- },
2404+ .opcode = BTP_GAP_OOB_LEGACY_SET_DATA ,
2405+ .expect_len = sizeof (struct btp_gap_oob_legacy_set_data_cmd ),
2406+ .func = set_oob_legacy_data ,
2407+ },
24082408 {
2409- .opcode = BTP_GAP_OOB_SC_GET_LOCAL_DATA ,
2410- .expect_len = 0 ,
2411- .func = get_oob_sc_local_data ,
2412- },
2409+ .opcode = BTP_GAP_OOB_SC_GET_LOCAL_DATA ,
2410+ .expect_len = 0 ,
2411+ .func = get_oob_sc_local_data ,
2412+ },
24132413 {
2414- .opcode = BTP_GAP_OOB_SC_SET_REMOTE_DATA ,
2415- .expect_len = sizeof (struct btp_gap_oob_sc_set_remote_data_cmd ),
2416- .func = set_oob_sc_remote_data ,
2417- },
2414+ .opcode = BTP_GAP_OOB_SC_SET_REMOTE_DATA ,
2415+ .expect_len = sizeof (struct btp_gap_oob_sc_set_remote_data_cmd ),
2416+ .func = set_oob_sc_remote_data ,
2417+ },
24182418 {
2419- .opcode = BTP_GAP_SET_MITM ,
2420- .expect_len = sizeof (struct btp_gap_set_mitm_cmd ),
2421- .func = set_mitm ,
2422- },
2419+ .opcode = BTP_GAP_SET_MITM ,
2420+ .expect_len = sizeof (struct btp_gap_set_mitm_cmd ),
2421+ .func = set_mitm ,
2422+ },
24232423 {
2424- .opcode = BTP_GAP_SET_FILTER_ACCEPT_LIST ,
2425- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2426- .func = set_filter_accept_list ,
2427- },
2424+ .opcode = BTP_GAP_SET_FILTER_ACCEPT_LIST ,
2425+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2426+ .func = set_filter_accept_list ,
2427+ },
24282428#if MYNEWT_VAL (BLE_EXT_ADV )
24292429 {
2430- .opcode = GAP_SET_EXT_ADV ,
2431- .expect_len = sizeof (struct btp_gap_set_ext_advertising_cmd ),
2432- .func = set_ext_advertising ,
2433- },
2430+ .opcode = GAP_SET_EXT_ADV ,
2431+ .expect_len = sizeof (struct btp_gap_set_ext_advertising_cmd ),
2432+ .func = set_ext_advertising ,
2433+ },
24342434#endif /* BLE_EXT_ADV*/
24352435#if MYNEWT_VAL (BLE_PERIODIC_ADV )
24362436 {
2437- .opcode = GAP_PADV_CONFIGURE ,
2438- .expect_len = sizeof (struct gap_periodic_adv_configure_cmd ),
2439- .func = periodic_adv_configure ,
2440- },
2437+ .opcode = GAP_PADV_CONFIGURE ,
2438+ .expect_len = sizeof (struct gap_periodic_adv_configure_cmd ),
2439+ .func = periodic_adv_configure ,
2440+ },
24412441 {
2442- .opcode = GAP_PADV_START ,
2443- .expect_len = sizeof (struct gap_periodic_adv_start_cmd ),
2444- .func = periodic_adv_start ,
2445- },
2442+ .opcode = GAP_PADV_START ,
2443+ .expect_len = sizeof (struct gap_periodic_adv_start_cmd ),
2444+ .func = periodic_adv_start ,
2445+ },
24462446 {
2447- .opcode = GAP_PADV_SET_DATA ,
2448- .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2449- .func = periodic_adv_set_data ,
2450- },
2447+ .opcode = GAP_PADV_SET_DATA ,
2448+ .expect_len = BTP_HANDLER_LENGTH_VARIABLE ,
2449+ .func = periodic_adv_set_data ,
2450+ },
24512451 {
2452- .opcode = GAP_PADV_CREATE_SYNC ,
2453- .expect_len = sizeof (struct gap_periodic_adv_create_sync_cmd ),
2454- .func = periodic_adv_create_sync ,
2455- },
2452+ .opcode = GAP_PADV_CREATE_SYNC ,
2453+ .expect_len = sizeof (struct gap_periodic_adv_create_sync_cmd ),
2454+ .func = periodic_adv_create_sync ,
2455+ },
24562456#endif
24572457#if MYNEWT_VAL (BLE_PERIODIC_ADV_SYNC_TRANSFER )
24582458 {
2459- .opcode = GAP_PADV_SYNC_TRANSFER_SET_INFO ,
2460- .expect_len =
2461- sizeof (struct gap_periodic_adv_sync_transfer_set_info_cmd ),
2462- .func = periodic_adv_sync_transfer_set_info ,
2463- },
2459+ .opcode = GAP_PADV_SYNC_TRANSFER_SET_INFO ,
2460+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_set_info_cmd ),
2461+ .func = periodic_adv_sync_transfer_set_info ,
2462+ },
24642463 {
2465- .opcode = GAP_PADV_SYNC_TRANSFER_START ,
2466- .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_start_cmd ),
2467- .func = periodic_adv_sync_transfer_start ,
2468- },
2464+ .opcode = GAP_PADV_SYNC_TRANSFER_START ,
2465+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_start_cmd ),
2466+ .func = periodic_adv_sync_transfer_start ,
2467+ },
24692468 {
2470- .opcode = GAP_PADV_SYNC_TRANSFER_RECV ,
2471- .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_recv_cmd ),
2472- .func = periodic_adv_sync_transfer_recv ,
2473- },
2469+ .opcode = GAP_PADV_SYNC_TRANSFER_RECV ,
2470+ .expect_len = sizeof (struct gap_periodic_adv_sync_transfer_recv_cmd ),
2471+ .func = periodic_adv_sync_transfer_recv ,
2472+ },
24742473#endif
24752474#if MYNEWT_VAL (BLE_CONN_SUBRATING )
24762475 {
2477- .opcode = GAP_SUBRATE_REQUEST ,
2478- .expect_len = sizeof (struct gap_subrate_request_cmd ),
2479- .func = subrate_request ,
2480- },
2476+ .opcode = GAP_SUBRATE_REQUEST ,
2477+ .expect_len = sizeof (struct gap_subrate_request_cmd ),
2478+ .func = subrate_request ,
2479+ },
24812480#endif
24822481 {
24832482 .opcode = GAP_CONFIGURE_SECURITY_MODE ,
0 commit comments