• John W. Linville's avatar
    wireless: remove RFKILL_STATE_HARD_BLOCKED warnings · ff28bd94
    John W. Linville authored
      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: default avatarJohn W. Linville <linville@tuxdriver.com>
    ff28bd94
iwl-rfkill.c 5.37 KB