@@ -2291,22 +2291,22 @@ static int cmd_send(const struct shell *sh, size_t argc, char *argv[])
2291
2291
return - ENOEXEC ;
2292
2292
}
2293
2293
2294
- if (txing_stream -> qos == NULL ) {
2294
+ if (default_stream -> qos == NULL ) {
2295
2295
shell_error (sh , "NULL stream QoS" );
2296
2296
2297
2297
return - ENOEXEC ;
2298
2298
}
2299
2299
2300
2300
if (argc > 1 ) {
2301
2301
len = hex2bin (argv [1 ], strlen (argv [1 ]), data , sizeof (data ));
2302
- if (len > txing_stream -> qos -> sdu ) {
2302
+ if (len > default_stream -> qos -> sdu ) {
2303
2303
shell_print (sh , "Unable to send: len %d > %u MTU" ,
2304
- len , txing_stream -> qos -> sdu );
2304
+ len , default_stream -> qos -> sdu );
2305
2305
2306
2306
return - ENOEXEC ;
2307
2307
}
2308
2308
} else {
2309
- len = MIN (txing_stream -> qos -> sdu , sizeof (data ));
2309
+ len = MIN (default_stream -> qos -> sdu , sizeof (data ));
2310
2310
memset (data , 0xff , len );
2311
2311
}
2312
2312
@@ -2315,10 +2315,10 @@ static int cmd_send(const struct shell *sh, size_t argc, char *argv[])
2315
2315
2316
2316
net_buf_add_mem (buf , data , len );
2317
2317
2318
- seq_num = get_next_seq_num (txing_stream -> qos -> interval );
2318
+ seq_num = get_next_seq_num (default_stream -> qos -> interval );
2319
2319
2320
- ret = bt_bap_stream_send (txing_stream , buf , seq_num ,
2321
- BT_ISO_TIMESTAMP_NONE );
2320
+ ret = bt_bap_stream_send (default_stream , buf , seq_num ,
2321
+ BT_ISO_TIMESTAMP_NONE );
2322
2322
if (ret < 0 ) {
2323
2323
shell_print (sh , "Unable to send: %d" , - ret );
2324
2324
net_buf_unref (buf );
0 commit comments