Exemple #1
0
/*FUNCTION*-----------------------------------------------------------------
*
* Function Name  : Shell_iwconfig_set_mode
* Returned Value : ERROR code on error else success
* Comments       :
*
*END------------------------------------------------------------------*/
static int32_t Shell_iwconfig_commit(FILE *fout, uint32_t enet_device)
{
    uint32_t error;

    error = iwcfg_commit (enet_device);
    if (error != 0)
    {
        fprintf(fout, "Error commiting \n");
        return SHELL_EXIT_ERROR;
    }

    fprintf(fout, "commit successful.\n");
    return SHELL_EXIT_SUCCESS;
}
Exemple #2
0
/*FUNCTION*-----------------------------------------------------------------
*
* Function Name  : Shell_iwconfig_set_mode
* Returned Value : ERROR code on error else success
* Comments       :
*
*END------------------------------------------------------------------*/
static int_32 Shell_iwconfig_commit (uint_32 enet_device)
{
    uint_32 error;

    error = iwcfg_commit (enet_device);
    if (error != 0)
    {
        printf ("Error commiting \n");
        return SHELL_EXIT_ERROR;
    }

    printf ("commit successful.\n");
    return SHELL_EXIT_SUCCESS;
}