I am trying to use the Legato API for WiFi on the mangOH Red WP8548 with the WiFi IoT card, and noticed that le_wifiClient_GetSsid() returns only the first 25 characters of the SSID, instead of LE_WIFIDEFS_MAX_SSID_LENGTH which is 32 by industry standard. As a result, le_wifiClient_Connect() fails to connect to APs with SSIDs longer than 25 characters (error code -6).
Here’s a sample output from the built in Legato wifi client app. You can see the SSID being cut off after the 25th character. I have set the SSID of an AP to 25 characters and successfully connected, but anything 26 and above has failed.
Now the problem is clear, the bug occurs on line 508: LE_WIFIDEFS_MAX_SSID_BYTES(33) - 7 - 1 = 25, which explains why the SSID is limited to 25 characters.
We have a customer account and can report this bug, or are you able to put the bug into the system?
I would recommend that you create a customer ticket as it would have more weight than issues created on GitHub for instance.
If you have a clean fix and don’t mind signing the contributor agreement (legato-af/CONTRIB_COMPANY.md at master · legatoproject/legato-af · GitHub), we can merge it for you.
A separate but related question, do you know how to connect to hidden SSIDs? wifi client create and then connecting to the reference isn’t working for me. The log output is attached.