Skip to content

Bluetooth: Shell: Bluetooth scan failed (err -22) in audio_shell after trying to connect to a device by name #78659

@babrsn

Description

@babrsn

Describe the bug
In audio_shell, after initializing Bluetooth successfully (bt init), attempting to connect to a device by name (bt connect-name <device_name>) fails with the error message: Bluetooth scan failed (err -22).

To Reproduce

  1. Update branch to the latest on upstream.
  2. Build and flash audio_shell to a board.
  3. Initialize Bluetooth using bt init.
  4. Attempt to connect to a device by name using bt connect-name <device_name>.
  5. Observe the error message: Bluetooth scan failed (err -22).

Expected behavior
The device should connect successfully without any errors.

Impact
Minor problem in audio shell that prevents connecting to a device by name.

Logs and console output
N/A

Additional context
N/A

Metadata

Metadata

Assignees

Labels

area: Bluetootharea: Bluetooth HostBluetooth Host (excluding BR/EDR)bugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions