modemmanager: fix 'any' iptype setting
authorAleksander Morgado <aleksander@aleksander.es>
Fri, 15 Nov 2019 12:29:12 +0000 (13:29 +0100)
committerAleksander Morgado <aleksander@aleksander.es>
Fri, 15 Nov 2019 14:41:25 +0000 (15:41 +0100)
commit470fcc221b5e01eab70276ec146aaab12ddd21c8
tree862ec75710a1b1bf2b8252713c02329ecccb854c
parente036312e6b38a4a3537e15f377b437f4485e22a5
modemmanager: fix 'any' iptype setting

When the user requests 'any' as 'iptype', we may get either IPv4 or
IPv6 settings.

Simplify the logic by not requiring any explicit iptype before loading
the method reported by the bearer object for IPv4 and IPv6; just load
the methods right away and setup settings based on those.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
net/modemmanager/Makefile
net/modemmanager/files/modemmanager.proto