Skip to content

Commit eafc6c0

Browse files
joerchannashif
authored andcommitted
Bluetooth: host: Fix BT_LOG_SNIFFER_INFO option without BT_SMP enabled
Fix undefined reference to bt_key_foreach when BT_LOG_SNIFFER_INFO has been enabled but BT_SMP is not enabled. Signed-off-by: Joakim Andersson <[email protected]>
1 parent 9f67d1c commit eafc6c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

subsys/bluetooth/host/hci_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2969,7 +2969,8 @@ static void bt_dev_show_info(void)
29692969
}
29702970
}
29712971

2972-
if (IS_ENABLED(CONFIG_BT_LOG_SNIFFER_INFO)) {
2972+
if (IS_ENABLED(CONFIG_BT_SMP) &&
2973+
IS_ENABLED(CONFIG_BT_LOG_SNIFFER_INFO)) {
29732974
bt_keys_foreach(BT_KEYS_ALL, bt_keys_show_sniffer_info, NULL);
29742975
}
29752976

0 commit comments

Comments
 (0)