Fix issue related to an invalid SSID length
Fix issue related to an invalid SSID length

WiFi tool is now returning an error message.
Correct a buffer overflow.
Issue occured when the length of the SSID was precisely 32 bytes.
Apply corrections regarding the code review comments.

Resolves: LE-3500 LE-3507
Related: LE-3507
Change-Id: I1a9e91082524319535190f7bdf96b3d78437e35a

legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af,legatoproject/legato-af