Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2617756rwn; Fri, 16 Sep 2022 13:15:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LIzz9bwBJGXktpjmPIhno+iknBQ5BchOQF1LhgQ40rO7WkqFHQiUbXzR92oi7NA42/yKg X-Received: by 2002:a17:907:7b9d:b0:77d:8cd3:ea3a with SMTP id ne29-20020a1709077b9d00b0077d8cd3ea3amr4641749ejc.746.1663359346145; Fri, 16 Sep 2022 13:15:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663359346; cv=none; d=google.com; s=arc-20160816; b=rkzZ+csHrSdPLfAC+fcN4qUn+ZMX/1YKxQ562miWW4iBe2/kgqMEBQqnYPlH+OP7vT AHvTxZaujIQAtTjAbIfKc57mW7efZNRpex3ngbZ79a6jYDBLD9poLd7ra5iPSkeKSRjq jHmCNK9YKL6zemRTrWcF92lJrfxVP+VGEtqGYaOKyN/KMfdhTek8A6qM/G8vqNjZdQHT lxrQrISo321pnU1xE4k4a0ULNgz4DYJGfA1zhP5/LXqFaRiRlpdba0liVRH+3jtHrFML pGYykAxBu6Ex9+3IkqRN+oFCXvAJCWBYJl4VIKNonjEGgkz/V7wqSVcXSogNow9TmatP KBbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:mime-version :dkim-signature; bh=xFv4c5vgIPhnrUnnlimN+PSFxLx42+5xoaRpY/hoGcg=; b=ErLd5HKa17xblM8097l547AacLA2l7AfpwnB78hI/1lqnto/1X4a0VO0/BveGzydxB K8Vr2lLbh7Cp1pPmZxWkX69F3Fdj7tDCtuM2DBmVJRjUByMvD1cP3kvcdS/rWIAZis0n 3Mk/I4CBVmFBq2ThxVz4bl4kpEDtxWKhJ+gw3rRu3gEyRIVaTdtJ00+9Oy35Ah0JDR9C 1BsM+7CA1xdhgorBHwvYNc6lYW/hCTWUTLNifnJaLHVRDvrpaER+h8Le+mEyn7TqQaP5 HT3JIW/ebWaIUuQrDCIxza55F1BAfr5WUvbA13Rgk3S/nj9BGYE2J0PM5/s3P317fSSq kOxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eDXg0XdK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b4-20020a0564021f0400b0044eab363b67si2883023edb.130.2022.09.16.13.14.57; Fri, 16 Sep 2022 13:15:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eDXg0XdK; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230042AbiIPULl (ORCPT + 99 others); Fri, 16 Sep 2022 16:11:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229940AbiIPULl (ORCPT ); Fri, 16 Sep 2022 16:11:41 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3FDA285A for ; Fri, 16 Sep 2022 13:11:40 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id t184so34195112yba.4 for ; Fri, 16 Sep 2022 13:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=xFv4c5vgIPhnrUnnlimN+PSFxLx42+5xoaRpY/hoGcg=; b=eDXg0XdKlu3mN55zsMJKwjlLrrsxIrjC6kcFIdBNAwnqBa48SydhErs0gpdrfIsVKM K6R/pJ5iHNFMQPSjB+TyAVAwatJZ/5Kb4LEBo7IljGJeWoFZnHZbhWYbgDh01Sr0kKXb Ab5pTU9lfBpNB/455RiMV9EkiWlHCRergno6V2gWr2h5Uwk1qnUAYc3EbM1sqBT6m63d hxE6q6AuzkerOvtMZZS57ysoZ2vf+g7r7Q5k8hJssicfvhbRx9J/RLuWQVw37B8nKT1j UmN6cTGI6Y6Q00G24A9OlxpFMGoNOwZxzDtYXPi8nFxHhqlwYkHtBUgSCCqkDMj+sW7Z SCKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=xFv4c5vgIPhnrUnnlimN+PSFxLx42+5xoaRpY/hoGcg=; b=wzNN+EGwlcE3ZYCPzAoM3aHVIBZ8M3iiBIjOP8YKCjDNsaX99rFLMBRJgPf4RbqsSO I+/wdiJBajOhYiHk7vYs2rTwpKy/W9POdHo8SVRgYdMpPW+KO40gomEx1L7WgHgYokFF 8CML3kdcKgLMmdhNZKEHimKAgKRm/VSpyV3sGIzUwQs/oRjcHhxM43HdMDw6i233ixEj bOCZcMFmAfnnISVQUWrY2EEzwYo/sHt4dtXhFkCCcyMos/NW2IhB15yejrVSTdteArR/ x85uJhkYMrcnCmp21vzQXNev9VkO6eKeuLn/N4uHzZIxY5kmBLZny7hv5XYg+qU/xlwe NpiA== X-Gm-Message-State: ACrzQf30G9+6EaWsVkLL+VxpIUrIDj8djGs3eOXUydxP7hVi+rCIShPm nFp9pmAbIGgO8E0xE0lnIXHr0H9E0+JYJUqLAG+gCzVRSI4htw== X-Received: by 2002:a25:8550:0:b0:691:11f9:41dd with SMTP id f16-20020a258550000000b0069111f941ddmr5315344ybn.600.1663359099570; Fri, 16 Sep 2022 13:11:39 -0700 (PDT) MIME-Version: 1.0 From: Jake Rue Date: Fri, 16 Sep 2022 13:11:28 -0700 Message-ID: Subject: How does btmon know that type 9 is "Apple TV"? To: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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