зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1095177 - [Internet Sharing] Hotspot network cannot be seen by other devices. r=jjong
This commit is contained in:
Родитель
e705b029da
Коммит
aa3f936578
|
@ -997,7 +997,7 @@ NetworkManager.prototype = {
|
||||||
} else {
|
} else {
|
||||||
let mobile = this.getNetworkInterface(
|
let mobile = this.getNetworkInterface(
|
||||||
Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE, this._dataDefaultServiceId);
|
Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE, this._dataDefaultServiceId);
|
||||||
if (mobile) {
|
if (mobile && mobile.name) {
|
||||||
this._tetheringInterface[TETHERING_TYPE_USB].externalInterface = mobile.name;
|
this._tetheringInterface[TETHERING_TYPE_USB].externalInterface = mobile.name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1142,7 +1142,7 @@ NetworkManager.prototype = {
|
||||||
let mobile = this.getNetworkInterface(
|
let mobile = this.getNetworkInterface(
|
||||||
Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE, this._dataDefaultServiceId);
|
Ci.nsINetworkInterface.NETWORK_TYPE_MOBILE, this._dataDefaultServiceId);
|
||||||
// Update the real interface name
|
// Update the real interface name
|
||||||
if (mobile) {
|
if (mobile && mobile.name) {
|
||||||
this._tetheringInterface[TETHERING_TYPE_WIFI].externalInterface = mobile.name;
|
this._tetheringInterface[TETHERING_TYPE_WIFI].externalInterface = mobile.name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче