1. 29 10月, 2015 7 次提交
    • Y
      wcn36xx: Remove warning message when dev is NULL for arm64 dma_alloc. · 07225524
      yfw 提交于
      arm64 has requirement that all the dma operations have actual device.
      Otherwise, following warnning message shown and dma allocation fails:
      
      WARNING: CPU: 0 PID: 954 at arch/arm64/mm/dma-mapping.c:106 __dma_alloc+0x24c/0x258()
      Use an actual device structure for DMA allocation
      Modules linked in: wcn36xx wcn36xx_platform
      CPU: 0 PID: 954 Comm: ifconfig Not tainted 4.0.0+ #14
      Hardware name: Qualcomm Technologies, Inc. MSM 8916 MTP (DT)
      Call trace:
      [<ffffffc000089904>] dump_backtrace+0x0/0x124
      [<ffffffc000089a38>] show_stack+0x10/0x1c
      [<ffffffc000627114>] dump_stack+0x80/0xc4
      [<ffffffc0000b2e64>] warn_slowpath_common+0x98/0xd0
      [<ffffffc0000b2ee8>] warn_slowpath_fmt+0x4c/0x58
      [<ffffffc00009487c>] __dma_alloc+0x248/0x258
      [<ffffffbffc009270>] wcn36xx_dxe_allocate_mem_pools+0xc4/0x108 [wcn36xx]
      [<ffffffbffc0079c4>] wcn36xx_start+0x38/0x240 [wcn36xx]
      [<ffffffc0005f161c>] ieee80211_do_open+0x1b0/0x9a4
      [<ffffffc0005f1e68>] ieee80211_open+0x58/0x68
      [<ffffffc00051693c>] __dev_open+0xb0/0x120
      [<ffffffc000516c10>] __dev_change_flags+0x88/0x150
      [<ffffffc000516cf4>] dev_change_flags+0x1c/0x5c
      [<ffffffc000570950>] devinet_ioctl+0x644/0x6f0
      Signed-off-by: NYin, Fengwei <fengwei.yin@linaro.org>
      Acked-by: NBjorn Andersson <bjorn.andersson@sonymobile.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      07225524
    • B
      wcn36xx: introduce per-channel ring buffer locks · 8e8e54c4
      Bob Copeland 提交于
      wcn36xx implements a ring buffer for transmitted frames for each
      (high and low priority) DMA channel.  The ring buffers are lockless:
      new frames are inserted at the head of the queue, while finished
      packets are reaped from the tail.
      
      Unfortunately, the list manipulations are missing any kind of barriers
      so are susceptible to various races: for example, a TX completion
      handler might read an updated desc->ctrl before the head has actually
      advanced, and then null out the ctl->skb pointer while it is still
      being used in the TX path.
      
      Simplify things here by adding a spin lock when traversing the ring.
      This change increased stability for me without adding any noticeable
      overhead on my platform (xperia z).
      Signed-off-by: NBob Copeland <me@bobcopeland.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      8e8e54c4
    • Z
      ath9k: fix phyerror codes · 56bae464
      Zefir Kurtisi 提交于
      Some of the ath9k_phyerr enums were wrong from the
      beginning (and even before). Most of the time the
      codes were used for counters to be displayed over
      debugfs, which made this a non-functional issue.
      
      Some (e.g. ATH9K_PHYERR_FALSE_RADAR_EXT) are used
      for radar detection and require the correct code
      to work as intended.
      
      This patch includes:
      a) fixes
        ATH9K_PHYERR_FALSE_RADAR_EXT:    24 => 36
        ATH9K_PHYERR_CCK_LENGTH_ILLEGAL: 32 => 28
        ATH9K_PHYERR_CCK_POWER_DROP:     33 => 29
        ATH9K_PHYERR_HT_CRC_ERROR:       34 => 32
        ATH9K_PHYERR_HT_LENGTH_ILLEGAL:  35 => 33
        ATH9K_PHYERR_HT_RATE_ILLEGAL:    36 => 34
      
      b) extensions
        ATH9K_PHYERR_CCK_BLOCKER = 24
        ATH9K_PHYERR_HT_ZLF      = 35
        ATH9K_PHYERR_GREEN_FIELD = 37
      
      Aside from the correction and completion made in
      the enum, the patch also extends the display of
      the related counters in the debugfs.
      Signed-off-by: NZefir Kurtisi <zefir.kurtisi@neratec.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      56bae464
    • J
      orinoco_usb: return error in ezusb_probe when alloc_orinocodev fails · 989b8376
      John Linville 提交于
      The current code exits after alloc_orinocodev, but fails to change the
      return value to something that indicates the failure.  This patch
      changes the return value to -ENOMEM.
      
      https://bugzilla.kernel.org/show_bug.cgi?id=106181Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      989b8376
    • O
      airo: fix scan after SIOCSIWAP (airo_set_wap) · dae0412d
      Ondrej Zary 提交于
      SIOCSIWAP (airo_set_wap) affects scan: only the AP specified by
      SIOCSIWAP is present in scan results.
      
      This makes NetworkManager work for the first time but then unable to
      find any other APs.
      
      Clear APList before starting scan and set it back after scan completes
      to work-around the problem.
      
      To avoid losing packets during scan, modify disable_MAC() to omit
      netif_carrier_off() call when lock == 2.
      Signed-off-by: NOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      dae0412d
    • O
      airo: Track APList_rid in struct airo_info · f675f93a
      Ondrej Zary 提交于
      Instead of dynamically allocating APList, make it a member of struct
      airo_info to always track state of APList_rid.
      This simplifies suspend/resume and allows removal of readAPListRid.
      Signed-off-by: NOndrej Zary <linux@rainbow-software.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      f675f93a
    • K
      Merge tag 'iwlwifi-next-for-kalle-2015-10-25' of... · b3bcb1b2
      Kalle Valo 提交于
      Merge tag 'iwlwifi-next-for-kalle-2015-10-25' of https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-next
      
      * bug fix for TDLS
      * fixes and cleanups in scan
      * support of several scan plans
      * improvements in FTM
      * fixes in FW API
      * improvements in the failure paths when the bus is dead
      * other various small things here and there
      b3bcb1b2
  2. 28 10月, 2015 21 次提交
  3. 27 10月, 2015 8 次提交
  4. 26 10月, 2015 4 次提交