Hikey 970 wifi can connected,no Internet

Connect two wifi hotspots
1.
[ 1201.206267] wlan0: deauthenticating from bc:46:99:90:0a:8d by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1201.255638] wlan0: authenticate with 14:75:90:ec:a4:f7
[ 1201.272244] wlan0: send auth to 14:75:90:ec:a4:f7 (try 1/3)
[ 1201.301686] wlan0: authenticated
[ 1201.308501] wlan0: associate with 14:75:90:ec:a4:f7 (try 1/3)
[ 1201.318991] wlan0: RX AssocResp from 14:75:90:ec:a4:f7 (capab=0x421 status=0 aid=7)
[ 1201.342171] wlan0: associated
[ 1201.346690] wlcore: Association completed.
[ 1201.359187] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by 14:75:90:ec:a4:f7
[ 1201.409326] hisi_thermal fff30000.tsensor: THERMAL ALARM: 66032 > 65000
[ 1202.100930] hisi_thermal fff30000.tsensor: THERMAL ALARM stopped: 61064 < 65000
[ 1209.584266] hisi_thermal fff30000.tsensor: THERMAL ALARM: 65384 > 65000
[ 1209.712459] hisi_thermal fff30000.tsensor: THERMAL ALARM stopped: 61064 < 65000

[ 1282.445467] wlan0: deauthenticating from 14:75:90:ec:a4:f7 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 1282.495501] type=1400 audit(1524797265.807:62): avc: denied { create } for pid=2603 comm=“Binder:2603_2” name=“globalAlert” scontext=:r:netd:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
[ 1282.513526] type=1400 audit(1524797891.739:63): avc: denied { write } for pid=3344 comm=“wpa_supplicant” name=“drop_unicast_in_l2_mulicast” dev=“proc” ino=12493 scontext=u:r:hal_wifi_supplicant_default:s0 tcontext=u:object_r:proc_net:s0 tclass=file permissive=1
[ 1282.518817] wlan0: authenticate with bc:46:99:90:0a:8d
[ 1282.522981] wlan0: send auth to bc:46:99:90:0a:8d (try 1/3)
[ 1282.556789] wlan0: authenticated
[ 1282.564492] wlan0: associate with bc:46:99:90:0a:8d (try 1/3)
[ 1282.577838] wlan0: RX AssocResp from bc:46:99:90:0a:8d (capab=0x431 status=0 aid=8)
[ 1282.606682] wlan0: associated
[ 1282.625420] wlcore: Association completed.
[ 1282.655224] hisi_thermal fff30000.tsensor: THERMAL ALARM: 66464 > 65000
[ 1283.363641] hisi_thermal fff30000.tsensor: THERMAL ALARM stopped: 61064 < 65000

Does anyone know why Hikey 970 WiFi can be connected but prompts that there is no Internet?

Are you able to get a valid IP address (if DHCP in use)?
If yes, check the routing and firewall configuration.

When I tested the builtin WiFi using a custom compiled Linux kernel, I didn’t spot any problems.

I found it on my own compiled Android system.
I can get the IP address.
Does Android have a firewall?

I don’t see wi-fi MAC address, could this cause this problem?

Networking under Linux and Wifi has generally two ways to setup.
Either you are using manual setup with the commandline tooling or you use a desktop setting.

For each of those there is a huge amount of info to be found on the internet.
These issues are generic Linux and distibution related. Not specific hikey970.
Do you have extensive Linux experience?

I surf the Internet in China, but China cannot directly access Google. According to my data, after wifi connection, a Google page 204 will be automatically visited to determine whether this hotspot is connected to the Internet.I think that’s causing my problem.:disappointed:

Maybe you could try to change the test server address: https://android.stackexchange.com/questions/182652/is-it-possible-to-designate-an-alternative-wifi-connection-test-site

In china, you can’t connect www.google.com/generate_204.so , you can use http://connect.rom.miui.com/generate_204 to replace www.google.com/generate_204 in /frameworks/base/services/core/java/com/android/server/connectivity/NetworkMonitor.java
private static final String DEFAULT_HTTPS_URL = “https://www.google.com/generate_204”;
105 private static final String DEFAULT_HTTP_URL =
106 “http://connectivitycheck.gstatic.com/generate_204”;
107 private static final String DEFAULT_FALLBACK_URL = “http://www.google.com/gen_204”;
108 private static final String DEFAULT_OTHER_FALLBACK_URLS =
109 “http://play.googleapis.com/generate_204”;
http–>http;https–>https