mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
wireless/bluetooth: Support removable bluetooth modules.
This bluetooth stack remains in an inconsistent state when the bluetooth HCI module is removed. This change adds a bt_netdev_unregister function that can be used to clean up after a module is removed. Some global variables are also set to their default values.
This commit is contained in:
@@ -1584,6 +1584,8 @@ int bt_smp_initialize(void)
|
||||
.encrypt_change = bt_smp_encrypt_change,
|
||||
};
|
||||
|
||||
memset(g_smp_pool, 0, sizeof(g_smp_pool));
|
||||
|
||||
bt_l2cap_chan_register(&chan);
|
||||
|
||||
return smp_self_test();
|
||||
|
||||
Reference in New Issue
Block a user