1. 08 Aug, 2017 2 commits
    • Rakesh Pillai's avatar
      ath10k: fix memory leak in rx ring buffer allocation · f35a7f91
      Rakesh Pillai authored
      The rx ring buffers are added to a hash table if
      firmware support full rx reorder. If the full rx
      reorder support flag is not set before allocating
      the rx ring buffers, none of the buffers are added
      to the hash table.
      
      There is a race condition between rx ring refill and
      rx buffer replenish from napi poll. The interrupts are
      enabled in hif start, before the rx ring is refilled during init.
      We replenish buffers from napi poll due to the interrupts which
      get enabled after hif start. Hence before the entire rx ring is
      refilled during the init, the napi poll replenishes a few buffers
      in steps of 100 buffers per attempt. During this rx ring replenish
      from napi poll, the rx reorder flag has not been set due to which
      the replenished buffers are not added to the hash table
      
      Set the rx full reorder support flag before we allocate
      the rx ring buffer to avoid the memory leak.
      Signed-off-by: default avatarRakesh Pillai <pillair@qti.qualcomm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      f35a7f91
    • Gabriel Craciunescu's avatar
      ath10k: ath10k_htt_rx_amsdu_allowed() use ath10k_dbg() · 984eb905
      Gabriel Craciunescu authored
      Each time we get disconnected from AP we get flooded with messages like:
      
      ...
      ath10k_pci 0000:03:00.0: no channel configured; ignoring frame(s)!
      <until ratelimit kicks in>
      ath10k_warn: 155 callbacks suppressed
      ...
      
      Use ath10k_dbg() here too.
      Signed-off-by: default avatarGabriel Craciunescu <nix.or.die@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      984eb905
  2. 03 Aug, 2017 11 commits
    • Rob Clark's avatar
      wcn36xx: check dma_mapping_error() · 4165cf7b
      Rob Clark authored
      Fixes splat:
      
        wcn36xx a204000.wcnss:smd-edge:wcnss:wifi: DMA-API: device driver failed to check map error[device address=0x00000000b45ba000] [size=3872 bytes] [mapped as single]
        ------------[ cut here ]------------
        WARNING: CPU: 0 PID: 0 at ../lib/dma-debug.c:1167 check_unmap+0x474/0x8d0
        Modules linked in: bnep(E) arc4(E) wcn36xx(E) mac80211(E) btqcomsmd(E) btqca(E) bluetooth(E) cfg80211(E) ecdh_generic(E) rfkill(E) vfat(E) fat(E) wcnss_ctrl qcom_wcnss_pil(E) mdt_loader(E) qcom_common(E) remoteproc(E) crc32_ce(E) virtio_ring(E) snd_soc_lpass_apq8016(E) snd_soc_lpass_cpu(E) virtio(E) snd_soc_lpass_platform(E) leds_gpio(E) snd_soc_hdmi_codec(E) snd_soc_apq8016_sbc(E) snd_soc_msm8916_digital(E) snd_soc_core(E) qcom_spmi_temp_alarm(E) ac97_bus(E) snd_pcm_dmaengine(E) snd_seq(E) snd_seq_device(E) snd_pcm(E) spi_qup(E) nvmem_qfprom(E) snd_timer(E) snd(E) soundcore(E) msm_rng(E) qcom_tsens(E) nvmem_core(E) uas(E) usb_storage(E) dm9601(E) cdc_ether(E) usbnet(E) mii(E) mmc_block(E) sdhci_msm(E) sdhci_pltfm(E) qcom_spmi_vadc(E) qcom_vadc_common(PE) clk_smd_rpm(E) industrialio(E)
         qcom_smd_regulator(E) pinctrl_spmi_mpp(E) pinctrl_spmi_gpio(E) rtc_pm8xxx(E) adv7511(E) smd_rpm(E) qcom_spmi_pmic(E) regmap_spmi(E) phy_msm_usb(E) usb3503(E) extcon_usb_gpio(E) ci_hdrc_msm(E) ci_hdrc(E) qcom_hwspinlock(E) udc_core(E) extcon_core(E) ehci_msm(E) i2c_qup(E) sdhci(E) msm(E) mmc_core(E) drm_kms_helper(E) syscopyarea(E) sysfillrect(E) sysimgblt(E) fb_sys_fops(E) spmi_pmic_arb(E) drm(E) spmi(E) qcom_smd(E) rpmsg_core smsm(E) gpio_keys(E) smp2p(E) smem(E) hwspinlock_core(E) sunrpc(E) scsi_transport_iscsi(E)
        CPU: 0 PID: 0 Comm: swapper/0 Tainted: P            E   4.12.0-rc7+ #1476
        Hardware name: qualcomm dragonboard410c/dragonboard410c, BIOS 2017.07-rc1-00234-g22fa70a-dirty 06/26/2017
        task: ffff000009049780 task.stack: ffff000009030000
        PC is at check_unmap+0x474/0x8d0
        LR is at check_unmap+0x474/0x8d0
        ...
        Mapped at:
         dma_entry_alloc+0x68/0xa8
         debug_dma_map_page+0x94/0x148
         wcn36xx_dxe_fill_skb.isra.1+0xbc/0xf8 [wcn36xx]
         wcn36xx_dxe_init+0x244/0x398 [wcn36xx]
         wcn36xx_start+0xf4/0x298 [wcn36xx]
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      4165cf7b
    • Rosen Penev's avatar
      ath9k: Add Dell Wireless 1802 with wowlan capability · 129e12a9
      Rosen Penev authored
      Add the Dell Wireless 1802 card as an AR9462 in the ath9k pci list.
      Note that the wowlan feature is supported and has been tested
      successfully.
      
      Signed-off by: Rosen Penev <rosenp@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      129e12a9
    • Christoph Fritz's avatar
      ath9k: fix debugfs file permission · f085c105
      Christoph Fritz authored
      This patch fixes a trivial debugfs file permission issue. Debugfs
      file ack_to has no write function, so S_IWUSR gets purged.
      Signed-off-by: default avatarChristoph Fritz <chf.fritz@googlemail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      f085c105
    • Philipp Zabel's avatar
      ath10k: explicitly request exclusive reset control · a764284f
      Philipp Zabel authored
      Commit a53e35db ("reset: Ensure drivers are explicit when requesting
      reset lines") started to transition the reset control request API calls
      to explicitly state whether the driver needs exclusive or shared reset
      control behavior. Convert all drivers requesting exclusive resets to the
      explicit API call so the temporary transition helpers can be removed.
      
      No functional changes.
      
      Cc: Kalle Valo <kvalo@qca.qualcomm.com>
      Cc: ath10k@lists.infradead.org
      Cc: linux-wireless@vger.kernel.org
      Cc: netdev@vger.kernel.org
      Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      a764284f
    • Manikanta Pubbisetty's avatar
      ath10k: push peer type to target for TDLS peers · be5b4f40
      Manikanta Pubbisetty authored
      WMI interface for all the firmwares(except QCA6174) does not include the
      type of peer(default/bss/tdls) requested during peer creation, therefore
      target creates a default peer.
      
      TDLS implementation on 10.4 firmware requires host to configure the
      peer type(tdls) for TDLS peers. This patch adds peer type parameter to the
      existing WMI interface for peer creation to accommodate this requirement.
      
      Tested this change on QCA9888(10.4-3.5.1-00018) and QCA988x(10.2.4.70.9-2)
      with ping tests for AP/STA modes.
      Signed-off-by: default avatarManikanta Pubbisetty <mpubbise@qti.qualcomm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      be5b4f40
    • Manikanta Pubbisetty's avatar
      ath10k: add tdls support for 10.4 firmwares · add6cd8d
      Manikanta Pubbisetty authored
      This patch adds the support of TDLS feature for 10.4 firmware
      versions.
      
      A new WMI service is added to advertise the support of TDLS for
      10.4 firmwares.
      Signed-off-by: default avatarManikanta Pubbisetty <mpubbise@qti.qualcomm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      add6cd8d
    • Manikanta Pubbisetty's avatar
      ath10k: extend wmi service map to accommodate new services · 810fe818
      Manikanta Pubbisetty authored
      Though there is room to accommodate 512 services in wmi service
      ready event, target uses only first 4-bits of each 32-bit word for
      advertising wmi services thereby limiting max wmi services to 64.
      
      TDLS implementation for 10.4 firmwares introduces new wmi services by
      making use of remaining unused bits of each 32-bit word, therefore the
      wmi service mapping in host needs to be extended.
      
      This patch adds the logic to extend the wmi SVCMAP to accommodate new
      wmi services.
      Signed-off-by: default avatarManikanta Pubbisetty <mpubbise@qti.qualcomm.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      810fe818
    • Erik Stromdahl's avatar
      ath10k: sdio: fix compile warning · 433ef1b2
      Erik Stromdahl authored
      As suggested by Arnd Bergmann, replace
      "while (time_before_...) {}"
      with
      "do {} while (time_before_...)"
      
      This fixes the following warnings detected by gcc 4.1.2:
      
      drivers/net/wireless/ath/ath10k/sdio.c: In function
      ‘ath10k_sdio_mbox_rxmsg_pending_handler’:
      drivers/net/wireless/ath/ath10k/sdio.c:676: warning: ‘ret’ may be used uninitialized in this function
      
      ...
      
      drivers/net/wireless/ath/ath10k/sdio.c: In function
      ‘ath10k_sdio_irq_handler’:
      drivers/net/wireless/ath/ath10k/sdio.c:1331: warning: ‘ret’ may be used uninitialized in this function
      Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      433ef1b2
    • Erik Stromdahl's avatar
      ath10k: add initial USB support · 4db66499
      Erik Stromdahl authored
      Chipsets like QCA9377 have support for USB so add initial USB bus
      support to ath10k. With this patch we have the low level HIF and
      HTC protocol working and it's possible to boot the firmware,
      but it's still not possible to connect or anything like.
      
      More changes are needed for full functionality. For that reason
      we print during initialisation:
      
      WARNING: ath10k USB support is incomplete, don't expect anything to work!
      Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      4db66499
    • Erik Stromdahl's avatar
      ath10k: various usb related definitions · b00435e6
      Erik Stromdahl authored
      Definitions for USB based chipsets
      Signed-off-by: default avatarErik Stromdahl <erik.stromdahl@gmail.com>
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      b00435e6
    • Matthias Frei's avatar
      ath10k: set a-mpdu receiver reference number · 47cc0ca9
      Matthias Frei authored
      Set the a-mpdu reference number in ath10k to make it accessible in the
      receivers radiotap header. Implemented as in ath9k.  The reference number is
      needed for troubleshooting and research at the receivers site (e.g. to identify
      mpdu's that were aggregated in an a-mpdu)
      Signed-off-by: default avatarMatthias Frei <mf@frei.media>
      [kvalo@qca.qualcomm.com: fix checkpatch warning, commit log cleanup]
      Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
      47cc0ca9
  3. 28 Jul, 2017 1 commit
  4. 27 Jul, 2017 12 commits
  5. 26 Jul, 2017 14 commits