1. 23 9月, 2009 1 次提交
  2. 11 6月, 2009 1 次提交
  3. 04 6月, 2009 1 次提交
    • J
      rfkill: rewrite · 19d337df
      Johannes Berg 提交于
      This patch completely rewrites the rfkill core to address
      the following deficiencies:
      
       * all rfkill drivers need to implement polling where necessary
         rather than having one central implementation
      
       * updating the rfkill state cannot be done from arbitrary
         contexts, forcing drivers to use schedule_work and requiring
         lots of code
      
       * rfkill drivers need to keep track of soft/hard blocked
         internally -- the core should do this
      
       * the rfkill API has many unexpected quirks, for example being
         asymmetric wrt. alloc/free and register/unregister
      
       * rfkill can call back into a driver from within a function the
         driver called -- this is prone to deadlocks and generally
         should be avoided
      
       * rfkill-input pointlessly is a separate module
      
       * drivers need to #ifdef rfkill functions (unless they want to
         depend on or select RFKILL) -- rfkill should provide inlines
         that do nothing if it isn't compiled in
      
       * the rfkill structure is not opaque -- drivers need to initialise
         it correctly (lots of sanity checking code required) -- instead
         force drivers to pass the right variables to rfkill_alloc()
      
       * the documentation is hard to read because it always assumes the
         reader is completely clueless and contains way TOO MANY CAPS
      
       * the rfkill code needlessly uses a lot of locks and atomic
         operations in locked sections
      
       * fix LED trigger to actually change the LED when the radio state
         changes -- this wasn't done before
      Tested-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> [thinkpad]
      Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      19d337df
  4. 23 4月, 2009 1 次提交
  5. 28 2月, 2009 1 次提交
  6. 25 9月, 2008 1 次提交
  7. 17 9月, 2008 1 次提交
  8. 30 8月, 2008 1 次提交
  9. 01 7月, 2008 2 次提交
  10. 27 6月, 2008 1 次提交
    • J
      wireless: remove RFKILL_STATE_HARD_BLOCKED warnings · ff28bd94
      John W. Linville 提交于
        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: NJohn W. Linville <linville@tuxdriver.com>
      ff28bd94
  11. 17 1月, 2008 1 次提交
  12. 18 12月, 2007 1 次提交
    • L
      b43: Fix rfkill radio LED · 1a8d1227
      Larry Finger 提交于
      This fixes Bug #9414
      
      Since addition of the rfkill callback, the LED associated with the off
      switch on the radio has not worked for several reasons:
      
      (1) Essential data in the rfkill structure were missing.
      (2) The rfkill structure was initialized after the LED initialization.
      (3) There was a minor memory leak if the radio LED structure was inited.
      
      Once the above problems were fixed, additional difficulties were noted:
      
      (4) The radio LED was in the wrong state at startup.
      (5) The radio switch had to be manipulated twice for each state change.
      (6) A circular mutex locking situation existed.
      (7) If rfkill-input is built as a module, it is not automatically loaded.
      
      This patch fixes all of the above.
      Signed-off-by: NLarry Finger <Larry.Finger@lwfinger.net>
      Signed-off-by: NMichael Buesch <mb@bu3sch.de>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      1a8d1227
  13. 10 11月, 2007 2 次提交
  14. 11 10月, 2007 2 次提交