All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Adam Elzinga <adamelzinga@gmail.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: MT7601U Kernel Driver Issue
Date: Thu, 27 Jul 2023 16:10:04 -0700	[thread overview]
Message-ID: <20230727161004.1ec06124@kernel.org> (raw)
In-Reply-To: <CACXZ32oQ4GzDLPqu6MWr7rn38OOdw7metSFPHdbj1NTXeicaxA@mail.gmail.com>

On Thu, 27 Jul 2023 16:00:45 -0400 Adam Elzinga wrote:
> Hi Jakub,
> 
> I've been experimenting with your mt7601u kernel driver (both building from
> source and built-in to kernel 4.14.98 and 5.19.0) and think there may be a
> bug when reading EEPROM values from a couple different mt7601u-based
> devices. Full issue report is posted here:
> https://github.com/kuba-moo/mt7601u/issues/94
> 
> In short, are these EEPROM values unexpected, they seem to be the cause of
> repeated kernel warnings?
> 
> RF freq offset: 5d
> RSSI offset: 0 0
> Reference temp: f9
> LNA gain: 0
> Reg channels: 1-14
> Per rate power:
>          raw:00 bw20:00 bw40:02
>          raw:00 bw20:00 bw40:02
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
>          raw:34 bw20:f4 bw40:f6
> Per channel power:
>          tx_power  ch1:04 ch2:04
>          tx_power  ch3:04 ch4:04
>          tx_power  ch5:04 ch6:04
>          tx_power  ch7:04 ch8:04
>          tx_power  ch9:05 ch10:05
>          tx_power  ch11:05 ch12:05
>          tx_power  ch13:05 ch14:05
> 
> Emailing you directly as I realize your GitHub repo is no longer maintained
> now that the driver is included in the Linux kernel. Apologies if this is
> not the proper way to report an issue.

I saw the GH issue, just didn't get to it yet :) I'm adding
the linux-wireless@ mailing list to the CC as is customary
(if you reply please make sure not to top post and not to send 
HTML emails, only plain text).

I think that as you mentioned on GH the warning is harmless.
The vendor driver just caps the value to 6 bits (it's in 
the MT7601_ReadTxPwrPerRate() function AFAICT in the driver 
from here:
https://www.mediatek.com/products/broadband-wifi/mt7601u )

If you are able to compile the vendor driver it may be a good idea
to check that my calculation gives the same result. At which point
we can confidently remove the warning. Would you be willing to send
a patch yourself?

           reply	other threads:[~2023-07-27 23:10 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CACXZ32oQ4GzDLPqu6MWr7rn38OOdw7metSFPHdbj1NTXeicaxA@mail.gmail.com>]

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=20230727161004.1ec06124@kernel.org \
    --to=kuba@kernel.org \
    --cc=adamelzinga@gmail.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.