DHD: Added debug code to find out the root cause of scan timeout issue

A something in common is that sync_id in event message indicates ‘0’,
it resulted in scan timeout since scan timer didn’t clear due to sync_id mismatch.

So, we should take a closer look at the moment the FW send up a scan completion event with 'sync_id 0'.
We're planning to debug like below. If hit the trap, we can find out more why sync_id 0 event delivers.

- DHD: To make sure DHD driver doesn't provide sync_id 0, we'll modify to start from sync_id 1
- FW: add dbg log for monitor sync id

Bug: 309152409
Test: Build pass, C6T6Pro verified

Change-Id: I4e7a72d69834eb9b5496d77c3355cb49d3038d61
Signed-off-by: Terry Chen <terry.chen@synaptics.corp-partner.google.com>
2 files changed
tree: a9658253305bf2c2dca4c1dd4a53e779ae929247
  1. include/
  2. aiutils.c
  3. bcm_app_utils.c
  4. bcm_l2_filter.c
  5. bcmbloom.c
  6. bcmevent.c
  7. bcmsdh.c
  8. bcmsdh_linux.c
  9. bcmsdh_sdmmc.c
  10. bcmsdh_sdmmc_linux.c
  11. bcmsdspi.h
  12. bcmsdspi_linux.c
  13. bcmsdstd.c
  14. bcmsdstd.h
  15. bcmsdstd_linux.c
  16. bcmspibrcm.c
  17. bcmsrom.c
  18. bcmstdlib.c
  19. bcmstdlib_s.c
  20. bcmutils.c
  21. bcmwifi_channels.c
  22. bcmwifi_monitor.c
  23. bcmwifi_radiotap.c
  24. bcmwifi_rates.c
  25. bcmwifi_rspec.c
  26. bcmwpa.c
  27. bcmxtlv.c
  28. dhd.h
  29. dhd_bitpack.c
  30. dhd_bitpack.h
  31. dhd_bus.h
  32. dhd_buzzz.h
  33. dhd_cdc.c
  34. dhd_cfg80211.c
  35. dhd_cfg80211.h
  36. dhd_common.c
  37. dhd_config.c
  38. dhd_config.h
  39. dhd_custom_cis.c
  40. dhd_custom_exynos.c
  41. dhd_custom_google.c
  42. dhd_custom_gpio.c
  43. dhd_custom_hikey.c
  44. dhd_custom_memprealloc.c
  45. dhd_custom_msm.c
  46. dhd_custom_sec.c
  47. dhd_dbg.h
  48. dhd_dbg_ring.c
  49. dhd_dbg_ring.h
  50. dhd_debug.c
  51. dhd_debug.h
  52. dhd_debug_linux.c
  53. dhd_event_log_filter.c
  54. dhd_event_log_filter.h
  55. dhd_flowring.c
  56. dhd_flowring.h
  57. dhd_fwtrace.c
  58. dhd_fwtrace.h
  59. dhd_ip.c
  60. dhd_ip.h
  61. dhd_linux.c
  62. dhd_linux.h
  63. dhd_linux_exportfs.c
  64. dhd_linux_lb.c
  65. dhd_linux_pktdump.c
  66. dhd_linux_pktdump.h
  67. dhd_linux_platdev.c
  68. dhd_linux_priv.h
  69. dhd_linux_sched.c
  70. dhd_linux_sock_qos.c
  71. dhd_linux_sock_qos.h
  72. dhd_linux_wq.c
  73. dhd_linux_wq.h
  74. dhd_macdbg.c
  75. dhd_macdbg.h
  76. dhd_mschdbg.c
  77. dhd_mschdbg.h
  78. dhd_msgbuf.c
  79. dhd_pcie.c
  80. dhd_pcie.h
  81. dhd_pcie_linux.c
  82. dhd_pktlog.c
  83. dhd_pktlog.h
  84. dhd_plat.h
  85. dhd_pno.c
  86. dhd_pno.h
  87. dhd_proto.h
  88. dhd_qos_algo.h
  89. dhd_rtt.c
  90. dhd_rtt.h
  91. dhd_sdio.c
  92. dhd_sec_feature.h
  93. dhd_statlog.c
  94. dhd_statlog.h
  95. dhd_timesync.c
  96. dhd_timesync.h
  97. dhd_wet.c
  98. dhd_wet.h
  99. dhd_wlfc.c
  100. dhd_wlfc.h
  101. frag.c
  102. frag.h
  103. ftdi_sio_external.h
  104. hnd_pktpool.c
  105. hnd_pktq.c
  106. hndlhl.c
  107. hndmem.c
  108. hndpmu.c
  109. Kbuild
  110. Kconfig
  111. linux_osl.c
  112. linux_osl_priv.h
  113. linux_pkt.c
  114. Makefile
  115. nciutils.c
  116. pcie_core.c
  117. pom.h
  118. sbutils.c
  119. siutils.c
  120. siutils_priv.h
  121. wb_regon_coordinator.c
  122. wifi_stats.h
  123. wl_android.c
  124. wl_android.h
  125. wl_bam.c
  126. wl_bigdata.c
  127. wl_cfg80211.c
  128. wl_cfg80211.h
  129. wl_cfg_btcoex.c
  130. wl_cfgnan.c
  131. wl_cfgnan.h
  132. wl_cfgp2p.c
  133. wl_cfgp2p.h
  134. wl_cfgscan.c
  135. wl_cfgscan.h
  136. wl_cfgvendor.c
  137. wl_cfgvendor.h
  138. wl_cfgvif.c
  139. wl_cfgvif.h
  140. wl_dbg.h
  141. wl_export.h
  142. wl_linux_mon.c
  143. wl_roam.c
  144. wlan_config.ini
  145. wlc_types.h
  146. wldev_common.c