linuxdriver: check supplicant status before send message [1/1]
authorPengguang Zhu <pengguang.zhu@amlogic.com>
Thu, 16 May 2019 06:07:13 +0000 (14:07 +0800)
committerPengguang Zhu <pengguang.zhu@amlogic.com>
Thu, 16 May 2019 07:51:12 +0000 (15:51 +0800)
commit45da928ae2c55c6626a480cfbc72e8deaeac04c7
tree56479748620916dc891bd4ceb8e01bfde11a44d5
parent31f0ae9cecde555eaba749a4de2fe24eb944cc95
linuxdriver: check supplicant status before send message [1/1]

PD#TV-5392

Problem:
when playing netflix movies, press power button, TV can not
power down and console hang.
previous commit will check supplicant status, but there is gap
that thread will scheduled and meanwhile the supplicant status
may change.

Solution:
move the status check before wait_for_completion

Verify:
TXLX + Android P

Change-Id: I445619192a1c6cf047a3fe51f3660dad7aa39601
Signed-off-by: Pengguang Zhu <pengguang.zhu@amlogic.com>
optee/supp.c