— a/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiServiceImpl.java
+++ b/frameworks/opt/net/wifi/service/java/com/android/server/wifi/WifiServiceImpl.java
@@ -2315,6 +2315,18 @@ public class WifiServiceImpl extends BaseWifiService {
Log.e(TAG, “Failed to post runnable to fetch scan results”);
return new ArrayList();
}
-
//add ycj 20241105
-
List<ScanResult> scanResults_new = new ArrayList<ScanResult>();
-
if(scanResults!=null){
-
for (ScanResult result : scanResults) {
-
if(!result.SSID.contains("NVRAM WARNING")){
-
scanResults_new.add(result);
-
}
-
}
-
return scanResults_new;
-
}
-
//end ycj 20251105
-
return scanResults; } catch (SecurityException e) { Slog.e(TAG, "Permission violation - getScanResults not allowed for uid="