"airplane mode" status after system reboot mismatch for WiFi and WWAN
On a laptop (A thinkpad running Arch Linux, NM 1.14.5dev+17+gba83251b-2), enabling the "airplane mode" via the UI ends up setting both WiFi and WWAN radio subsystems as disabled, as expected. From the WWAN point of view it ends up putting the modem in low-power mode as well (RF off) through ModemManager.
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.7805] manager: rfkill: WiFi now disabled by radio killswitch
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.7807] device (wlan0): state change: disconnected -> unavailable (reason 'none', sys-iface-state: 'managed')
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8133] manager: rfkill: WWAN now disabled by radio killswitch
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8137] modem["cdc-wdm2"]: modem state changed, 'registered' --> 'disabling' (reason: user preference)
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8138] device (cdc-wdm2): state change: disconnected -> unavailable (reason 'none', sys-iface-state: 'external')
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8147] modem["cdc-wdm1"]: modem state changed, 'registered' --> 'disabling' (reason: user preference)
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8147] device (cdc-wdm1): state change: disconnected -> unavailable (reason 'none', sys-iface-state: 'external')
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8561] modem["cdc-wdm2"]: modem state changed, 'disabling' --> 'disabled' (reason: user-requested)
feb 12 12:39:41 poseidon NetworkManager[612]: <info> [1549971581.8578] modem["cdc-wdm1"]: modem state changed, 'disabling' --> 'disabled' (reason: user-requested)
Then, the system is shutdown and restarted again.
Upon restart, NM ends up with the WiFi radio subsystem as enabled, and the WWAN radio subsystem is kept disabled. The effect from the user point of view is that the system boots "no longer in airplane mode" (as the airplane mode icon is not shown), but there is no access to the WWAN device, as the WWAN radio is still disabled.
feb 12 12:41:52 poseidon NetworkManager[631]: <info> [1549971712.7976] rfkill2: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill2) (driver iwlwifi)
feb 12 12:41:52 poseidon NetworkManager[631]: <info> [1549971712.7979] rfkill1: found WWAN radio killswitch (at /sys/devices/platform/thinkpad_acpi/rfkill/rfkill1) (platform driver thinkpad_acpi)
feb 12 12:41:52 poseidon NetworkManager[631]: <info> [1549971712.7982] manager[0x55e52c93f0c0]: rfkill: WiFi hardware radio set enabled
feb 12 12:41:52 poseidon NetworkManager[631]: <info> [1549971712.7992] manager[0x55e52c93f0c0]: rfkill: WWAN hardware radio set disabled
Shouldn't the "airplane mode" state be kept across the reboot for both WWAN and WiFi subsystems? Or is NM just reading the radio state from the 2 different rfkill switches found in the system, and one happens to be off while the other one happens to be on?
Also, in a different system (a Dell laptop running Ubuntu 18.04, so NM 1.10.6) where there is no explicit radio killswitch found for WWAN, the same issue ends up happening: WiFi is enabled after reboot, but WWAN is disabled.
Jan 31 17:38:40 latitude NetworkManager[945]: <info> [1548927520.7363] manager: rfkill: WWAN hardware radio set disabled
Jan 31 17:38:40 latitude NetworkManager[945]: <debug> [1548927520.7363] manager: (cdc-wdm0): rfkill: setting radio disabled
Jan 31 17:38:40 latitude NetworkManager[945]: <info> [1548927520.7363] manager: rfkill: WWAN hardware radio set disabled
Jan 31 17:38:40 latitude NetworkManager[945]: <debug> [1548927520.7363] manager: (cdc-wdm0): rfkill: setting radio disabled
<reboot>
Jan 31 17:39:43 latitude NetworkManager[973]: <info> [1548927583.4841] manager[0x556d9b6fb060]: rfkill: WiFi hardware radio set enabled
Jan 31 17:39:43 latitude NetworkManager[973]: <info> [1548927583.4841] manager[0x556d9b6fb060]: rfkill: WWAN hardware radio set disabled
Jan 31 17:39:43 latitude NetworkManager[973]: <info> [1548927583.5527] manager: rfkill: WiFi disabled by radio killswitch; enabled by state file
Jan 31 17:39:43 latitude NetworkManager[973]: <info> [1548927583.5527] manager: rfkill: WWAN enabled by radio killswitch; disabled by state file