Use the last updated MAC address before turning on wifi 52/260852/2 accepted/tizen/unified/20210708.131505 submit/tizen/20210706.115004
authorJaehyun Kim <jeik01.kim@samsung.com>
Mon, 5 Jul 2021 13:46:19 +0000 (22:46 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Mon, 5 Jul 2021 13:47:16 +0000 (22:47 +0900)
commitfac1c8b4bd3f6853d8548ad40902fdf25b345f94
treea680f585bdba93181d54ff45f4913a16f3d3198b
parentfd0692ba60b03da85aa02aa5eb642600013f7c7b
Use the last updated MAC address before turning on wifi

MAC randomization does not work properly when there are multiple wifi interfaces
or in some devices that do not create a .mac.info file.
So, to solve this problem, a permanent MAC address that is set before wifi up is used.

If a permanent MAC address is in built-in physical device,
it's hardly get it at an initial creation.
So, if there is a MAC address updated from netlink before wifi is on, it is used.
* MAC randomization works only when wifi is turned on.

Change-Id: Ia7a9ad0affaa6deca974199100a56e7378b6c195
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
packaging/connman.spec
src/device.c
src/inet.c