You can set a variable to required value after calling wiced_hal_wdog_reset_system(). Then check its status after coming back from soft reset. I do not think of any other way to pass any variable after calling this soft reset API.
Sheetal - I don't think this makes sense. I believe that when you call wiced_hal_wdog_reset_system(); you do not return so no firmware AFTER this call would be executed. So, assigning a variable after the call would not have an effect.
Setting a variable BEFORE the call is what I want, and I want that variable to stay valid after the soft reset. I don't think a globally defined variable will survive the reset, unless there is a special way to define the variable so that it is not initialized during the reset.
Please let me know what you can find out from the firmware team on this.