Skip to content

Commit

Permalink
Bluetooth: BR: Change the type of resolving to bool
Browse files Browse the repository at this point in the history
The `resolving` is used to flag the status that the stack is requesting
remote device name.

It is better to use the type `bool` instead of the original type
`uint8_t`.

Signed-off-by: Lyle Zhu <[email protected]>
  • Loading branch information
lylezhu2012 committed Sep 26, 2024
1 parent a71b3eb commit 9627db2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/zephyr/bluetooth/classic/classic.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct bt_br_discovery_priv {
/** Page scan repetition mode */
uint8_t pscan_rep_mode;
/** Resolving remote name*/
uint8_t resolving;
bool resolving;
};

/** @brief BR/EDR discovery result structure */
Expand Down
4 changes: 2 additions & 2 deletions subsys/bluetooth/host/classic/br.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static void report_discovery_results(void)
continue;
}

priv->resolving = 1U;
priv->resolving = true;
resolving_names = true;
}

Expand Down Expand Up @@ -516,7 +516,7 @@ void bt_hci_remote_name_request_complete(struct net_buf *buf)
}

priv = &result->_priv;
priv->resolving = 0U;
priv->resolving = false;

if (evt->status) {
goto check_names;
Expand Down

0 comments on commit 9627db2

Please sign in to comment.