/* This function fetches the SSID the device is connected to.  */
int32_t getDeviceSSID(void)
/* This function fetches the SSID the device is connected to.  */
int32_t getDeviceSSID(void)
{
    uint16_t len = 32;
    uint16_t config_opt = SL_WLAN_AP_OPT_SSID;
    if (GET_STATUS_BIT(nF_ControlBlock.Status, AppStatusBits_IpAcquired) &&
        GET_STATUS_BIT(nF_ControlBlock.Status, AppStatusBits_Connection))
    {
    }
    else if (
        GET_STATUS_BIT(nF_ControlBlock.Status, AppStatusBits_IpAcquired) &&
        GET_STATUS_BIT(nF_ControlBlock.Status, AppStatusBits_IpLeased))
    {
    }
    else
    {
        return (-1);
    }
    return (0);
}