bluetooth: pairing_accept's feat parameter is NULL in BR/EDR SSP case

Add description in the callback definition.

Signed-off-by: Mark Wang <yichang.wang@nxp.com>
This commit is contained in:
Mark Wang 2025-05-20 21:36:32 +08:00 committed by Benjamin Cabé
commit 36bdc6c502

View file

@ -2263,10 +2263,11 @@ struct bt_conn_auth_cb {
* as if the Kconfig flag was not set. * as if the Kconfig flag was not set.
* *
* For BR/EDR Secure Simple Pairing (SSP), this callback is called * For BR/EDR Secure Simple Pairing (SSP), this callback is called
* when receiving the BT_HCI_EVT_IO_CAPA_REQ hci event. * when receiving the BT_HCI_EVT_IO_CAPA_REQ hci event. The feat is
* NULL here.
* *
* @param conn Connection where pairing is initiated. * @param conn Connection where pairing is initiated.
* @param feat Pairing req/resp info. * @param feat Pairing req/resp info. It is NULL in BR/EDR SSP.
*/ */
enum bt_security_err (*pairing_accept)(struct bt_conn *conn, enum bt_security_err (*pairing_accept)(struct bt_conn *conn,
const struct bt_conn_pairing_feat *const feat); const struct bt_conn_pairing_feat *const feat);