Update wifi state when DeviceDetected is received 58/292058/1 accepted/tizen/7.0/unified/20230427.150216
authorJaehyun Kim <jeik01.kim@samsung.com>
Sat, 8 Apr 2023 17:01:10 +0000 (02:01 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Thu, 27 Apr 2023 01:48:43 +0000 (10:48 +0900)
commited16e5ca24b1e32bac6e91f6c32fb95242669de9
tree38a2b16c0655d608a9f15a5d63de5336d6bf8f43
parent670de70d0fae001abb1a97ff62db6ec8b2f2f490
Update wifi state when DeviceDetected is received

Net-config assumes that when DeviceChanged signal is received,
wifi is enabled.
However, there are cases where wifi is already enabled at the time
DeviceDetected signal is received due to IPC communication delay
during net-config initialization.
In this case, an issue may occur because the state assumed by
net-config does not match the actual state.
Therefore, it has been modified to match the actual state by updating
the entire state even when the DeviceDetected signal is received.

Change-Id: I1bafee94b8940e9d477998495b6096a1b34304b1
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/wifi-power.c
src/wifi-state.c