Hi,

I have looked in the source found online and it looks like the config  
in the following code is not being set.
WifiConfiguration config = findConfiguredNetwork(state);

private WifiConfiguration findConfiguredNetwork(AccessPointState  
state) {
final List<WifiConfiguration> wifiConfigs = getConfiguredNetworks();
for (int i = wifiConfigs.size() - 1; i >= 0; i--) {
final WifiConfiguration wifiConfig = wifiConfigs.get(i);
if (state.matchesWifiConfiguration(wifiConfig) >=  
AccessPointState.MATCH_WEAK) {
return wifiConfig;
}
}
return null;
}

So I guess the following isn't working:
if (state.matchesWifiConfiguration(wifiConfig) >=  
AccessPointState.MATCH_WEAK) {
return wifiConfig;
}

Does anyone know who wrote this? It looks like it's going through the  
available access points list in reverse, but after that I'm kinda lost.

Regards,
Julius.

On 18/11/2009, at 8:27 AM, julius wrote:

> Hi,
>
> I continue to have issues with the Wifi on my G1 (running 1.6). When I
> hook it up to Eclipse I see the following errors when I try to connect
> to an access point:
>
> 11-18 08:20:10.204: ERROR/SettingsWifiLayer(6434): Config is still
> null, even after attempting to add it.
> 11-18 08:20:10.204: ERROR/SettingsWifiLayer(6434): Unable to connect
> to the network
>
> This occurs with all (6) access points that I use at different times.
> Almost every access point is a different brand or model.
>
> Has anyone seen this issue?
>
> Regards,
> Julius.
>
> -- 
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to