Thread (2 messages) 2 messages, 2 authors, 2022-09-16

How does btmon know that type 9 is "Apple TV"?

From: Jake Rue <hidden>
Date: 2022-09-16 20:11:43

In an advertisement like this:
HCI Event: LE Meta Event (0x3e) plen 27                                                                                                                                                              #86 [hci0] 44.156857
      LE Advertising Report (0x02)
        Num reports: 1
        Event type: Non connectable undirected - ADV_NONCONN_IND (0x03)
        Address type: Random (0x01)
        Address: 0D:07:B9:9A:33:0F (Non-Resolvable)
        Data length: 15
        Flags: 0x1a
          LE General Discoverable Mode
          Simultaneous LE and BR/EDR (Controller)
          Simultaneous LE and BR/EDR (Host)
        Company: Apple, Inc. (76)
          Type: Apple TV (9)
          Data: 0376c0a801f5
        RSSI: -80 dBm (0xb0)

Where does the mapping of Type 9 to "Apple TV" come from in the code?
When I search the bluez github repository for "Apple TV"
(https://github.com/bluez/bluez/search?q=%22Apple+TV%22), I don't get
any hits. (In contrast I can find the switch statement that encodes 76
== "Apple, Inc." fine.) I'd like to see what table encodes that
information so I can use it in my code as well (and what all it knows
about other types.)

- Thank You
Jake Rue
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help