Support for Mikrotik wAP 60G

I can not use hostapd with this image. :confused: Seems like a driver issue with the wil6210,

kern.err kernel: [ 1023.408798] wil6210 0000:01:00.0 wlan0: wmi_call: wmi_call(0x0822->0x1821) timeout 100 msec
daemon.err hostapd: Failed to set beacon parameters

Here is the whole log

daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.conf
kern.info kernel: [ 1022.737600] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=3
kern.info kernel: [ 1022.737663] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=3
kern.info kernel: [ 1022.829868] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader struct v2: MAC = c4:ad:34:26:33:31 RF = 0x0000 (status 0x0000) bband = 0x00000000
kern.info kernel: [ 1022.830271] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader build 255.255.0.7253
kern.info kernel: [ 1022.843096] wil6210 0000:01:00.0 wlan0: wil_set_oob_mode: oob_mode to 0
kern.info kernel: [ 1022.851306] wil6210 0000:01:00.0 wlan0: wil_reset: Use firmware <wil6210.fw> + board <wil6210.brd>
kern.info kernel: [ 1022.886212] wil6210 0000:01:00.0 wlan0: wmi_evt_ready: FW ver. 5.2.0.18(SW 18); MAC c4:ad:34:26:33:31; 0 MID's
kern.info kernel: [ 1022.886291] wil6210 0000:01:00.0 wlan0: wil_wait_for_fw_ready: FW ready after 10 ms. HW version 0x00000002
kern.info kernel: [ 1022.895299] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_TX_CNT_TRSH = 500 usec
kern.info kernel: [ 1022.904817] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_TX_IDL_CNT_TRSH = 13 usec
kern.info kernel: [ 1022.914430] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_RX_CNT_TRSH = 500 usec
kern.info kernel: [ 1022.924401] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_RX_IDL_CNT_TRSH = 13 usec
kern.info kernel: [ 1022.933954] wil6210 0000:01:00.0 wlan0: wil_refresh_fw_capabilities: keep_radio_on_during_sleep (0)
kern.info kernel: [ 1022.950612] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
kern.info kernel: [ 1022.966870] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=2
kern.info kernel: [ 1022.966922] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=2
kern.info kernel: [ 1022.974942] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=ff:ff:ff:ff:ff:ff, reason=2
kern.info kernel: [ 1022.984925] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=ff:ff:ff:ff:ff:ff, reason=2
daemon.err hostapd: Using interface wlan0 with hwaddr c4:ad:34:26:33:31 and ssid "OpenWrt"
kern.info kernel: [ 1022.995683] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=3
kern.info kernel: [ 1023.005961] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=3
kern.info kernel: [ 1023.105677] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader struct v2: MAC = c4:ad:34:26:33:31 RF = 0x0000 (status 0x0000) bband = 0x00000000
kern.info kernel: [ 1023.105798] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader build 255.255.0.7253
kern.info kernel: [ 1023.118270] wil6210 0000:01:00.0 wlan0: wil_set_oob_mode: oob_mode to 0
kern.info kernel: [ 1023.126465] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=3
kern.info kernel: [ 1023.132794] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=3
kern.info kernel: [ 1023.188742] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader struct v2: MAC = c4:ad:34:26:33:31 RF = 0x0000 (status 0x0000) bband = 0x00000000
kern.info kernel: [ 1023.188793] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader build 255.255.0.7253
kern.info kernel: [ 1023.201162] wil6210 0000:01:00.0 wlan0: wil_set_oob_mode: oob_mode to 0
kern.info kernel: [ 1023.209402] wil6210 0000:01:00.0 wlan0: wil_reset: Use firmware <wil6210.fw> + board <wil6210.brd>
kern.info kernel: [ 1023.243183] wil6210 0000:01:00.0 wlan0: wmi_evt_ready: FW ver. 5.2.0.18(SW 18); MAC c4:ad:34:26:33:31; 0 MID's
kern.info kernel: [ 1023.243263] wil6210 0000:01:00.0 wlan0: wil_wait_for_fw_ready: FW ready after 10 ms. HW version 0x00000002
kern.info kernel: [ 1023.252267] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_TX_CNT_TRSH = 500 usec
kern.info kernel: [ 1023.261787] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_TX_IDL_CNT_TRSH = 13 usec
023.271422] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_RX_CNT_TRSH = 500 usec
kern.info kernel: [ 1023.281376] wil6210 0000:01:00.0 wlan0: wil_configure_interrupt_moderation: set ITR_RX_IDL_CNT_TRSH = 13 usec
kern.info kernel: [ 1023.290923] wil6210 0000:01:00.0 wlan0: wil_refresh_fw_capabilities: keep_radio_on_during_sleep (0)
kern.err kernel: [ 1023.408798] wil6210 0000:01:00.0 wlan0: wmi_call: wmi_call(0x0822->0x1821) timeout 100 msec
daemon.err hostapd: Failed to set beacon parameters
kern.info kernel: [ 1024.210927] wil6210 0000:01:00.0 wlan0: wmi_event_handle: Unhandled event 0x1821
kern.info kernel: [ 1024.212092] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=2
kern.info kernel: [ 1024.217417] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=2
kern.info kernel: [ 1024.226469] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=ff:ff:ff:ff:ff:ff, reason=3
kern.info kernel: [ 1024.236391] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=ff:ff:ff:ff:ff:ff, reason=3
daemon.err hostapd: Interface initialization failed
daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLED
daemon.notice hostapd: wlan0: AP-DISABLED
daemon.err hostapd: wlan0: Unable to setup interface.
daemon.notice hostapd: wlan0: interface state DISABLED->DISABLED
kern.info kernel: [ 1024.247228] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=ff:ff:ff:ff:ff:ff, reason=3
kern.info kernel: [ 1024.257401] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=ff:ff:ff:ff:ff:ff, reason=3
daemon.notice hostapd: wlan0: AP-DISABLED
daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATING
daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't started
daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
kern.info kernel: [ 1024.343507] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect: disconnect bssid=  (null), reason=3
kern.info kernel: [ 1024.343897] wil6210 0000:01:00.0 wlan0: _wil6210_disconnect_complete: disconnect_complete: bssid=  (null), reason=3
kern.info kernel: [ 1024.424338] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader struct v2: MAC = c4:ad:34:26:33:31 RF = 0x0000 (status 0x0000) bband = 0x00000000
kern.info kernel: [ 1024.424758] wil6210 0000:01:00.0 wlan0: wil_get_bl_info: Boot Loader build 255.255.0.7253
kern.info kernel: [ 1024.437607] wil6210 0000:01:00.0 wlan0: wil_set_oob_mode: oob_mode to 0
daemon.notice hostapd: ELOOP: remaining socket: sock=22 eloop_data=0xb6fc1560 user_data=0 handler=0x52800
daemon.notice netifd: radio0 (2260): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory