Bluetooth: tester: Set privacy flag in current_settings

If CONFIG_BLUETOOTH_PRIVACY is set in Kconfig, current settings
shall indicate it's usage.

Change-Id: I0645aedf1b774617c9d97cec0070908aef919ca7
Signed-off-by: Mariusz Skamra <mariusz.skamra@gmail.com>
This commit is contained in:
Mariusz Skamra 2016-07-22 09:22:44 +02:00 committed by Johan Hedberg
parent 7fe81b92a6
commit c06a13a93d

View file

@ -569,6 +569,9 @@ static void tester_init_gap_cb(int err)
atomic_set_bit(&current_settings, GAP_SETTINGS_CONNECTABLE);
atomic_set_bit(&current_settings, GAP_SETTINGS_BONDABLE);
atomic_set_bit(&current_settings, GAP_SETTINGS_LE);
#if defined(CONFIG_BLUETOOTH_PRIVACY)
atomic_set_bit(&current_settings, GAP_SETTINGS_PRIVACY);
#endif /* CONFIG_BLUETOOTH_PRIVACY */
bt_conn_cb_register(&conn_callbacks);