mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 00:38:39 +08:00
wpa_supplicant: Add lock.
This commit is contained in:

committed by
Sebastian Huber

parent
ee0c369cdd
commit
4613db09fc
@@ -23,6 +23,7 @@
|
||||
#include <assert.h>
|
||||
#include <sys/mutex.h>
|
||||
#include <machine/rtems-bsd-program.h>
|
||||
#include <machine/rtems-bsd-wpa-supplicant.h>
|
||||
#endif /* __rtems__ */
|
||||
|
||||
static void usage(void)
|
||||
@@ -170,7 +171,10 @@ int rtems_bsd_command_wpa_supplicant(int argc, char **argv)
|
||||
int exit_code;
|
||||
rtems_status_code sc;
|
||||
|
||||
exit_code = rtems_bsd_program_call_main("wpa_supplicant", main, argc, argv);
|
||||
rtems_bsd_wpa_supplicant_lock();
|
||||
exit_code = rtems_bsd_program_call_main("wpa_supplicant", main,
|
||||
argc, argv);
|
||||
rtems_bsd_wpa_supplicant_unlock();
|
||||
|
||||
return exit_code;
|
||||
}
|
||||
|
Reference in New Issue
Block a user