Bluetooth: Classic: Add support for class of device

Add `CONFIG_BT_COD` for class of device.

< HCI Command: Write Class of Device (0x03|0x0024) plen 3
        Class: 0x200408
          Major class: Audio/Video (headset, speaker, stereo, video, vcr)
          Minor class: Hands-free Device
          Audio (Speaker, Microphone, Headset)
> HCI Event: Command Complete (0x0e) plen 4
      Write Class of Device (0x03|0x0024) ncmd 1
        Status: Success (0x00)

Signed-off-by: Hang Fan <fanhang8@gmail.com>
This commit is contained in:
Hang Fan 2024-01-23 22:10:04 +08:00 committed by Fabio Baltieri
commit b3d2891e16
3 changed files with 23 additions and 0 deletions

View file

@ -4,3 +4,4 @@ CONFIG_BT_RFCOMM=y
CONFIG_BT_HFP_HF=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_NAME="test-Handsfree"
CONFIG_BT_COD=0x200408