btashton opened a new pull request #2305: URL: https://github.com/apache/incubator-nuttx/pull/2305
## Summary The bt_null driver does very limited emulation of commands for testing the stack so it should not be expected to handle more complex modes like encryption. This disables this self test from the sim:bluetooth configuration that previously would result in this. I thought about changing the Kconfig to do this automatically, but I think it is worth it to allow this mode to be selected if we want to be able to test the smp flow in the future. Plus this area is very much in flux right now. This resolves #2084 ``` le_encrypt: enc_data 00000000000000000000000000000000 cmac_subkey: l 00000000000000000000000000000000 bt_smp_aes_cmac: key 2b7e151628aed2a6abf7158809cf4f3c subkeys k1 00000000000000000000000000000000 k2 00000000000000000000000000000000 bt_smp_aes_cmac: len 0 n 1 flag 0 le_encrypt: key 3c4fcf098815f7aba6d2ae2816157e2b plaintext 00000000000000000000000000000080 bt_hci_cmd_create: opcode 2017 param_len 32 bt_buf_alloc: buf 0x56126d488530 type 0 reserve 0 bt_hci_cmd_create: buf 0x56126d488530 bt_buf_extend: buf 0x56126d488530 len 3 bt_buf_extend: buf 0x56126d488530 len 32 bt_hci_cmd_send_sync: opcode 2017 len 35 hci_tx_kthread: Sending command 2017 buf 0x56126d488530 to driver btnull_send: Bit bucket: length 35 btnull_send: CMD: 2017 bt_buf_alloc: buf 0x56126d488560 type 1 reserve 0 btnull_send: Send CMD complete event bt_hci_receive: buf 0x56126d488560 len 5 priority_rx_work: list 0x56126d488650 priority_rx_work: buf 0x56126d488560 type 1 len 5 bt_buf_consume: buf 0x56126d488560 len 2 hci_cmd_complete: opcode 2017 bt_buf_consume: buf 0x56126d488560 len 3 hci_cmd_complete: Unhandled opcode 2017 hci_cmd_done: WARNING: status 207 bt_buf_release: buf 0x56126d488560 ref 1 type 1 bt_buf_release: Buffer freed: 0x56126d488560 bt_hci_cmd_send_sync: ERROR: Failed get return parameters bt_buf_release: buf 0x56126d488530 ref 1 type 0 bt_buf_release: Buffer freed: 0x56126d488530 aes_test: ERROR: Test aes-cmac0: Failed smp_self_test: ERROR: SMP AES-CMAC self tests failed ERROR: btnull_register() failed: -1 ``` ## Impact The `sim:bluetooth` configuration is not able to fully register the bluetooth device. ## Testing Tested that the device is registered by enabling debug logging. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
