Skip to content
  • Marcel Holtmann's avatar
    [Bluetooth] Switch from OGF+OCF to using only opcodes · a9de9248
    Marcel Holtmann authored
    
    
    The Bluetooth HCI commands are divided into logical OGF groups for
    easier identification of their purposes. While this still makes sense
    for the written specification, its makes the code only more complex
    and harder to read. So instead of using separate OGF and OCF values
    to identify the commands, use a common 16-bit opcode that combines
    both values. As a side effect this also reduces the complexity of
    OGF and OCF calculations during command header parsing.
    
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    a9de9248