ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: ath11k@lists.infradead.org
Subject: ath11k: (broken) mac address reporting by firmware
Date: Mon, 28 Oct 2019 22:19:02 +0100	[thread overview]
Message-ID: <6869330.LJuu87LXsD@bentobox> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1438 bytes --]

Hi,

I've just tested here WLAN.HK.2.0.0.1-00043-QCAHKSWPL_SILICONZ-1 and noticed 
that the mac addresses returned by the firmware are not the ones stored in the 
caldata.bin. It was observed that:

* first octet is always set to 0x00
* octet 2, 3 & 4 are copied over from the caldata.bin
* octet 5 is random
* octet 6 is random

So for example, I have following addresses in my caldata.bin:

* f8:d9:b8:17:74:a8
* f8:d9:b8:17:74:b0
* 4x QCA defaults (00:03:7f:12:*:*)

And then i get:

* on first boot:

  - WMI_TAG_READY_EVENT

    + 00:d9:b8:17:c3:c3

  - WMI_TAG_ARRAY_FIXED_STRUCT

    + 00:d9:b8:17:14:47
    + 00:d9:b8:17:3c:cf
    + 00:03:7f:12:64:57

* on second boot:

  - WMI_TAG_READY_EVENT

    + 00:d9:b8:17:ef:ef

  - WMI_TAG_ARRAY_FIXED_STRUCT

    + 00:d9:b8:17:87:0f
    + 00:d9:b8:17:97:ff
    + 00:03:7f:12:54:0a

* on third boot:

  - WMI_TAG_READY_EVENT

    + 00:d9:b8:17:3b:3b

  - WMI_TAG_ARRAY_FIXED_STRUCT

    + 00:d9:b8:17:4b:27
    + 00:d9:b8:17:53:af
    + 00:03:7f:12:5b:37


The WMI_TAG_READY_EVENT address is completely ignored by ath11k. The first 
WMI_TAG_ARRAY_FIXED_STRUCT address is used for the 5GHz PHY. And the second 
WMI_TAG_ARRAY_FIXED_STRUCT address is used for the 2.4GHz PHY.


Is this a known bug in the firmware? Is it possible to retrieve the actual mac 
address(es) from the firmware? Using hardware with randomly changing mac 
addresses is not really a nice thing.

Kind regards,
	Sven

[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 146 bytes --]

_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

             reply	other threads:[~2019-10-28 21:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28 21:19 Sven Eckelmann [this message]
2019-10-29  8:14 ` ath11k: (broken) mac address reporting by firmware Sven Eckelmann

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=6869330.LJuu87LXsD@bentobox \
    --to=sven@narfation.org \
    --cc=ath11k@lists.infradead.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