Linux wireless drivers development
 help / color / mirror / Atom feed
From: Xuebing Wang <xbing6@gmail.com>
To: Larry Finger <Larry.Finger@lwfinger.net>,
	Chaoming Li <chaoming_li@realsil.com.cn>,
	linux-wireless@vger.kernel.org
Subject: linux-wireless: realtek rtl8192cu user-space driver for Monitor Mode: about debug mechanism
Date: Thu, 20 Oct 2016 15:38:13 +0800	[thread overview]
Message-ID: <79834d32-270f-3e4b-6b20-c38d6ba39cd7@gmail.com> (raw)

Hi Larry, Chaoming and community,

I am trying to do user-space driver for Monitor Mode only for rtl8192cu.

My approach is:
1) Remove unnecessary functions from kernel driver, then verify kernel 
driver works with Monitor Mode.
    -- Purpose is to keep the code minimum.
2) Re-do the code at user-space by modelling kernel driver, e.g. 
rtl92cu_hw_init()

My current status is that I can download rtl8192cu firmware 
(rtl8192cufw_TMSC.bin). But, I can not read any WiFi frames from Bulk In 
Endpoint (ep0). I guess there could be 2 possible issues:
a) I do not init rtl8192cu correctly.
b) Monitor Mode frames are ready in rtl8192cu adapter to be read out, 
but I incorrectly read Bulk In Endpoint (at user-space).

As I am lack of a debug mechanism, is there a register in rtl8192cu 
which shows there is data ready to be read out via Bulk In Endpoint and 
I can read this register back?

I noticed rtl8192cu has an Interrupt Endpoint, what is this for?

Thanks.

xuebing

                 reply	other threads:[~2016-10-20  7:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=79834d32-270f-3e4b-6b20-c38d6ba39cd7@gmail.com \
    --to=xbing6@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=chaoming_li@realsil.com.cn \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox