From: Pavel Roskin <proski@gnu.org>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: Davide Pesavento <davidepesa@gmail.com>,
ath9k-devel@lists.ath9k.org, ath5k-devel@lists.ath5k.org,
linux-wireless@vger.kernel.org
Subject: Re: [ath5k-devel] AR5418 works with ath9k
Date: Wed, 23 Jul 2008 23:42:09 -0400 [thread overview]
Message-ID: <1216870929.30436.34.camel@dv> (raw)
In-Reply-To: <43e72e890807230513u81e68aaj443110d734161368@mail.gmail.com>
On Wed, 2008-07-23 at 05:13 -0700, Luis R. Rodriguez wrote:
> > Maybe MacBook Pro's card has different eeprom's contents? Anyway the
> > card now works fine, and it also appears quite stable! ;-)
> > Thank you very much for your work!
>
> I believe your last patch may have been "Use skb_end_pointer() ..." if
> so then this is why you had this issue. Give the git tree a shot:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/ath9k.git
Luis, I'm afraid that code is still wrong. It used to be min(), but now
it's essentially max(). You wrote that there was an error in my patch
and I agreed, but we were talking of different errors, I'm afraid.
Since you have touched the code after me and you know more about the
hardware, I would prefer that you fix it and recheck everything once
again.
Here's the patch. I don't feel comfortable about describing things I
don't fully understand.
diff --git a/ksrc/hw.c b/ksrc/hw.c
index 5c8127e..e0a5464 100644
--- a/ksrc/hw.c
+++ b/ksrc/hw.c
@@ -852,7 +852,7 @@ static inline enum hal_status ath9k_hw_check_eeprom(struct ath_hal *ah)
else
el = ahp->ah_eeprom.baseEepHeader.length;
- if (el < sizeof(struct ar5416_eeprom))
+ if (el > sizeof(struct ar5416_eeprom))
el = sizeof(struct ar5416_eeprom) / sizeof(u_int16_t);
else
el = el / sizeof(u_int16_t);
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2008-07-24 3:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-22 21:53 AR5418 works with ath9k Davide Pesavento
2008-07-23 12:13 ` Luis R. Rodriguez
2008-07-24 3:42 ` Pavel Roskin [this message]
2008-07-24 7:05 ` [ath5k-devel] " Luis R. Rodriguez
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=1216870929.30436.34.camel@dv \
--to=proski@gnu.org \
--cc=ath5k-devel@lists.ath5k.org \
--cc=ath9k-devel@lists.ath9k.org \
--cc=davidepesa@gmail.com \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@gmail.com \
/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).