If kernel not built with CONFIG_RMNET, fallback QMI multiplexed connections to qmi_wwan
The checks in configure to see if we can use RMNET based link creation rely on kernel headers (with AC_EGREP_HEADER
). This is obviously not enough because it may be that the kernel is really built without CONFIG_RMNET.
The logic in libqmi/ModemManager should not fail a connection attempt if we were trying with RMNET and RMNET support is not built. Instead, we should provide a proper fallback (e.g. use plain qmi_wwan add_mux/del_mux or default to no multiplexing).
The way to solve this should be to "test" in runtime whether the rmnet operations can be used or not.