mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 769248 - Don't overwrite a good BSSID with a bad one. r=gal
This commit is contained in:
parent
8da7931e65
commit
fce23dd7f2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user