TPE RIL Network team/NetworkManagerEnhancement

From MozillaWiki
Jump to: navigation, search

meta bug

Internal interface changes

Background

Proposal

   interface nsINetworkInterface {
     readonly attribute nsINetworkInfo info;
     readonly attribute DOMString httpProxyHost;
     readonly attribute long httpProxyPort;

     void activate();
     void deactivate();     
   };
   interface nsINetworkInfo {
     readonly attribute long type; /* WIFI/MOBILE/MMS/SUPL */
     readonly attribute long state; /* Connected/Disconnected/... */
     readonly attribute DOMString name; /* Interface name: eth0, ... */
     void getAddresses([array, size_is(count)] out wstring ips,
                       [array, size_is(count)] out unsigned long prefixLengths,
                       [retval] out unsigned long count);
     void getGateways([optional] out unsigned long count,
                      [array, size_is(count), retval] out wstring gateways);
     void getDnses([optional] out unsigned long count,
                   [array, size_is(count), retval] out wstring dnses);
   };

Bugs

  • bug 990458 - B2G RIL: replace the use of 'network-interface-state-changed' events with updateNetworkInterface() API.
  • bug 904542 - B2G NetworkManager: Redefine the nsINetworkInterface
    1. bug 1168021 - [NetworkManager] consider expanding the nsINetworkInterface parameter in NetworkService interface
    2. bug 1167132 - [NetworkManager] move network information into a separate interface
    3. bug 911713 - B2G NetworkManager: Move policy control logic to NetworkManager
    4. bug 1207066 - [NetworkManager] implement nsINetworkInterface.activate()/deactivate() in wifi network interface
    5. bug 1216468 - B2G NetworkManager: provide a flag to indicate network interface's ready state
  • bug 928861 - B2G NetworkManager: Provide a more generic function for connecting

Discussion

Routing improvements

Bugs

  • bug 997654 - B2G RIL: let each network handle its own host routes
  • bug 973543 - B2G RIL: host routes removed unexpectedly when data call is shared
  • No bug yet - B2G RIL: add callbacks in routing requests in NetworkService -> done in bug 1126222

Discussion

None

Other improvements

Bugs

  • bug 1109479 - B2G tethering: move tethering code out of NetworkManager
  • bug 1126222 - B2G NetworkManager: fire 'network-connection-state-changed' after internal work is done (

Discussion

None

Web API changes

Proposal

Use case

Bugs

  • bug 922584 - B2G RIL: provide WebAPI to setup network connections and expose connection state

Discussion

https://taiwan.etherpad.mozilla.org/1002