AnsweredAssumed Answered

wifi module rtl8812 softap start failed on android6.0(kernel4.1.15)

Question asked by sunyd@qiyangtech.com on Nov 19, 2018

first,turn on the Portable Wi-Fi hotspot button to enable hotspot,but hotspot keep the status,as shown below redline mark

log:

RTW: EEPROM ID=0x8129
RTW: VID = 0x0BDA, PID = 0x0811
RTW: Customer ID: 0x00, SubCustomer ID: 0xCD
RTW: EEPROMRegulatory = 0x1
RTW: Board Type: 0x 0
RTW: Hal_EfuseParseBTCoexistInfo8812A: BTCoexist=Disable, AntNum=1, AntPath=0
RTW: hal_com_config_channel_plan chplan:0x7F
RTW: crystal_cap: 0x11
RTW: ThermalMeter = 0x1b
RTW: Hal_ReadRemoteWakeup_8812A...bSupportRemoteWakeup(1)
RTW: pHalData->PAType_2G is 0x0, pHalData->ExternalPA_2G = 0
RTW: pHalData->PAType_5G is 0x0, pHalData->external_pa_5g = 0
RTW: pHalData->LNAType_2G is 0x0, pHalData->ExternalLNA_2G = 0
RTW: pHalData->LNAType_5G is 0x0, pHalData->external_lna_5g = 0
RTW: Usb Switch: 0
RTW: PID= 0x811, VID= bda
RTW: PID= 0x811, VID= bda
RTW: Customer ID: 0x 0
RTW: hal_ReadUsbType_8812AU: antenna=7, wmode=3
RTW: rtw_hal_read_chip_info in 190 ms
RTW: init_channel_set((null)) ChannelPlan ID:0x7f, ch num:37
RTW: NR_RECVBUFF: 8
RTW: MAX_RECVBUF_SZ: 32768
RTW: NR_PREALLOC_RECV_SKB: 8
RTW: rtw_alloc_macid((null)) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:1
RTW: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
RTW: pwrctrlpriv.bSupportRemoteWakeup~~~~~~
RTW: pwrctrlpriv.bSupportRemoteWakeup~~~[1]~~~
RTW: can't get autopm:
RTW: rtw_macaddr_cfg mac addr:0c:8c:24:6d:e4:ba
RTW: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
RTW: init_channel_set((null)) ChannelPlan ID:0x7f, ch num:37
RTW: NR_RECVBUFF: 8
RTW: MAX_RECVBUF_SZ: 32768
RTW: NR_PREALLOC_RECV_SKB: 8
RTW: rtw_alloc_macid((null)) if2, hwaddr:ff:ff:ff:ff:ff:ff macid:1
RTW: rtw_drv_add_vir_if if2 mac_addr : 0e:8c:24:6d:e4:ba
RTW: rtw_wiphy_alloc(phy0)
RTW: rtw_wdev_alloc(padapter=e7a5d000)
RTW: rtw_wiphy_alloc(phy1)
RTW: rtw_wdev_alloc(padapter=e7c1a000)
RTW: rtw_wiphy_register(phy0)
RTW: Register RTW cfg80211 vendor cmd(0x67) interface
RTW: rtw_ndev_init(wlan0) if1 mac_addr=0c:8c:24:6d:e4:ba
RTW: rtw_ndev_notifier_call(wlan0) state:16
RTW: rtw_ndev_notifier_call(wlan0) state:5
RTW: rtw_wiphy_register(phy1)
RTW: Register RTW cfg80211 vendor cmd(0x67) interface
RTW: rtw_ndev_init(p2p0) if2 mac_addr=0e:8c:24:6d:e4:ba
RTW: rtw_ndev_notifier_call(p2p0) state:16
RTW: rtw_ndev_notifier_call(p2p0) state:5
usbcore: registered new interface driver rtl8821au
RTW: module init ret=0
init: Starting service 'rtw_fwloader'...
init: Service 'rtw_fwloader' (pid 1590) exited with status 0
RTW: rtw_ndev_notifier_call(wlan0) state:13
RTW: _netdev_open(wlan0) , bup=0
RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
RTW: MAC has not been powered on yet.
RTW: SetHwReg: bMacPwrCtrlOn=1
RTW: FirmwareDownload8812 fw source from Header
RTW: FirmwareDownload8812 fw:NIC, size: 31834
RTW: FirmwareDownload8812: fw_ver=40 fw_subver=1 sig=0x2101
RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00070605
RTW: =====> _8051Reset8812(): 8051 reset success .
RTW: _FWFreeToGo8812: Polling FW ready OK! (12, 40ms), REG_MCUFWDL:0x000706c6
RTW: FWDL success. write_fw:1, 90ms
RTW: rtl8812au_hal_init: Download Firmware Success!!
11-20 11:42:42.748 1071 1071 I Choreographer: Skipped 51 frames! The application may be doing too much work on its main thread.
RTW: HW_VAR_BASIC_RATE: 0x15f->0x15f->0x15f
RTW: rtl8812a_combo_card_WifiOnlyHwInit !
RTW: rtl8812au_hal_init in 880ms
RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: rtw_hal_set_macaddr_port p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: rtw_hal_get_macaddr_port wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: rtw_hal_get_macaddr_port p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: MAC Address = 0c:8c:24:6d:e4:ba
RTW: rtw_cfg80211_init_wiphy:rf_type=3
RTW: [HT] HAL Support LDPC = 0x02
RTW: [HT] HAL Support STBC = 0x01
RTW: [HT] HAL Support LDPC = 0x02
RTW: [HT] HAL Support STBC = 0x01
RTW: _netdev_vir_if_open(p2p0) , bup=0
RTW: rtw_cfg80211_init_wiphy:rf_type=3
RTW: [HT] HAL Support LDPC = 0x02
RTW: [HT] HAL Support STBC = 0x01
RTW: [HT] HAL Support LDPC = 0x02
RTW: [HT] HAL Support STBC = 0x01
RTW: _netdev_vir_if_open(p2p0) (bup=1) exit
RTW: -871x_drv - drv_open, bup=1
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
RTW: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
RTW: rtw_ndev_notifier_call(wlan0) state:1
11-20 11:42:43.132 562 605 D wifi : set interface wlan0 flags (UP)
11-20 11:42:43.132 562 605 D wifi : Did set static halHandle = 0x0
11-20 11:42:43.132 562 605 D wifi : halHandle = 0x0, mVM = 0xb4dbc000, mCls = 0xeee
11-20 11:42:43.132 562 605 E WifiNative-HAL: Could not start hal
11-20 11:42:43.132 562 605 E WifiStateMachine: Failed to start HAL
11-20 11:42:43.133 562 605 D WifiStateMachine: setWifiApState: enabling
11-20 11:42:43.135 562 605 D WifiStateMachine: SoftAp config channel is: 0
11-20 11:42:43.183 1390 1390 E SoftapController: SoftAP is already running
11-20 11:42:43.184 562 1595 D WifiStateMachine: Soft AP start successful
11-20 11:42:43.185 562 605 D WifiStateMachine: setWifiApState: enabled
11-20 11:42:43.196 1233 1233 D CommandListener: Setting iface cfg
11-20 11:42:43.196 1233 1233 D CommandListener: Trying to bring up wlan0
11-20 11:42:43.198 562 605 D Tethering: Tethering wlan0
11-20 11:42:43.198 562 605 E Tethering: Tried to Tether an unknown iface :wlan0, ignoring
11-20 11:42:43.198 562 605 E WifiStateMachine: Error tethering on wlan0
11-20 11:42:43.203 562 605 D WifiStateMachine: Link configuration changed for netId: -1 old: {InterfaceName: wlan0 LinkAddresses: [] Routes: [] DnsAddresses: [] Domains: null MTU: 0 TcpBufferSizes: 524288,1048576,2097152,262144,524288,1048576} new: {InterfaceName: wlan0 LinkAddresses: [192.168.43.1/24,] Routes: [] DnsAddresses: [] Domains: null MTU: 0 TcpBufferSizes: 524288,1048576,2097152,262144,524288,1048576}
11-20 11:42:43.203 562 605 D WifiStateMachine: updateLinkProperties nid: -1 state: DISCONNECTED reason: CMD_UPDATE_LINKPROPERTIES v4
11-20 11:42:44.620 207 535 W audio_hw_primary: do_out_standby... -1242503424
11-20 11:42:44.730 218 244 D QTAService: ====change@/devices/platform/regulatory.0===
RTW: ==>rtw_ps_processor .fw_state(0)
RTW: ==>ips_enter cnts:1
RTW: nolinked power save enter
RTW: ===> rtw_ips_pwr_down...................
RTW: ====> rtw_ips_dev_unload...
RTW: usb_read_port_cancel
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_read_port_complete() RX Warning! bDriverStopped(False) OR bSurpriseRemoved(False)
RTW: usb_write_port_cancel
RTW: ==> rtl8812au_hal_deinit
RTW: hal_poweroff_8812au
RTW: =====> _8051Reset8812(): 8051 reset success .
RTW: SetHwReg: bMacPwrCtrlOn=0
RTW: <=== rtw_ips_pwr_down..................... in 110ms
11-20 11:42:47.880 218 244 D QTAService: ====change@/devices/platform/regulatory.0===

 

 

