From: Helge Deller <deller@gmx.de>
To: linux-wireless@vger.kernel.org
Cc: ath5k-devel@lists.ath5k.org
Subject: Re: [PATCH] ath5k: convert LED code to use mac80211 triggers
Date: Wed, 09 Jul 2008 01:08:20 +0200 [thread overview]
Message-ID: <g50s14$8n1$1@ger.gmane.org> (raw)
In-Reply-To: 20080626023528.GA16068@hash.localnet
Bob Copeland wrote:
> This change cleans up the ath5k LED code and converts it to use
> the standard LED device class along with the rx/tx LED triggers
> provided by mac80211.
=2E..
> I tested this with printk but I don't have the IBM 5212/5211/Compaq
> hardware to fully test. =C2=A0If anyone can give it a spin or has com=
ments
> please let me know.
I tested it against Linus' head version (it applied with minor
modifications) on my HP NC6000 laptop with this built-in Atheros card:
02:04.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11=
abg
NIC (rev 01)
Subsystem: Compaq Computer Corporation Unknown device 00e5
Basically it works, but I think the sc->led_on in:
> +static int
> +ath5k_init_leds(struct ath5k_softc *sc)
> +{
> + int ret =3D 0;
> + struct ieee80211_hw *hw =3D sc->hw;
> + struct pci_dev *pdev =3D sc->pdev;
> + char name[ATH5K_LED_MAX_NAME_LEN + 1];
> +
> + sc->led_on =3D 0; /* active low */
needs to be:
> + sc->led_on =3D 1; /* active high */
for the AR5212 in the HP laptop.
See also the changes to if_ath_pci.c in:
http://madwifi.org/attachment/ticket/1018/led.patch
and
http://madwifi.org/ticket/1018
for an old discussion about madwifi for LEDs in the HP box.
Without this change the LED stays on after a "rmmod ath5k" as well.
Helge
--
To unsubscribe from this list: send the line "unsubscribe linux-wireles=
s" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2008-07-08 23:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-22 18:11 [PATCH] ath5k: convert LED code to use mac80211 triggers Bob Copeland
2008-06-25 12:12 ` Nick Kossifidis
2008-06-25 13:56 ` Bob Copeland
2008-06-26 2:35 ` Bob Copeland
2008-07-08 23:08 ` Helge Deller [this message]
2008-07-09 2:22 ` [ath5k-devel] " Bob Copeland
2008-07-09 2:40 ` Bob Copeland
2008-07-09 6:57 ` Helge Deller
2008-07-09 7:00 ` [ath5k-devel] " Helge Deller
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='g50s14$8n1$1@ger.gmane.org' \
--to=deller@gmx.de \
--cc=ath5k-devel@lists.ath5k.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).