1. 29 11月, 2021 1 次提交
    • S
      ath11k: Avoid NULL ptr access during mgmt tx cleanup · a93789ae
      Sriram R 提交于
      Currently 'ar' reference is not added in skb_cb during
      WMI mgmt tx. Though this is generally not used during tx completion
      callbacks, on interface removal the remaining idr cleanup callback
      uses the ar ptr from skb_cb from mgmt txmgmt_idr. Hence
      fill them during tx call for proper usage.
      
      Also free the skb which is missing currently in these
      callbacks.
      
      Crash_info:
      
      [19282.489476] Unable to handle kernel NULL pointer dereference at virtual address 00000000
      [19282.489515] pgd = 91eb8000
      [19282.496702] [00000000] *pgd=00000000
      [19282.502524] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
      [19282.783728] PC is at ath11k_mac_vif_txmgmt_idr_remove+0x28/0xd8 [ath11k]
      [19282.789170] LR is at idr_for_each+0xa0/0xc8
      
      Tested-on: IPQ8074 hw2.0 AHB WLAN.HK.2.5.0.1-00729-QCAHKSWPL_SILICONZ-3 v2
      Signed-off-by: NSriram R <quic_srirrama@quicinc.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Link: https://lore.kernel.org/r/1637832614-13831-1-git-send-email-quic_srirrama@quicinc.com
      a93789ae
  2. 22 11月, 2021 3 次提交
  3. 17 11月, 2021 3 次提交
  4. 15 11月, 2021 10 次提交
  5. 12 11月, 2021 1 次提交
  6. 10 11月, 2021 2 次提交
  7. 01 11月, 2021 1 次提交
  8. 11 10月, 2021 1 次提交
  9. 08 10月, 2021 1 次提交
    • K
      ath11k: fix m68k and xtensa build failure in ath11k_peer_assoc_h_smps() · 16bdce2a
      Kalle Valo 提交于
      Stephen reported that ath11k was failing to build on m68k and xtensa:
      
      In file included from <command-line>:0:0:
      In function 'ath11k_peer_assoc_h_smps',
          inlined from 'ath11k_peer_assoc_prepare' at drivers/net/wireless/ath/ath11k/mac.c:2362:2:
      include/linux/compiler_types.h:317:38: error: call to '__compiletime_assert_650' declared with attribute error: FIELD_GET: type of reg too small for mask
        _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
                                            ^
      include/linux/compiler_types.h:298:4: note: in definition of macro '__compiletime_assert'
          prefix ## suffix();    \
          ^
      include/linux/compiler_types.h:317:2: note: in expansion of macro '_compiletime_assert'
        _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
        ^
      include/linux/build_bug.h:39:37: note: in expansion of macro 'compiletime_assert'
       #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
                                           ^
      include/linux/bitfield.h:52:3: note: in expansion of macro 'BUILD_BUG_ON_MSG'
         BUILD_BUG_ON_MSG((_mask) > (typeof(_reg))~0ull,  \
         ^
      include/linux/bitfield.h:108:3: note: in expansion of macro '__BF_FIELD_CHECK'
         __BF_FIELD_CHECK(_mask, _reg, 0U, "FIELD_GET: "); \
         ^
      drivers/net/wireless/ath/ath11k/mac.c:2079:10: note: in expansion of macro 'FIELD_GET'
         smps = FIELD_GET(IEEE80211_HE_6GHZ_CAP_SM_PS,
      
      Fix the issue by using le16_get_bits() to specify the size explicitly.
      
      Fixes: 6f4d7030 ("ath11k: support SMPS configuration for 6 GHz")
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Tested-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      16bdce2a
  10. 07 10月, 2021 1 次提交
  11. 28 9月, 2021 14 次提交
  12. 24 9月, 2021 2 次提交