Skip to content

[th/nmcli-guess-wep-key-type-msg] nmcli: avoid message about guessed wep-key-type when setting WEP password

Thomas Haller requested to merge th/nmcli-guess-wep-key-type-msg into main
$ nmcli --offline connection add type wifi con-name hotspot ssid hotspot-ssid wifi.mode ap wifi-sec.key-mgmt none wifi-sec.wep-key-type 1 wifi-sec.wep-key0 1234567890

would previously always print a message

Info: WEP key is guessed to be of '1 (key)'

At least, when we explicitly set the key-type, this message is bogus. Suppress it.

It's anyway questionable whether printing such warnings does anything good. We would still get the warning with the arguments swapped, which seems wrong:

$ nmcli --offline connection add type wifi con-name hotspot ssid hotspot-ssid wifi.mode ap wifi-sec.key-mgmt none wifi-sec.wep-key0 1234567890 wifi-sec.wep-key-type 1
Info: WEP key is guessed to be of '1 (key)'

Merge request reports