Thread (2 messages) 2 messages, 2 authors, 2013-07-25

Re: [PATCH] mac80211: use oneshot blink API for LED triggers

From: Johannes Berg <hidden>
Date: 2013-07-25 07:58:26
Also in: linux-wireless, lkml

On Wed, 2013-07-24 at 10:53 +0200, Fabio Baltieri wrote:
On Wed, Jul 24, 2013 at 10:14:25AM +0200, Johannes Berg wrote:
quoted
On Wed, 2013-07-24 at 02:09 +0200, Fabio Baltieri wrote:
quoted
Changes mac80211 LED trigger code to use the generic
led_trigger_blink_oneshot() API for transmit and receive activity
indication.

This gives a better feedback to the user, as with the new API each
activity event results in a visible blink, while a constant traffic
results in a continuous blink at constant rate.
This seems a little pointless since our throughput-based trigger can do
very similar (but somewhat better) behaviour? Maybe that should just be
the default instead, with some sane default setup values?
Ok but that requires driver specific support and it's only implemented
on a subset of currently available drivers.
Not necessarily, it's just done that way because we expected everyone to
have their own idea of what the blink speeds should be, possibly even
depending on the maximum speed the hardware can do etc.
This at least makes the basic tx/rx indication capability a better.
Fair enough.
quoted
(Regardless of that, you also have indentation problems in your patch)
Ok, I guess you are referring to the this:

+       led_trigger_blink_oneshot(local->tx_led,                                
+                       &led_delay, &led_delay, 0);                             
Yes, that was the place I noticed, didn't check more closely.
So, are you definitely rejecting this patch or should I fix indentation
and send a v2?
I think I'll take it, I kinda hope nobody will really care much about it
but the behaviour looks better and the code is simpler, so ... :)

johannes

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help