1. 14 Oct, 2011 1 commit
    • Amitkumar Karwar's avatar
      mwifiex: use separate wait condition for each command node · efaaa8b8
      Amitkumar Karwar authored
      
      
      Currently global wait condition (adapter->cmd_wait_q.condition)
      is used while sending synchronous commands to FW. When two threads
      enter in mwifiex_send_cmd_sync() routine at the same time, both the
      threads wait for their command responses. Since wait condition is
      same for both, they wake up simultaneously after getting response
      of 1st command. After this when a thread is waiting for command
      response of 3rd command, it wakes up after getting response of 2nd
      command and so on. Therefore we don't wait for the response of last
      command(0xaa) during unload. Hence while next time loading the driver
      command time out is seen for INIT command.
      
      This problem is resolved by having separate wait condition flag for
      each command(except scan command). Since scan command is treated
      differently (by maintaining scan pending q etc.), newly defined flag
      (scan_wait_q_woken) is used as a scan wait condition.
      Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
      Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
      Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      efaaa8b8
  2. 12 Oct, 2011 1 commit
  3. 11 Oct, 2011 1 commit
    • Yogesh Ashok Powar's avatar
      mwifiex: fix smatch errors · 3d82de0f
      Yogesh Ashok Powar authored
      
      
      drivers/net/wireless/mwifiex/main.c +828 mwifiex_remove_card(52)
        error: potential null derefence 'priv'.
      drivers/net/wireless/mwifiex/main.c +828 mwifiex_remove_card(52)
        error: we previously assumed 'priv' could be null (see line 820)
      drivers/net/wireless/mwifiex/txrx.c +90 mwifiex_process_tx(24)
        error: potential null derefence 'local_tx_pd'.
      drivers/net/wireless/mwifiex/sta_ioctl.c +766
      mwifiex_rate_ioctl_set_rate_value(30)
        error: buffer overflow 'rate' 14 <= 14
      
      Cc: Dan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarYogesh Ashok Powar <yogeshp@marvell.com>
      Signed-off-by: default avatarBing Zhao <bzhao@marvell.com>
      Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
      3d82de0f
  4. 03 Oct, 2011 2 commits
  5. 30 Sep, 2011 4 commits
  6. 27 Sep, 2011 4 commits
  7. 21 Sep, 2011 2 commits
  8. 13 Sep, 2011 1 commit
  9. 24 Aug, 2011 1 commit
  10. 12 Aug, 2011 1 commit
  11. 09 Aug, 2011 1 commit
  12. 08 Aug, 2011 3 commits
  13. 21 Jul, 2011 3 commits
  14. 20 Jul, 2011 1 commit
  15. 13 Jul, 2011 1 commit
  16. 11 Jul, 2011 1 commit
  17. 08 Jul, 2011 3 commits
  18. 06 Jul, 2011 1 commit
  19. 27 Jun, 2011 1 commit
  20. 22 Jun, 2011 1 commit
  21. 15 Jun, 2011 1 commit
  22. 10 Jun, 2011 1 commit
  23. 07 Jun, 2011 4 commits