mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-11 11:50:29 +01:00
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:
parent
38feb4c124
commit
0a64237932
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue