2 Replies Latest reply on Jan 23, 2019 8:06 PM by TaKa_2191536

    SN8000 remains in BCME_BUSY(-16) state

    TaKa_2191536

      Hi,

       

      We are having a SN8000 module connected to our board using imx6ulevk.

      The Linux kernel is imx-4.1.15-1.0.0_ga and the bcm43362 firmware (bcm_imx_08_12_2016.tar.gz) used is downloaded from https://community.cypress.com/docs/DOC-2661.

      The bmcdhd driver is loaded as dynamic module in STA mode using bcmdhd.bin and in AP mode using bcmdhd_apsta.bin

      To run is station mode we use wpa_supplicant and connman

       

      Some of the boards connected with wifi and that are kept under testing, lose wifi connection intermittently and remain disconnected until we reload the driver.

      Below is the console log with error thrown by the driver:

       

      [66171.582480] CFG80211-ERROR) wl_run_escan : error (-16)

      [66171.604681] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66171.611510] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66172.702127] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66172.725396] CFG80211-ERROR) wl_run_escan : error (-16)

      [66172.730572] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66172.776485] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66173.847252] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66173.883346] CFG80211-ERROR) wl_run_escan : error (-16)

      [66173.888547] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66173.923306] CFG80211-ERROR) __wl_cfg80211_scan : Unusual continuous EBUSY error, 1 0 0 0 0 0 0 0 0

      [66173.964063] CFG80211-ERROR) __wl_cfg80211_scan : GET BSSID failed with -17

      [66174.003970] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66175.049715] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66175.075469] CFG80211-ERROR) wl_run_escan : error (-16)

      [66175.080643] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66175.135558] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66176.190182] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66176.206649] CFG80211-ERROR) wl_run_escan : error (-16)

      [66176.211823] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66176.256493] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66177.309532] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66177.335502] CFG80211-ERROR) wl_run_escan : error (-16)

      [66177.340677] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66177.405766] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66178.466336] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66178.472495] CFG80211-ERROR) wl_run_escan : error (-16)

      [66178.514433] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66178.521261] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66179.585868] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66179.592027] CFG80211-ERROR) wl_run_escan : error (-16)

      [66179.634611] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66179.641439] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66180.711790] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

      [66180.736127] CFG80211-ERROR) wl_run_escan : error (-16)

      [66180.741303] CFG80211-ERROR) __wl_cfg80211_scan : Scan err = (-16), busy?-16

      [66180.786621] CFG80211-ERROR) wl_cfg80211_scan : scan error (-16)

      [66181.857201] CFG80211-ERROR) wl_run_escan :  Escan set error (-16)

       

      The cause why this issue is seen not known yet. Also this problem is not seen in every board but only some of them.

      To reproduce this issue we are trying to force this Scan error but not successful yet. Can anyone give an idea about in which case a 'Scan error' occurs and the drivers remains in -16 (BCME_BUSY) state? If you want any other commands to be done to understand the issue better, please let me know

       

       

      EDIT (11-Nov-2017):

      Still unable to figure out the issue

      Attaching the complete dmesg  log with errors related to this.

      One observation is that whenever the wifi connection is lost due to DEAUTH event (for different reasons like 2,3,7,15 etc) and trying to reconnect, it gets stuck in  this scan error -16 state.

      An application checks the status of wifi using iw dev command and if it is down the bcmdhd module is being removed and re-inserted. We thought this will fix the issue but it is not helping much, even after the bcmdhd driver is reloaded, the module remains in -16 state.

       

       

      Thanks,

      Tarun