linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: Jakub Sitnicki <jsitnicki@gmail.com>
Cc: linux-wireless@vger.kernel.org, kvalo@codeaurora.org,
	Larry.Finger@lwfinger.net
Subject: Re: [PATCH 1/1] New driver: rtl8xxxu (mac80211)
Date: Thu, 08 Oct 2015 15:09:45 -0400	[thread overview]
Message-ID: <wrfjio6h18jq.fsf@redhat.com> (raw)
In-Reply-To: <87d1wp49ds.fsf@frog.home> (Jakub Sitnicki's message of "Thu, 08 Oct 2015 18:23:27 +0200")

Jakub Sitnicki <jsitnicki@gmail.com> writes:
> Hi Jes,
>
> On Sat, Aug 29, 2015 at 11:18 PM CEST, Jes.Sorensen@redhat.com wrote:
>> This is an alternate driver for a number of Realtek WiFi USB devices,
>> including RTL8723AU, RTL8188CU, RTL8188RU, RTL8191CU, and RTL8192CU.
>> It was written from scratch utilizing the Linux mac80211 stack.
>>
>> After spending months cleaning up the vendor provided rtl8723au
>> driver, which comes with it's own 802.11 stack included, I decided to
>> rewrite this driver from the bottom up.
>
> In the long term, do you plan for this driver to support the
> RTL8188EU-based devices as well?

I have an 8188EU dongle in my wifi dongle pouch, together with several
other yet to be supported ones :) I am currently trying to get the
8723BU and 8192EU working, but I haven't had time to work much on the
8188EU yet.

> I've been checking how far I can get through the rtl8xxxu initialization
> using a TP-Link TL-WN725N dongle without changing too much.
>
> Getting it up to read the EFUSE contents wasn't difficult but then you
> need to parse it and first differences come to light.  Namely, TX power
> levels are defined per each of 6 (not 3) channel groups, and power
> differences are defined per TX path (as opposed to per channel group).
> This is perhaps better described by the relevant structure from
> rtl8188eu driver:
>
> struct txpowerinfo24g {
> 	u8 IndexCCK_Base[MAX_RF_PATH][MAX_CHNL_GROUP_24G];
> 	u8 IndexBW40_Base[MAX_RF_PATH][MAX_CHNL_GROUP_24G];
> 	/* If only one tx, only BW20 and OFDM are used. */
> 	s8 CCK_Diff[MAX_RF_PATH][MAX_TX_COUNT];
> 	s8 OFDM_Diff[MAX_RF_PATH][MAX_TX_COUNT];
> 	s8 BW20_Diff[MAX_RF_PATH][MAX_TX_COUNT];
> 	s8 BW40_Diff[MAX_RF_PATH][MAX_TX_COUNT];
> };
>
> AFAICT, in this regard, rtl8188eu driver has more in common with the
> rtlwifi/rtl8188ee driver.
>
> I'm curious what is your opinion on this.  In particular, do you see any
> reason not to make an attempt to extend rtl8xxxu to support 8188EU
> chips?

Parsing the efuse is normally fairly easy, if you have a reference to
the layout. It can be deducted from the vendor driver code. The layout
pretty much differ for each chip, but I have seen enough of them by now
that I can parse most of it by looking at the hex dump.

I think the 8188EU uses IOL, which is an enhanced firmware assist API.
That will change the programming a bit, but I think it's well within
scope for this driver to support this as well.

In other words, it is my plan to look at the 8188EU. If you get it going
before me, I am very happy to work with you on integrating the patches.

Cheers,
Jes

  reply	other threads:[~2015-10-08 19:09 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-29 21:18 [PATCH 0/1] rtl8xxxu (mac80211) driver for rtl8188[cr]u/rtl8192cu/rtl8723au Jes.Sorensen
2015-08-29 21:18 ` [PATCH 1/1] New driver: rtl8xxxu (mac80211) Jes.Sorensen
2015-08-30  4:42   ` Larry Finger
2015-08-30 18:41     ` Jes Sorensen
2015-08-30 21:02       ` Jes Sorensen
2015-08-30 23:51       ` Larry Finger
2015-08-31  2:39         ` Jes Sorensen
2015-08-31 15:45           ` Larry Finger
2015-08-31 23:43             ` Jes Sorensen
2015-09-01  0:16               ` Larry Finger
2015-09-01  4:54                 ` Jes Sorensen
2015-09-01  5:17                   ` Larry Finger
2015-09-01  5:26                     ` Jes Sorensen
2015-08-31  1:06       ` Joe Perches
2015-08-31 13:11         ` Jes Sorensen
2015-08-31  8:19       ` Johannes Berg
2015-08-31 14:48   ` Johannes Berg
2015-08-31 23:42     ` Jes Sorensen
2015-09-01 15:07       ` Johannes Berg
2015-09-03  1:59         ` Jes Sorensen
2015-09-03  2:39           ` Jes Sorensen
2015-09-03 10:17             ` Johannes Berg
2015-09-04 18:24               ` Jes Sorensen
2015-09-04 18:25                 ` Johannes Berg
2015-09-05  4:02                 ` Sujith Manoharan
2015-09-17 16:46                   ` Johannes Berg
2015-10-05 18:49                     ` Jes Sorensen
2015-10-05 18:56                       ` Johannes Berg
2015-10-05 19:04                         ` Jes Sorensen
2015-10-05 19:12                           ` Johannes Berg
2015-10-05 19:19                             ` Jes Sorensen
2015-10-05 19:20                               ` Johannes Berg
2015-10-05 19:53                                 ` Jes Sorensen
2015-09-03 10:17           ` Johannes Berg
2015-09-04 17:48             ` Jes Sorensen
2015-09-04 18:02               ` Johannes Berg
2015-10-08 16:23   ` Jakub Sitnicki
2015-10-08 19:09     ` Jes Sorensen [this message]
2015-10-08 20:33       ` Stefan Lippers-Hollmann
2015-10-08 21:06         ` Jes Sorensen
2015-10-08 21:03       ` Jes Sorensen
2015-10-10  4:17       ` Taehee Yoo
2015-08-30 16:49 ` [PATCH 0/1] rtl8xxxu (mac80211) driver for rtl8188[cr]u/rtl8192cu/rtl8723au Larry Finger
2015-08-30 18:45   ` Jes Sorensen
  -- strict thread matches above, loose matches on Subject: below --
2015-08-30 21:02 [PATCH v2 " Jes.Sorensen
2015-08-30 21:02 ` [PATCH 1/1] New driver: rtl8xxxu (mac80211) Jes.Sorensen
2015-09-06 14:59   ` Kalle Valo
2015-09-06 17:06     ` Larry Finger
2015-09-07  1:41       ` Jes Sorensen
2015-09-07  1:40     ` Jes Sorensen
2015-09-07 13:20       ` Kalle Valo
2015-09-07 21:08         ` Jes Sorensen
2015-10-15  0:44 [PATCH v3 0/1] rtl8xxxu (mac80211) driver for rtl8188[cr]u/rtl8192cu/rtl8723au Jes.Sorensen
2015-10-15  0:44 ` [PATCH 1/1] New driver: rtl8xxxu (mac80211) Jes.Sorensen
2015-10-15 12:09   ` Bruno Randolf
2015-10-15 12:16     ` Jes Sorensen
2015-10-23 13:07 Xose Vazquez Perez
2015-10-23 14:00 ` Jes Sorensen
2015-10-23 16:09   ` Jes Sorensen

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=wrfjio6h18jq.fsf@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=jsitnicki@gmail.com \
    --cc=kvalo@codeaurora.org \
    --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;
as well as URLs for NNTP newsgroup(s).