Bluetooth: Fix compilation with SMP disabled
This fix SMP dependency checks in connection code. Change-Id: Ic7e515885381bd243c89f2a6e10c356095e79b55 Signed-off-by: Szymon Janc <ext.szymon.janc@tieto.com>
This commit is contained in:
parent
74333b74af
commit
bc18a867b4
3 changed files with 18 additions and 19 deletions
|
@ -198,7 +198,18 @@ typedef enum {
|
|||
* @return 0 on success or negative error
|
||||
*/
|
||||
int bt_conn_security(struct bt_conn *conn, bt_security_t sec);
|
||||
#endif
|
||||
|
||||
/** @brief Get encryption key size.
|
||||
*
|
||||
* This function gets encryption key size.
|
||||
* If there is no security (encryption) enabled 0 will be returned.
|
||||
*
|
||||
* @param conn Existing connection object.
|
||||
*
|
||||
* @return Encryption key size.
|
||||
*/
|
||||
uint8_t bt_conn_enc_key_size(struct bt_conn *conn);
|
||||
#endif /* CONFIG_BLUETOOTH_SMP */
|
||||
|
||||
/** Connection callback structure */
|
||||
struct bt_conn_cb {
|
||||
|
@ -221,16 +232,5 @@ struct bt_conn_cb {
|
|||
*/
|
||||
void bt_conn_cb_register(struct bt_conn_cb *cb);
|
||||
|
||||
/** @brief Get encryption key size.
|
||||
*
|
||||
* This function gets encryption key size.
|
||||
* If there is no security (encryption) enabled 0 will be returned.
|
||||
*
|
||||
* @param conn Existing connection object.
|
||||
*
|
||||
* @return Encryption key size.
|
||||
*/
|
||||
uint8_t bt_conn_enc_key_size(struct bt_conn *conn);
|
||||
|
||||
#endif /* CONFIG_BLUETOOTH_CENTRAL || CONFIG_BLUETOOTH_PERIPHERAL */
|
||||
#endif /* __BT_CONN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue