Use mutex to avoid destroying the wifi handle during event processing 05/249305/2
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 9 Dec 2020 13:21:07 +0000 (22:21 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 11 Dec 2020 08:42:08 +0000 (17:42 +0900)
commitc9286efe049f743b841575a3104b58558bde854e
treeb284c8daa1eff760d0708e8d2bc45b2509ad16ad
parent0db52e512b5953fd68bdb20ea2c66cb0eced9939
Use mutex to avoid destroying the wifi handle during event processing

Problems such as crash may occur when an event is received during wifi handle creation
or the wifi handle is destroyed during event processing. To avoid this we use mutex.

Change-Id: I89b300514158922664cd1742a649bb9f6f0d46d3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
include/wifi_internal.h
src/network_interface.c
src/wifi_internal.c
src/wifi_manager.c