Skip to content

Commit

Permalink
Bluetooth: Shell: Add a argument server to rfcomm_accept()
Browse files Browse the repository at this point in the history
Since a new argument `server` is added by `bt_rfcomm_server.accept`,
add a argument `server` to function rfcomm_accept() to avoid building
issue.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 committed Jan 10, 2025
1 parent ab811fd commit bfbb20f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion subsys/bluetooth/host/classic/shell/rfcomm.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ static struct bt_rfcomm_dlc rfcomm_dlc = {
.mtu = 30,
};

static int rfcomm_accept(struct bt_conn *conn, struct bt_rfcomm_dlc **dlc)
static int rfcomm_accept(struct bt_conn *conn, struct bt_rfcomm_server *server,
struct bt_rfcomm_dlc **dlc)
{
shell_print(ctx_shell, "Incoming RFCOMM conn %p", conn);

Expand Down

0 comments on commit bfbb20f

Please sign in to comment.