wireless: remove RFKILL_STATE_HARD_BLOCKED warnings
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jun 2008 14:27:47 +0000 (10:27 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Jun 2008 14:27:47 +0000 (10:27 -0400)
commitff28bd94e307c67abb1bccda5d3a9018bd798e08
tree20788c3b91820fa7763a479aee27d27276ce4e9c
parentd195a2ca46ec50e3b5c045a36d1defb6e04cc6b7
wireless: remove RFKILL_STATE_HARD_BLOCKED warnings

CC [M] drivers/net/wireless/b43/rfkill.o
drivers/net/wireless/b43/rfkill.c: In function ‘b43_rfkill_soft_toggle’:
drivers/net/wireless/b43/rfkill.c:90: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch

CC [M] drivers/net/wireless/b43legacy/rfkill.o
drivers/net/wireless/b43legacy/rfkill.c: In function ‘b43legacy_rfkill_soft_toggle’:
drivers/net/wireless/b43legacy/rfkill.c:92: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch

CC [M] drivers/net/wireless/iwlwifi/iwl-rfkill.o
drivers/net/wireless/iwlwifi/iwl-rfkill.c: In function ‘iwl_rfkill_soft_rf_kill’:
drivers/net/wireless/iwlwifi/iwl-rfkill.c:56: warning: enumeration value ‘RFKILL_STATE_HARD_BLOCKED’ not handled in switch

Also handle RFKILL_STATE_{ON,OFF} -> RFKILL_STATE_{UNBLOCKED,SOFT_BLOCKED}
conversion since I'm already here...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/b43/rfkill.c
drivers/net/wireless/b43legacy/rfkill.c
drivers/net/wireless/iwlwifi/iwl-rfkill.c
drivers/net/wireless/rt2x00/rt2x00rfkill.c