Bug 1095177 - [Internet Sharing] Hotspot network cannot be seen by other devices. r=jjong

This commit is contained in:
Vincent Chang 2014-11-28 16:08:41 +08:00
Родитель e705b029da
Коммит aa3f936578
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;
} }