File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1980,6 +1980,17 @@ static inline const char *bt_security_err_to_str(enum bt_security_err err)
1980
1980
*/
1981
1981
void bt_set_bondable (bool enable );
1982
1982
1983
+ /** @brief Get bonding flag.
1984
+ *
1985
+ * Get current bonding flag.
1986
+ * The initial value of this flag depends on @kconfig{CONFIG_BT_BONDABLE} Kconfig
1987
+ * setting.
1988
+ * The Bonding flag can be updated using bt_set_bondable().
1989
+ *
1990
+ * @return Current bonding flag.
1991
+ */
1992
+ bool bt_get_bondable (void );
1993
+
1983
1994
/** @brief Set/clear the bonding flag for a given connection.
1984
1995
*
1985
1996
* Set/clear the Bonding flag in the Authentication Requirements of
Original file line number Diff line number Diff line change @@ -2639,6 +2639,11 @@ void bt_set_bondable(bool enable)
2639
2639
bondable = enable ;
2640
2640
}
2641
2641
2642
+ bool bt_get_bondable (void )
2643
+ {
2644
+ return bondable ;
2645
+ }
2646
+
2642
2647
void bt_le_oob_set_sc_flag (bool enable )
2643
2648
{
2644
2649
sc_oobd_present = enable ;
You can’t perform that action at this time.
0 commit comments