Skip to content

Commit

Permalink
bluetooth: shell: completely eliminate the dependency on ctx_shell
Browse files Browse the repository at this point in the history
This commit removes the `ctx_shell` declaration from the Bluetooth shell,
marking a milestone in eliminating this dependency.

Signed-off-by: Pisit Sawangvonganan <[email protected]>
  • Loading branch information
ndrs-pst authored and kartben committed Jan 14, 2025
1 parent 2ea23ce commit bd92494
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions subsys/bluetooth/host/shell/bt.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
static bool no_settings_load;

uint8_t selected_id = BT_ID_DEFAULT;
const struct shell *ctx_shell;

#if defined(CONFIG_BT_CONN)
struct bt_conn *default_conn;
Expand Down Expand Up @@ -1310,8 +1309,6 @@ static int cmd_init(const struct shell *sh, size_t argc, char *argv[])
int err;
bool sync = false;

ctx_shell = sh;

for (size_t argn = 1; argn < argc; argn++) {
const char *arg = argv[argn];

Expand Down
1 change: 0 additions & 1 deletion subsys/bluetooth/host/shell/bt.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <zephyr/bluetooth/bluetooth.h>
#include <sys/types.h>

extern const struct shell *ctx_shell;
extern struct bt_conn *default_conn;

bool passes_scan_filter(const struct bt_le_scan_recv_info *info, const struct net_buf_simple *buf);
Expand Down

0 comments on commit bd92494

Please sign in to comment.