1. 29 Feb, 2012 1 commit
    • Florian Fainelli's avatar
      zd1211rw: wait between setting hash table and powering radio on · 02f1434d
      Florian Fainelli authored
      I am running Debian testing kernel 3.1.0-1-amd64, using a 079b:0062 Sagem
      XG-76NA 802.11bg stick.
      
      Upon zd1211rw interface
      bringup (ifconfig wlan0 up) I get the following timeout:
      
      [  950.330573] zd1211rw 1-3:1.0: phy2
      [  955.108510] zd1211rw 1-3:1.0: firmware version 4725
      [  955.148532] zd1211rw 1-3:1.0: zd1211b chip 079b:0062 v4810 high 00-19-70
      AL2230_RF pa0 g--NS
      [snip]
      [  955.204072] zd1211rw 1-3:1.0: error ioread32(CR_REG1): -110
      
      A second ifconfig wlan0 up brings the interface up without problems.
      
      After a bit more debugging, the call trace is the following:
      
      [10241.028130] zd1211rw 1-3:1.0: zd_chip_lock_phy_regs: error
      ioread32(CR_REG1): -110
      [10241.028140] zd1211rw 1-3:1.0: zd_switch_radio_on: failed to lock PHY regs
      [10241.028148] zd1211rw 1-3:1.0: zd_op_start: failed to set radio on
      
      Adding a 10 milliseconds delay between the call to set_mc_hash() and
      zd_chip_switch_radio_on() allows successful interface bringups in all
      cases and matches what the vendor driver did.
      Acked-by: default avatarJussi Kivilinna <jussi.kivilinna@mbnet.fi>
      Signed-off-by: default avatarFlorian Fainelli <florian@openwrt.org>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      02f1434d
  2. 27 Feb, 2012 39 commits