Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2017 17:27:13 -0500
From:      Farhan Khan <khanzf@gmail.com>
To:        freebsd-wireless@freebsd.org
Subject:   rtwn(4) with rtl8188ee reading line-noise data
Message-ID:  <CAFd4kYBkb_RnzRUOs%2B=H7azMptNhyiV=zd%2BBs1TTAvOZ5MJ4qg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFd4kYBkb_RnzRUOs%2B=H7azMptNhyiV=zd%2BBs1TTAvOZ5MJ4qg>