wifi-util: do not ignore wifi iftype when SSID is not set
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Jan 2021 14:36:42 +0000 (23:36 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Feb 2021 16:35:40 +0000 (17:35 +0100)
commit2d848c377377ffe0db93e99beee5fd3caf193326
tree106b2bc6182439bec88a06f6d06461c904b19c1c
parent73cb4b1dad31185843d0d0c9e3cc6737727e721f
wifi-util: do not ignore wifi iftype when SSID is not set

Previously, if an interface does not have SSID, e.g. run in mesh-point
type, then the wifi iftype obtained by the netlink call was ignored.

Fixes #18059.

(cherry picked from commit a66a402da471f6230ab8674fd2c1df6d918773b5)
(cherry picked from commit fc4eae72f8dd34a334b2707614d9c07974d4d604)
src/shared/wifi-util.c