• spiiroin's avatar
    [network] Refactor network and tethering setup. JB#46940 · 149dd17f
    spiiroin authored
    Network sharing via connman does not work in all devices, legacy sharing
    config not ivolving connman works in no devices. Part of the problem lies
    in connman/kernel end (device type for rndis0 interface is not reported by
    udev and/or connman developer mode plugin does not take connection sharing
    mode into account), part is due to fragile / broken usb-moded side logic.
    
    Stop usb-moded from making wifi / cellular power cycle requests.
    
    When using legacy sharing config and cellular is not online, make an
    attempt to share wlan connection (the connman way already does this).
    
    Rewrite all D-Bus ipc logic and refactor the rest too.
    
    Add error checks in select places so that usb-moded abandons failed
    mode setting and falls back to charging only.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    149dd17f