all: adjust nm_utils_is_empty_ssid() to return TRUE for zero length SSID

A SSID of zero length, really looks "empty". Let
nm_utils_is_empty_ssid() indicate so too.

This affects some places, that try to guess what a hidden SSID looks
like. In general, it seems that treating a length of zero as empty, is
suitable also then.
This commit is contained in:
Thomas Haller 2023-12-06 10:48:19 +01:00
parent 38feb4c124
commit 0a64237932
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -5970,6 +5970,9 @@ nm_utils_exp10(gint16 ex)
gboolean
_nm_utils_is_empty_ssid_arr(const guint8 *ssid, gsize len)
{
if (len == 0)
return TRUE;
/* Single white space is for Linksys APs */
if (len == 1 && ssid[0] == ' ')
return TRUE;