Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp413864rwr; Thu, 20 Apr 2023 00:54:21 -0700 (PDT) X-Google-Smtp-Source: AKy350Z0rv7jnvSt1m5K6copjrcVVvi6VBM2xT5TkONFMwTo4hn6HHNgqt0mGqstWym92j1jhlTw X-Received: by 2002:a17:903:32ce:b0:1a6:3c64:512e with SMTP id i14-20020a17090332ce00b001a63c64512emr792798plr.18.1681977261436; Thu, 20 Apr 2023 00:54:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681977261; cv=none; d=google.com; s=arc-20160816; b=MQxy+/GB+kYtHYsFGrtvKtClREShI/RTJARQfhtEAuE6JQzqPq+t2tywBCGBa906r7 kPL3nP0lA9ahIQ+snhFdcGXwR3blOV4tms2kW7361E5D4jjD53lSj0PbQhEYK+DzDilY Zf2KKxWVokVLvPdg4tJIjOVA9cF5f/VqpA0jhnq3W4MSIJBq6S+l99HIaVgo6KB1wCI0 xU0h7qgVH2+piDb0/qAn0kITQWkzON6QlpeOj5UJNMA8CnXyxmeGQRlDECdp12LkELFu wKYbhA4w/1mceYtVv6Vwl56N2XtX2nSSv1dxm091PoB8mfeUYLF2PEeDXWHvoSqb6CMX QPow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y6nu6piTr0i1fYr31JjKQwjtY64D+bWACwQlhYUMdwU=; b=jFQWcpXqy/1FSydewcHs9uhAZgakRL5Hml2hyh3L/MyOo1CtNRv+nF6dj1J5KVphiz ZH5tXWZ8RY0XzyfWUDxc0TxIVW/EBFeotp58w2lch5F7Ge5ReRPkM9XUGGKwjD27MoD5 Yn9FNTTqAAaGPuraP7FIrNqisUdsbhhJiK9kG9iZ/6TUYW/IqyauZZxWfpIMZkduu20E jyyUikATN1lnmwrmgbiX6CtKi/PKNW4Mpa+4VrzY2H6JIOdv2JiXitLnqIiCr1cuj3Xt QvT4xLYU0JH9YCBqmHNZiyEARuVppKsKEfnVQ2Ume4Yp1oAlfGZcoo7lxh22oeKzzk+n syxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=O949LiNr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 q1-20020a170902a3c100b0019e8456b5f2si996477plb.619.2023.04.20.00.54.11; Thu, 20 Apr 2023 00:54:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=20221208 header.b=O949LiNr; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-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 S234153AbjDTHxe (ORCPT + 63 others); Thu, 20 Apr 2023 03:53:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233984AbjDTHxb (ORCPT ); Thu, 20 Apr 2023 03:53:31 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81EFF271B for ; Thu, 20 Apr 2023 00:52:56 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f1763ee85bso4292815e9.2 for ; Thu, 20 Apr 2023 00:52:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681977153; x=1684569153; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Y6nu6piTr0i1fYr31JjKQwjtY64D+bWACwQlhYUMdwU=; b=O949LiNrYGRBg2zgUdykyqFF8QnxPJqNNkWDhg5gXYDE2Wl2RvZA4KEiaWN6r7JeAI bgiEKe5T3F39AAkgxzZOoCUg7a3hyzGV0kVnHyHIJj+b8tV6iioacpfMG70C/VJU1sVi 4+F+yv/2Jxqnlg4QnGtFSg6xe/Z79TRNwPt+O7vaY86+EG32nwbzQlDiP3Bq41I+X7KW 9mTzfIxeS7plQnRJbJxw+RZOTi9x9DFJNBK6c1IjbeHV4SmopPt6DpULdaScLq7Il3U7 q3IODDzVSd/NIFZ3OAGbHiFG+Yndit79bG2And15wPWCFozuuKqs9mHlShru6Yr4IIi3 GZhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681977153; x=1684569153; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Y6nu6piTr0i1fYr31JjKQwjtY64D+bWACwQlhYUMdwU=; b=mGQ6tmxly/9+XYA+asUAnaRc7HpVOjTGwA6EYrf7ORAR+1ar2lC5yz79SK267nWwN+ fOxuRbiggK9KqP8QOD/j8G5IdiIEvsKIpFe9ZGWnlu5rLea/ljrn5P0An1H+3pnj8VdM 7KeRk3zz0V1Vc2Wakm1cBSueWbPuEbWDrsolLkxbriQh8m/VvQ1VqGHccM1qwqX7tAVF Sj0OhwMrVbtZZcj2DV6VL8aSwMWKrC+YenpnnX5wzPM6eQIgVQWDi0xwcKCG8RJKrDDY lRuEr92F8W85G9jjgcGecUZzw/pbzFcLzOh5BTzGT9yXjukKn0wVIN6B/ArjwY02Eb8v fg9w== X-Gm-Message-State: AAQBX9ebB4U5R6jPRFgTKNRSAbnmy3QE3dKmAhIzaRVIyX70EU3RYZtF SDopNwf8Ybm67CrL2E2j+PE1rgHQ6lBntWItFsnNNeLVkis= X-Received: by 2002:adf:fd11:0:b0:2f5:9e05:1adc with SMTP id e17-20020adffd11000000b002f59e051adcmr414563wrr.49.1681977152968; Thu, 20 Apr 2023 00:52:32 -0700 (PDT) MIME-Version: 1.0 References: <2857f998-1b1a-e3c2-20fe-d03dadcf8f23@gmail.com> <38172c8e-d107-d96e-7292-09d0e3b061dd@gmail.com> In-Reply-To: From: Artem Makhutov Date: Thu, 20 Apr 2023 09:52:22 +0200 Message-ID: Subject: Re: RTL8188EU (LogiLink WL0151A) - Malformed packets To: Bitterblue Smith Cc: "linux-wireless@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-wireless@vger.kernel.org Hi, I made some more experiments and compared the data from the usb_urb and what tcpdump sees. The byte order is different in the dumps. The correct ip packet ends with "92939495" / "95949392". This data is present in both usb_urbs, but gets cut away in the broken ip packet. What is the data after "95949392" in the usb_urb? Is this some kind of footer or checksum? The working packet has a footer of 8 bytes and the broken only 4 bytes?!? Working dump: 000005e0: 65646362 69686766 6d6c6b6a 71706f6e 75747372 79787776 7d7c7b7a 81807f7e bcdefghijklmnopqrstuvwxyz{|}~... 00000600: 85848382 89888786 8d8c8b8a 91908f8e 95949392 e4818dc6 b6a7742b ........................+t.. Broken dump: 000005e0: 65646362 69686766 6d6c6b6a 71706f6e 75747372 79787776 7d7c7b7a 81807f7e bcdefghijklmnopqrstuvwxyz{|}~... 00000600: 85848382 89888786 8d8c8b8a 91908f8e 95949392 98ce2927 ....................').. tcpdump working: 0x0580: 56575859 5a5b5c5d 5e5f6061 62636465 VWXYZ[\]^_`abcde 0x0590: 66676869 6a6b6c6d 6e6f7071 72737475 fghijklmnopqrstu 0x05a0: 76777879 7a7b7c7d 7e7f8081 82838485 vwxyz{|}~....... 0x05b0: 86878889 8a8b8c8d 8e8f9091 92939495 ................ tcpdump broken: 0x05b0: 86878889 8a8b8c8d 8e8f9091 ............ Thanks, Artem