second,if i input command "hostapd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf" to terminal by serial port ,the hotspot is really tuned on,

log:

hostapd -e /data/misc/wifi/entropy.bin /data/misc/wifi/hostapd.conf <
RTW: cfg80211_rtw_change_iface(wlan0) type=3, hw_port:0
RTW: cfg80211_rtw_change_iface(wlan0) call netdev_open
RTW: _netdev_open(wlan0) , bup=1
RTW: -871x_drv - drv_open, bup=1
RTW: _rtw_pwr_wakeup call ips_leave....
RTW: ==>ips_leave cnts:1
RTW: ===> rtw_ips_pwr_up..............
RTW: ===> ips_netdrv_open.........
RTW: power-on :REG_SYS_CLKR 0x09=0x30. REG_CR 0x100=0xea.
RTW: MAC has not been powered on yet.
RTW: SetHwReg: bMacPwrCtrlOn=1
RTW: FirmwareDownload8812 fw source from Header
RTW: FirmwareDownload8812 fw:NIC, size: 31834
RTW: FirmwareDownload8812: fw_ver=40 fw_subver=1 sig=0x2101
RTW: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x00070605
RTW: =====> _8051Reset8812(): 8051 reset success .
RTW: _FWFreeToGo8812: Polling FW ready OK! (202, 30ms), REG_MCUFWDL:0x000706c6
RTW: FWDL success. write_fw:1, 90ms
RTW: rtl8812au_hal_init: Download Firmware Success!!
RTW: HW_VAR_BASIC_RATE: 0x15f->0x15f->0x15f
RTW: rtl8812a_combo_card_WifiOnlyHwInit !
RTW: rtl8812au_hal_init in 510ms
RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: rtw_hal_set_macaddr_port p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: rtw_hal_get_macaddr_port wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: rtw_hal_get_macaddr_port p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: p2p0- hw port(1) mac_addr =0e:8c:24:6d:e4:ba
RTW: <=== rtw_ips_pwr_up.............. in 550ms
RTW: nolinked power save leave
RTW: ==> ips_leave.....LED(0x01408282)...
RTW: cfg80211_rtw_change_iface(wlan0) old_iftype=2, new_iftype=3
RTW: ERROR rtw_release_macid(wlan0) if1, hwaddr:ff:ff:ff:ff:ff:ff with macid:1
RTW: rtw_alloc_macid(wlan0) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:0
RTW: rtw_hal_set_macaddr_port wlan0- hw port(0) mac_addr =0c:8c:24:6d:e4:ba
RTW: cfg80211_rtw_change_iface(wlan0) ret:0
RTW: hw_var_set_opmode()-4711 mode = 3
RTW: +cfg80211_rtw_del_station(wlan0)
RTW: flush all sta, and cam_entry
RTW: rtw_sta_flush(wlan0)
RTW: issue_deauth to ff:ff:ff:ff:ff:ff
RTW: +cfg80211_rtw_del_station(wlan0)
RTW: free sta macaddr =ff:ff:ff:ff:ff:ff
RTW: cfg80211_rtw_del_key(wlan0) key_index=0
RTW: cfg80211_rtw_del_key(wlan0) key_index=1
RTW: cfg80211_rtw_del_key(wlan0) key_index=2
RTW: cfg80211_rtw_del_key(wlan0) key_index=3
RTW: cfg80211_rtw_start_ap(wlan0) hidden_ssid:0, auth_type:5
RTW: rtw_add_beacon beacon_head_len=60, beacon_tail_len=109
RTW: rtw_check_beacon_data, len=145
RTW: [HT] HAL Support LDPC = 0x02
RTW: [HT] HAL Support STBC = 0x01
RTW: update_hw_ht_param
RTW: rtw_hal_set_bssid wlan0- hw port -0 BSSID: 0c:8c:24:6d:e4:ba
RTW: rtw_ap_chbw_decision(wlan0) ld_sta_num:0, lg_sta_num0, ap_num:0
RTW: rtw_ap_chbw_decision(wlan0) req: 0,-1,-1
RTW: rtw_ap_chbw_decision(wlan0) dec: 6,0,0
RTW: HW_VAR_BASIC_RATE: 0x15f->0x15f->0x15f
RTW: add_RATid=> mac_id:0 , raid:8, tx_ra_bitmap:0x000000000000000f, networkType:0x01
RTW: rtw_update_ramask => mac_id:0, networkType:0x01, mask:0x000000000000000f
==> rssi_level:0, rate_bitmap:0x0000000000000000, shortGIrate=0
==> bw:0, ignore_bw:0x0
RTW: IQK offload finish in 30ms
RTW: rtw_cfg80211_indicate_connect(wlan0)
RTW: assoc success
IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
RTW: rtw_ndev_notifier_call(wlan0) state:4
RTW: cfg80211_rtw_change_bss(wlan0)
RTW: cfg80211_rtw_add_key(wlan0) adding key for (null)
RTW: cipher=0xfac04
RTW: key_len=0x10
RTW: seq_len=0x0
RTW: key_index=1
RTW: pairwise=0
RTW: rtw_cfg80211_ap_set_encryption
RTW: rtw_cfg80211_ap_set_encryption, set group_key, CCMP
RTW: rtw_ap_set_group_key
RTW: set group key camid:0, addr:0c:8c:24:6d:e4:ba, kid:1, type:AES
RTW: cfg80211_rtw_set_default_key(wlan0) key_index=1, unicast=0, multicast=1
RTW: cfg80211_rtw_set_mac_acl(wlan0) acl_policy:0, entry_num:0
RTW: WARN cfg80211_rtw_set_mac_acl(wlan0) acl_policy:0 with no entry
RTW: rtw_set_macaddr_acl(wlan0) mode=0
RTW: SetHwReg8812A, 5544, RCR= f400608e

 

 

but , i don't know how to solve it,please help me

 

thanks

Outcomes