linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Zwanenburg <stefanhetzwaantje@gmail.com>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: 'Chaoming_Li' <chaoming_li@realsil.com.cn>,
	linux-wireless@vger.kernel.org
Subject: Re: 答复: 答复: 答复: RTL8192SE and 802.11n problem
Date: Thu, 29 Sep 2011 01:28:05 +0200	[thread overview]
Message-ID: <4E83AD85.8050005@gmail.com> (raw)
In-Reply-To: <4E82A8E9.60409@lwfinger.net>

On 09/28/2011 06:56 AM, Larry Finger wrote:
> The MAC address is read from EEROM in routines found in efuse.c, and
> should always be the same. If the value read is not a valid ethernet
> address, then a random one is set, which must be what is happening on
> your system. I'll get back to you on how to dump the entire efuse
> contents so that we can see what else might be wrong in its encoding.
> I will be out tomorrow, thus it will likely be Thursday before I can
> answer. Perhaps Chaoming will answer earlier.
I had some time on my hands, so I tried to figure out how to dump the
EEPROM data myself, and have done so using the following patch (based on
linux-3.0.4):

--- drivers/net/wireless/rtlwifi/rtl8192se/hw.c    2011-07-22
04:17:23.000000000 +0200
+++ /home/psychotic/Desktop/rtl8192se_hw.c    2011-09-29
01:16:09.361978051 +0200
@@ -1645,6 +1645,13 @@
     RT_PRINT_DATA(rtlpriv, COMP_INIT, DBG_DMESG, ("MAP\n"),
               hwinfo, HWSET_MAX_SIZE_92S);
 
+    printk("RTL8192SE - got EEPROM data:");
+    for (i = 0; i < HWSET_MAX_SIZE_92S; i++) {
+        if (i % 6 == 0)
+            printk("\n  ");
+        printk("%02X ", hwinfo[i]);
+    }
+
     eeprom_id = *((u16 *)&hwinfo[0]);
     if (eeprom_id != RTL8190_EEPROM_ID) {
         RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING,

And here is the output I got right after inserting the rtl8192se module:

Sep 29 01:07:02 localhost kernel: [ 1160.153407] RTL8192SE - got EEPROM
data:
Sep 29 01:07:02 localhost kernel: [ 1160.153412]   29 81 00 00 A9 16
Sep 29 01:07:02 localhost kernel: [ 1160.153419]   00 00 00 00 EC 10
Sep 29 01:07:02 localhost kernel: [ 1160.153425]   72 81 EC 10 72 81
Sep 29 01:07:02 localhost kernel: [ 1160.153431]   1C 4B D6 69 6A DC
Sep 29 01:07:02 localhost kernel: [ 1160.153437]   FF FF FF FF FF FF
Sep 29 01:07:02 localhost kernel: [ 1160.153443]   FF FF 01 FF 13 AA
Sep 29 01:07:02 localhost kernel: [ 1160.153449]   03 02 20 80 02 B0
Sep 29 01:07:02 localhost kernel: [ 1160.153455]   06 91 A5 78 2A E4
Sep 29 01:07:02 localhost kernel: [ 1160.153461]   00 E0 4C FF FE 22
Sep 29 01:07:02 localhost kernel: [ 1160.153467]   55 88 C3 FF 84 75
Sep 29 01:07:02 localhost kernel: [ 1160.153473]   78 39 00 00 C1 8C
Sep 29 01:07:02 localhost kernel: [ 1160.153478]   80 11 40 00 11 3C
Sep 29 01:07:02 localhost kernel: [ 1160.153484]   03 00 10 20 00 00
Sep 29 01:07:02 localhost kernel: [ 1160.153490]   00 00 28 29 27 00
Sep 29 01:07:02 localhost kernel: [ 1160.153496]   00 00 28 28 28 00
Sep 29 01:07:02 localhost kernel: [ 1160.153502]   00 00 00 00 00 00
Sep 29 01:07:02 localhost kernel: [ 1160.153508]   00 00 00 00 00 04
Sep 29 01:07:02 localhost kernel: [ 1160.153514]   03 00 00 00 00 00
Sep 29 01:07:02 localhost kernel: [ 1160.153520]   00 01 00 00 00 00
Sep 29 01:07:02 localhost kernel: [ 1160.153526]   00 00 0E 00 04 11
Sep 29 01:07:02 localhost kernel: [ 1160.153531]   00 00 00 09 02 00
Sep 29 01:07:02 localhost kernel: [ 1160.153537]   02 00

I hope that saves you the time by not having to explain to me how to
dump the EEPROM data, and that you (any of you =)) can find something
useful in there.
What I have been able to tell from this is that the MAC address my
interface currently has is indeed the one saved in the EEPROM
(1C:4B:D6:69:6A:DC). Don't know why it would ever have another one...

Greetings,
Stefan Zwanenburg

  reply	other threads:[~2011-09-28 23:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4E77AECF.7090001@gmail.com>
     [not found] ` <4E820130.7080801@gmail.com>
2011-09-27 21:00   ` 答复: 答复: 答复: RTL8192SE and 802.11n problem Larry Finger
2011-09-27 22:25     ` Stefan Zwanenburg
2011-09-28  4:56       ` Larry Finger
2011-09-28 23:28         ` Stefan Zwanenburg [this message]
2011-09-29  2:32           ` Stefan Zwanenburg
2011-09-29  3:28           ` Larry Finger
     [not found]             ` <0EF5E594196F41B48B0B4D168B714838@realsil.com.cn>
2011-09-29 23:15               ` 答复: " Stefan Zwanenburg
2011-09-29 23:58                 ` Stefan Zwanenburg
     [not found] <4E67CE3F.8090405@gmail.com>
     [not found] ` <4E67CEA3.7020709@gmail.com>
2011-09-08  2:23   ` Larry Finger
2011-09-08  2:50     ` Larry Finger
2011-09-08  3:23       ` Stefan Zwanenburg
2011-09-08  3:42         ` Larry Finger
     [not found]           ` <8117B559D4E64A83837479A8C342A5CA@realsil.com.cn>
     [not found]             ` <4E6E537D.5060404@gmail.com>
     [not found]               ` <24C6797004D84406B7564679CAE21531@realsil.com.cn>
     [not found]                 ` <4E74946A.3080206@gmail.com>
     [not found]                   ` <1903155944F64F00AC0C401593C20923@realsil.com.cn>
2011-09-19 20:04                     ` 答复: 答复: 答复: " Stefan Zwanenburg

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=4E83AD85.8050005@gmail.com \
    --to=stefanhetzwaantje@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;
as well as URLs for NNTP newsgroup(s).