6 Replies Latest reply on Jul 22, 2015 1:37 AM by andycham

    Bug in WICED/internal/waf.c

      I rather think that wiced_dct_write_wifi_config_section should write the WIFI section, not the DCT section... As a GIT-style diff this is the fix:

       

      diff --git a/WICED/internal/waf.c b/WICED/internal/waf.c

      index 72e37bc..12b07b8 100644

      --- a/WICED/internal/waf.c

      +++ b/WICED/internal/waf.c

      @@ -163,7 +163,7 @@ wiced_result_t wiced_dct_read_wifi_config_section( platform_dct_wifi_config_t* w

       

      wiced_result_t wiced_dct_write_wifi_config_section( const platform_dct_wifi_config_t* wifi_config_dct )

      {

      -    return wiced_dct_write( wifi_config_dct, DCT_SECURITY_SECTION, 0, sizeof( *wifi_config_dct ) );

      +    return wiced_dct_write( wifi_config_dct, DCT_WIFI_CONFIG_SECTION, 0, sizeof( *wifi_config_dct ) );

      }

       

      I found it in 3.1.2, so it's probably been there for ages.