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:
Lwazi Dube
2023-05-03 13:05:45 -04:00
committed by Xiang Xiao
parent af559a8311
commit 16fc1b47b9
9 changed files with 238 additions and 7 deletions
+2
View File
@@ -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();