Changeset 8f2267b in rtems-libbsd for freebsd/contrib/wpa/wpa_supplicant/main.c


Ignore:
Timestamp:
Oct 12, 2017, 12:16:07 PM (2 years ago)
Author:
Sichen Zhao <1473996754@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, master
Children:
0aa7e63
Parents:
9c9d11b
git-author:
Sichen Zhao <1473996754@…> (10/12/17 12:16:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/10/17 12:33:03)
Message:

Port wpa supplicant to RTEMS.

Add wpa_supplicant lib support and shell command support in RTEMS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/contrib/wpa/wpa_supplicant/main.c

    r9c9d11b r8f2267b  
    2020#include "p2p_supplicant.h"
    2121
     22#ifdef __rtems__
     23#include <assert.h>
     24#include <sys/mutex.h>
     25#include <machine/rtems-bsd-program.h>
     26#endif /* __rtems__ */
    2227
    2328static void usage(void)
     
    155160}
    156161
     162#ifdef __rtems__
     163#include <rtems/libio.h>
     164
     165static int
     166main(int argc, char **argv);
     167
     168int rtems_bsd_command_wpa_supplicant(int argc, char **argv)
     169{
     170        int exit_code;
     171        rtems_status_code sc;
     172
     173        exit_code = rtems_bsd_program_call_main("wpa_supplicant", main, argc, argv);
     174
     175        return exit_code;
     176}
     177#endif /* __rtems__ */
    157178
    158179int main(int argc, char *argv[])
Note: See TracChangeset for help on using the changeset viewer.