1. 11 12月, 2015 1 次提交
  2. 18 11月, 2015 1 次提交
  3. 06 8月, 2015 1 次提交
    • A
      mwifiex: simplify mwifiex_complete_cmd · c5bc15fc
      Andreas Fenkart 提交于
      600f5d90("mwifiex: cleanup ioctl wait queue and abstraction layer")
      introduced the wakeup_interruptible suppression in mwifiex_complete_cmd
      b1a47aa5("mwifiex: fix system hang issue in cmd timeout error case")
      then added wakup_interruptible to mwifiex_cmd_timeout_func the single
      place setting a status of ETIMEDOUT.
      Instead of doing extra work, using the standard call-chain will have the
      same effect:
      mwifiex_cancel_pending_ioctl
      -> mwifiex_recycle_cmd_node
      -> mwifiex_insert_cmd_to_free_q
      -> mwifiex_complete_cmd
      -> wake_up_interruptible
      
      The difference is that previously the condition was not set to true,
      but that's probably just an oversight in b1a47aa5 and shouldn't
      have any consequence
      Signed-off-by: NAndreas Fenkart <afenkart@gmail.com>
      Acked-by: NAmitkumar Karwar <akarwar@marvell.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      c5bc15fc
  4. 26 5月, 2015 1 次提交
  5. 09 5月, 2015 1 次提交
  6. 29 1月, 2015 3 次提交
  7. 07 1月, 2015 1 次提交
  8. 12 11月, 2014 1 次提交
  9. 16 9月, 2014 1 次提交
  10. 29 8月, 2014 1 次提交
  11. 19 7月, 2014 1 次提交
  12. 26 6月, 2014 2 次提交
  13. 20 6月, 2014 1 次提交
  14. 16 4月, 2014 1 次提交
  15. 01 4月, 2014 2 次提交
  16. 28 3月, 2014 1 次提交
  17. 01 3月, 2014 1 次提交
  18. 13 2月, 2014 2 次提交
  19. 05 2月, 2014 1 次提交
  20. 09 1月, 2014 1 次提交
  21. 19 12月, 2013 2 次提交
  22. 26 11月, 2013 1 次提交
  23. 12 11月, 2013 1 次提交
  24. 01 8月, 2013 1 次提交
  25. 24 7月, 2013 1 次提交
  26. 20 6月, 2013 3 次提交
  27. 18 6月, 2013 1 次提交
    • D
      mwifiex: fix memory corruption when unsetting multicast list · 6390d885
      Daniel Drake 提交于
      When trying to unset a previously-set multicast list (i.e. the new list
      has 0 entries), mwifiex_set_multicast_list() was calling down to
      mwifiex_request_set_multicast_list() while leaving
      mcast_list.num_multicast_addr as an uninitialized value.
      
      We were arriving at mwifiex_cmd_mac_multicast_adr() which would then
      proceed to do an often huge memcpy of
      mcast_list.num_multicast_addr*ETH_ALEN bytes, causing memory corruption
      and hard to debug crashes.
      
      Fix this by setting mcast_list.num_multicast_addr to 0 when no multicast
      list is provided. Similarly, fix up the logic in
      mwifiex_request_set_multicast_list() to unset the multicast list that
      was previously sent to the hardware in such cases.
      Signed-off-by: NDaniel Drake <dsd@laptop.org>
      Acked-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      6390d885
  28. 09 5月, 2013 1 次提交
  29. 23 4月, 2013 2 次提交
  30. 09 4月, 2013 1 次提交
    • B
      mwifiex: fix negative cmd_pending count · 9908b074
      Bing Zhao 提交于
      cmd_pending is increased in mwifiex_wait_queue_complete() and
      decreased in mwifiex_complete_cmd() currently.
      If there are two or more commands in the cmd_pending_q the main
      worker thread will pick up next command from cmd_pending_q
      automatically after finishing current command. As a result
      mwifiex_wait_queue_complete() will not be called because
      the command is alreay completed. This leads to a negative
      number in cmd_pending count.
      
      Fix it by increasing cmd_pending when a cmd is queued into
      cmd_pending_q and decreasing when that cmd is recycled. For scan
      commands we don't perform inc/dec operations until it's moved
      from scan_pending_q to cmd_pending_q. This covers both
      synchronous and asynchronous commands.
      Reported-by: NDaniel Drake <dsd@laptop.org>
      Tested-by: NDaniel Drake <dsd@laptop.org>
      Tested-by: NMarco Cesarano <marco@marvell.com>
      Signed-off-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9908b074
  31. 19 3月, 2013 1 次提交