Bluetooth: BR/EDR: Always enable security context fields

Always enable in connection object context fields related to security
requirements and encryption.
So far they were enabled only when Kconfig BLUETOOTH_SMP option is on.

Change-Id: Ib7da9ba1df97df5c08b00769c8ba078dfa63ff56
Signed-off-by: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
This commit is contained in:
Arkadiusz Lichwa 2016-01-07 14:17:10 +01:00 committed by Anas Nashif
commit d9d26c2d1a

View file

@ -62,11 +62,11 @@ struct bt_conn {
uint8_t pending_pkts;
#if defined(CONFIG_BLUETOOTH_SMP)
#if defined(CONFIG_BLUETOOTH_SMP) || defined(CONFIG_BLUETOOTH_BREDR)
uint8_t encrypt;
bt_security_t sec_level;
bt_security_t required_sec_level;
#endif /* CONFIG_BLUETOOTH_SMP */
#endif /* CONFIG_BLUETOOTH_SMP || CONFIG_BLUETOOTH_BREDR */
uint16_t rx_len;
struct net_buf *rx;