Linux wireless drivers development
 help / color / mirror / Atom feed
From: Hong Xu <hong@topbug.net>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: Bob Copeland <me@bobcopeland.com>,
	linux-wireless <linux-wireless@vger.kernel.org>
Subject: Re: [PATCH] ath9k_htc: Add a module parameter to disable blink
Date: Mon, 12 Jan 2015 21:21:12 -0800	[thread overview]
Message-ID: <87vbkbjm8s.fsf@home.hong.me> (raw)
In-Reply-To: <CAGRGNgUdEemrqnrYnJzTQEuce4yjQUjOW3B_eWSHkENkPwO9UQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1206 bytes --]


Julian Calaby <julian.calaby@gmail.com> writes:

> Hi Hong,
>
> On Mon, Jan 12, 2015 at 6:09 PM, Hong Xu <hong@topbug.net> wrote:
>>
>> Bob Copeland <me@bobcopeland.com> writes:
>>
>>> On Sun, Jan 11, 2015 at 01:20:29AM -0800, Hong Xu wrote:
>>>> Add an option "blink" to enable or disable the LED blink. The default
>>>> value is set to 1 so that existing users would not experience any
>>>> unexpected changes.
>>>
>>> Been a while since I looked, but isn't there a way to achieve same
>>> result by just echoing 'none' into the relevant LED's sysfs file
>>> (something like /sys/class/leds/phy0-led/trigger)?
>>
>> It's a bit different. echo 'none' to the trigger would cause the LED
>> light to be dark, but if turn off the blink option here, the LED is
>> bright but without blinking.
>>
>> Hong
>
> I.e. it doesn't blink, it's just on when linked (isn't there a trigger
> for that?) or is on solid? (echo 255 >
> /sys/class/leds/phy0-led/brightness)

It is solid on, but will be off if you turn off wifi (which echo 255 >
/.../brightness will not do). Replace ieee80211_get_radio_led_name with
ieee80211_get_assoc_led_name will use the linking trigger. I think using
linking makes more sense.

Hong

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2015-01-13  6:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-11  9:20 [PATCH] ath9k_htc: Add a module parameter to disable blink Hong Xu
2015-01-11  9:40 ` Arend van Spriel
2015-01-11  9:50   ` Oleksij Rempel
2015-01-11  9:59     ` Hong Xu
2015-01-11 10:08       ` Oleksij Rempel
2015-01-12  6:54 ` Bob Copeland
2015-01-12  7:09   ` Hong Xu
2015-01-13  2:55     ` Julian Calaby
2015-01-13  5:21       ` Hong Xu [this message]
     [not found] <1420967281-31175-1-git-send-email-hong@topbug.net>
2015-01-11  9:17 ` Kalle Valo

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=87vbkbjm8s.fsf@home.hong.me \
    --to=hong@topbug.net \
    --cc=julian.calaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=me@bobcopeland.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