From owner-freebsd-wireless@freebsd.org Wed Dec 6 22:27:40 2017 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8183CE8E4B6 for ; Wed, 6 Dec 2017 22:27:40 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: from mail-yb0-x22b.google.com (mail-yb0-x22b.google.com [IPv6:2607:f8b0:4002:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3A2B765837 for ; Wed, 6 Dec 2017 22:27:40 +0000 (UTC) (envelope-from khanzf@gmail.com) Received: by mail-yb0-x22b.google.com with SMTP id i206so2207373ybc.10 for ; Wed, 06 Dec 2017 14:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=MJCYvKm+E6coyKL2SpybnaJH2sAJJPpZRSAhvsiEHlY=; b=O+xPJjkJu4dCyDe5d6scg1kQnNTNVXhol+qH9zfihOTncOBUgqhCJvCOmIZwPFcTDx 4qPzBhCMHXK/yUvRliM6P//bJaS+LBfpG4Oq0/guEaeFM/GAZFUrVpnltYvsYfv2eDMN Gm7rOaT4IX90vhC5GHPw2Bw2vwXwpY9WuW4heYOM5BjfEf+20RDWyMj+ea4TsGvDrmtk YmmsN9i+OGVlTD8fuMOOKxvbDVsNM7WRTsAljxRdpLkXi7ZsSeq+SFEBMWm6gral9FGi 080cO4OBTZ09TKBefR6WiZuVwyIdZFXu7NQQr9ykeM6ACMA/KRHfeOv8zOczlCyYL6lf hv3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=MJCYvKm+E6coyKL2SpybnaJH2sAJJPpZRSAhvsiEHlY=; b=g9DIYwDyVULeHtEy7AnwYO1n92aBYlMMLHPkUGEkbjezXI3TYIrHhFXjhCsvc2wiQu nKU8xnR1TzoSkG3K+YRPrFu0euwA0Xz/Oc0K6Bcb/Gv5ZR8lniVGPLB8Bi5QDmLPhV+t y+Nane1jp2FGe3g3+effodibRX1IyJ89+gvRxEbhvc9+8DaXoEl60X2fg5zHCUKknQ1n jXx17DJt81wC5ndiEPgHt3zXKac6yoz0uRiJRK3kDySnO/ZoLLIWrSDCS4zbBAA01AJt VSVQ+gtWN0Mer1p/SEEjaFuZYB3qyCFNMY9om6ZgESq8GcV126kcTqfR1xyM7YwEwsb1 BFmg== X-Gm-Message-State: AJaThX5+svPjQzq+nXvuu6Cn26tsr2RSlQC5R4RL7x1nZcEYuBw8hTz5 q/JfGnB8Gtn2EadpdairsXra3sgcYIbB+WuMH+8YnNMq X-Google-Smtp-Source: AGs4zMbSBe5Qko+trSdbxh79vrmteIacJ05lssSfOxMrcMLxlwYW2qLFyu7fX64HxnuaUr46HPlevZ64+XfrVsdThjc= X-Received: by 10.37.7.193 with SMTP id 184mr16284503ybh.353.1512599253823; Wed, 06 Dec 2017 14:27:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.186.147 with HTTP; Wed, 6 Dec 2017 14:27:13 -0800 (PST) From: Farhan Khan Date: Wed, 6 Dec 2017 17:27:13 -0500 Message-ID: Subject: rtwn(4) with rtl8188ee reading line-noise data To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Dec 2017 22:27:40 -0000 Hi all, Still working on rtwn(4). TCP dump will identify data while in monitor mode. Great progress! However, I appear to be receiving garbled data. Specifically, it looks like below. Notice that the noise is the same data on repeat. Also, this is happening too fast for it to be a beacon frame. ------------------ # sudo tcpdump -ni wlan0 -y IEEE802_11_RADIO -xx 17:15:01.303981 457085us tsft 1.0 Mb/s 2437 MHz 11g -16dBm signal -95dBm noise unknown 802.11 frame type (3) 0x0000: 0000 1800 6f00 0000 7df9 0600 0000 0000 0x0010: 0002 8509 8004 f0a1 ec80 0600 ec80 0600 0x0020: ec80 0600 ec80 0600 ec80 0600 ec80 0600 [ I removed the same line that was repeated to 0x0120 ] 17:15:01.304045 457085us tsft 1.0 Mb/s 2437 MHz 11g -16dBm signal -95dBm noise unknown 802.11 frame type (3) 0x0000: 0000 1800 6f00 0000 7df9 0600 0000 0000 0x0010: 0002 8509 8004 f0a1 ec80 0600 ec80 0600 0x0020: ec80 0600 ec80 0600 ec80 0600 ec80 0600 [ Again, removed repeated line to 0x0120 ] ------------------ I have two ideas on why this is happening: A) Is there something you need to do to clear the interrupt message from the kernel (not the device driver) to say "I read this interrupt, please clear it" or similar? That would explain the speed at which I am receiving this data. B) Perhaps the data needs to be cleared from memory? That might explain why I am continuously receiving the same data. Not certain what my next step should be. Please advise if you have any ideas. Thanks to everyone for your continued help! -- Farhan Khan PGP Fingerprint: B28D 2726 E2BC A97E 3854 5ABE 9A9F 00BC D525 16EE