Bug 769248 - Don't overwrite a good BSSID with a bad one. r=gal

This commit is contained in:
Blake Kaplan 2012-06-28 15:40:05 +02:00
parent 8da7931e65
commit fce23dd7f2

View File

@ -718,9 +718,11 @@ var WifiManager = (function() {
fields.state = supplicantStatesMap[fields.state];
// The BSSID field is only valid in the ASSOCIATING and ASSOCIATED
// states.
if (fields.state === "ASSOCIATING" || fields.state == "ASSOCIATED")
// states, except when we "reauth", except this seems to depend on the
// driver, so simply check to make sure that we don't have a null BSSID.
if (fields.BSSID !== "00:00:00:00:00:00")
manager.connectionInfo.bssid = fields.BSSID;
notifyStateChange(fields);
return true;
}