[PATCH 6.1 10/16] bluetooth: Perform careful capability checks in hci_sock_ioctl()