Commit graph

5 commits

Author SHA1 Message Date
lzgmc
63e608a22f
sdm710-common: WifiOverlay: Swap RSSI threshold values
This fixes random Wi-Fi disconnects.
Forgot to pick in 12 branch
2021-11-16 11:37:01 +01:00
UtsavBalar1231
6215927695 sdm710-common: WifiOverlay/wcnss: Relax RSSI thresholds
* Fixes random WIFI crashes
E/WifiVendorHal(1633): stopRssiMonitoring(l.2100) failed {.code = ERROR_NOT_AVAILABLE, .description = }
V/WifiClientModeImpl(1633): stopIpClient IpClientWithPreConnection: false
V/WifiClientModeImpl(1633): java.lang.Throwable
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.stopIpClient(ClientModeImpl.java:1068)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.stopDhcpSetup(ClientModeImpl.java:1083)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.handleNetworkDisconnect(ClientModeImpl.java:2760)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl.access$5600(ClientModeImpl.java:163)
V/WifiClientModeImpl(1633): 	at com.android.server.wifi.ClientModeImpl$ConnectModeState.processMessage(ClientModeImpl.java:4284)
V/WifiClientModeImpl(1633): 	at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:992)
V/WifiClientModeImpl(1633): 	at com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:809)
V/WifiClientModeImpl(1633): 	at android.os.Handler.dispatchMessage(Handler.java:106)
V/WifiClientModeImpl(1633): 	at android.os.Looper.loop(Looper.java:223)
V/WifiClientModeImpl(1633): 	at android.os.HandlerThread.run(HandlerThread.java:67)
D/DhcpClient(2452): doQuit
D/QCNEJ/WlanStaInfoRelay(2529): Received action: android.net.wifi.STATE_CHANGE
D/QCNEJ/WlanStaInfoRelay(2529): reset CountryCodeRetriever
D/ApfFilter(2452): (wlan0): shutting down
I/WifiClientModeImpl(1633): disconnectedstate enter
E/WifiScoringParams(1633): Invalid frequency(-1), using 5G as default rssi array
D/WifiNetworkAgent(1633): NetworkAgent: NetworkAgent channel lost
I/GnssNetworkConnectivityHandler(1633): Network connection lost. Available networks count: 0
I/GnssNetworkConnectivityHandler(1633): updateNetworkState, state=CLOSED, connected=false, network=100, capabilities=[ Transports: WIFI Capabilities: NOT_METERED&INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN&VALIDATED&NOT_ROAMING&FOREGROUND&NOT_CONGESTED&NOT_SUSPENDED LinkUpBandwidth>=65000Kbps LinkDnBandwidth>=65000Kbps SignalStrength: -71 AdministratorUids: [] SSID: "Skymedia_19" RequestorUid: -1 RequestorPackageName: null], apn: , availableNetworkCount: 0
I/LocSvc__AGnssRilInterface(823): ===> updateNetworkState_2_0 line 110
D/QCNEJ/DefaultNetworkInfoRelay(2529): Default network lost: 100
D/QCNEJ/NativeHalConnector(2529): -> SND notifyDefaultNetworkChanged(1)
D/QCNEJ/WlanStaInfoRelay(2529): network lost: 100
D/QNEJ/WlanStaInfoRelay(2529): onLost: unbind the process to WIFI
D/AppCenter(10415): Network 100 is lost.

Change-Id: I385391f278086520530cc9215ca6fdae55c40b73
Signed-off-by: Adithya R <gh0strider.2k18.reborn@gmail.com>
Signed-off-by: raghavt20 <raghavtandon2000@gmail.com>
2021-08-12 00:22:38 +03:00
Hai Shalom
a811bb4204
kunlun2: Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices
Disable WPA2 to WPA3 auto-upgrade in P18 and P19 devices.
These devices do not support roaming in WPA3 networks. Reduce the
probability of roaming issues by using WPA2 and not upgrading to WPA3.

Bug: 169948620
Test: atest ClientModeImplTest ScanResultMatchInfoTest WifiCandidatesTest
Change-Id: I9f7ec5c0007efcc5c6669d013c8b24347b15f7c4
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:47:05 +02:00
Mingguang Xu
d76a37d4c8
kunlun2: WifiOverlay: enable minimum confirmation duration
for sending network score to connectivity service

Bug: 166152800

Test: verified feature works on device

Signed-off-by: Mingguang Xu <mingguangxu@google.com>
Change-Id: I646709894682e73cce6e181098b75587551d7604
Signed-off-by: Chenyang Zhong <zhongcy95@gmail.com>
Signed-off-by: DennySPb <dennyspb@gmail.com>
2021-07-17 18:45:29 +02:00
Roshan Pius
62c81ec8a9 kunlun2: Add WifiOverlay
Bug: 148617260
Test: Device boots up and connects to wifi networks.
Change-Id: Iec27a6d947a232a42451ef095dc73d1a52327db5
2020-11-12 15:14:46 +01:00