]> err.no Git - linux-2.6/commitdiff
b43/b43legacy: use RFKILL_STATE_UNBLOCKED instead of RFKILL_STATE_ON
authorAdel Gadllah <adel.gadllah@gmail.com>
Sat, 28 Jun 2008 12:20:40 +0000 (14:20 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 30 Jun 2008 21:37:37 +0000 (17:37 -0400)
This patch removes the usage RFKILL_STATE_ON and uses
RFKILL_STATE_UNBLOCKED instead.

Signed-off-by: Adel Gadllah <adel.gadllah@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/rfkill.c
drivers/net/wireless/b43legacy/rfkill.c

index 4cca203992e83490444868ee0d18358e063036a4..34ae125d5384dadf769b0134aa0a878af471fc17 100644 (file)
@@ -135,7 +135,7 @@ void b43_rfkill_init(struct b43_wldev *dev)
        snprintf(rfk->name, sizeof(rfk->name),
                 "b43-%s", wiphy_name(wl->hw->wiphy));
        rfk->rfkill->name = rfk->name;
-       rfk->rfkill->state = RFKILL_STATE_ON;
+       rfk->rfkill->state = RFKILL_STATE_UNBLOCKED;
        rfk->rfkill->data = dev;
        rfk->rfkill->toggle_radio = b43_rfkill_soft_toggle;
        rfk->rfkill->user_claim_unsupported = 1;
index 8935a302b22008b585a7b864f380c0904323c5d3..b32bf6a94f19d7543525ed562a89683bf893d168 100644 (file)
@@ -139,7 +139,7 @@ void b43legacy_rfkill_init(struct b43legacy_wldev *dev)
        snprintf(rfk->name, sizeof(rfk->name),
                 "b43legacy-%s", wiphy_name(wl->hw->wiphy));
        rfk->rfkill->name = rfk->name;
-       rfk->rfkill->state = RFKILL_STATE_ON;
+       rfk->rfkill->state = RFKILL_STATE_UNBLOCKED;
        rfk->rfkill->data = dev;
        rfk->rfkill->toggle_radio = b43legacy_rfkill_soft_toggle;
        rfk->rfkill->user_claim_unsupported = 1;