uqmi: set plmn only if necessary
authorMartin Schiller <ms@dev.tdt.de>
Wed, 28 Aug 2019 05:24:33 +0000 (07:24 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 24 Nov 2020 15:18:16 +0000 (15:18 +0000)
commitb4b829fe64908d0f8743175e7d3ce05cdb3177d8
tree5e627bc0b7c919179df9f9f7e0e50bcff9c0a079
parentbc64b9c32e00bf398f29f360fd2286d26ef3b7d5
uqmi: set plmn only if necessary

Setting the plmn to '0' (auto) will implicitly lead to a (delayed)
network re-registration, which could further lead to some timing
related issues in the qmi proto handler.

On the other hand, if you switch back from manual plmn selection
to auto mode you have to set it to '0', because this setting is
permanently "saved" in the wwan module.

Conclusion:
If plmn is configured, check if it's already set euqally in the module.
If so, do nothing. Otherwise set it.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
package/network/utils/uqmi/Makefile
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh