]> git.baikalelectronics.ru Git - kernel.git/commit
[B43LEGACY]: Change the hardware radio enable logic and cleanup code
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 21 Sep 2007 01:10:07 +0000 (20:10 -0500)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:25 +0000 (16:52 -0700)
commitc68422c612b048a632d8e23a3fa77f3fb92a9978
tree742e644b0f4fee21b63b27deda2a95818c6e0ae4
parent9df419b9376da2f36d7eb9d8b516a2a6e517c262
[B43LEGACY]: Change the hardware radio enable logic and cleanup code

This change cleans up the radio-related messages in several ways.

(1) The state of the rfkill switch is assumed to be on, rather than
    tested. Now, any user without such a switch will not see any
    messages. For devices with such a switch, a message will be
    logged only if the initial state is off, or if the switch is toggled.
(2) The routine for testing the switch state is no longer inline.
(3) The LED handling routine is simplified.
(4) The "Radio turned off" message that has confused some users has been
    changed to "Radio initialized".

This patch is patterned after a similar change to b43 by Michael Buesch.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/b43legacy/leds.c
drivers/net/wireless/b43legacy/main.c
drivers/net/wireless/b43legacy/main.h
drivers/net/wireless/b43legacy/radio.c