Open Andrflor opened 4 years ago
[ 10.218375] wilc_sdio mmc1:0001:1 wlan0: INFO [set_power_mgmt]dev [wlan0] [ 10.218388] wilc_sdio mmc1:0001:1 wlan0: INFO [set_power_mgmt] Power save Enabled= 1 , TimeOut = -1 [ 10.245698] wilc_sdio mmc1:0001:1 wlan0: INFO [get_tx_power]Got tx power 18 [ 10.246493] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Setting mcast List with count = 2. [ 10.246511] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Entry[0]: 01:00:5e:00:00:01 [ 10.246523] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_set_multicast_list]Entry[1]: 33:33:00:00:00:01 [ 10.246729] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_close]Mac close
From the above logs, it appears the mac_close is triggered by HOST during the initialization of the driver. The initialization part looks fine but this mac_close is triggered in between. Please check the causes of mac_close() trigger in the CM3 board.
Please give a try by disabling the PowerSave mode. To disable PS mode, either compile kernel by disabling default PS (CONFIG_CFG80211_DEFAULT_PS) or modify 'wilc_set_power_mgmt' function to always set 'power_mode' variable with WILC_FW_NO_POWERSAVE value.
if (enabled)
power_mode = WILC_FW_MIN_FAST_PS;
else
power_mode = WILC_FW_NO_POWERSAVE;
to
power_mode = WILC_FW_NO_POWERSAVE;
I tried both options but it didin't end well... I'm wondering if it could be because of reset and chip_en pin state?
[ 434.691437] power up request for already powered up source Wifi
[ 434.691441] Device already up. request source is Wifi
[ 434.691448] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[7a429e69][0014ce1f]
[ 434.691459] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 434.691465] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[ 434.691495] wilc_sdio mmc1:0001:1: SDIO speed: 25000000
[ 434.691894] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[ 434.691904] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[ 434.691912] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[ 434.691917] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[ 434.692888] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]MAC OPEN[7a429e69] wlan0
[ 434.692894] power up request for already powered up source Wifi
[ 434.692897] Device already up. request source is Wifi
[ 434.692905] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_init_host_int]Host[7a429e69][0014ce1f]
[ 434.692913] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mac_open]*** re-init ***
[ 434.692919] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_wlan_init]Initializing WILC_Wlan
[ 434.692925] wilc_sdio mmc1:0001:1: SDIO speed: 25000000
[ 434.693039] wilc_sdio mmc1:0001:1: wilc_sdio_cmd52..failed, err(-110)
[ 434.693045] wilc_sdio mmc1:0001:1: Fail cmd 52, enable csa...
[ 434.693052] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_wlan_initialize:905] Initializing WILC_Wlan FAILED
[ 434.693057] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_mac_open:1029] Failed to initialize wilc
[ 434.693082] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693088] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693093] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693099] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693105] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693110] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693116] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693121] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693127] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693132] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693138] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693143] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693148] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693154] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693160] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693165] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693170] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693176] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693182] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693187] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693193] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 434.693198] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_mgmt_frame_register]Return since mac is closed
[ 435.594678] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_send_config_pkt:1806] Set Timed out
[ 435.594695] wilc_sdio mmc1:0001:1 wlan0: ERR [wilc_set_operation_mode:1858] Failed to set driver handler
[ 435.594712] wilc_sdio mmc1:0001:1 wlan0: INFO [wilc_netdev_cleanup]Unregistering netdev 7a429e69
[ 435.684908] De-Initializing Locks
[ 435.734648] Freeing wiphy
[ 435.734669] Module_exit Done.
[ 435.734675] at_pwr_dev: deinit
[ 435.734920] at_pwr_dev: unregistered
[ 435.735050] mmc1: card 0001 removed
Hello, I'm using 15.3.1 ATWILC1000 sdio on a cm3 with a V4.19.80 kernel
I have a pretty random comportment, most of the time wifi does not work, but some times it does work for some reason It seems that it restarts multiple times I have hardcoded gpio pins in the driver header and configured sdio overlay.
I don't understand what is happening, if you have some hint :smile_cat: