[Fix] When connected SOftAP goes out of range, AP sate was stuck at Association. 91/184191/1
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 16 Jul 2018 07:23:15 +0000 (12:53 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 16 Jul 2018 07:23:15 +0000 (12:53 +0530)
commit5be5a7dd899e684c9acbe2516b369732c7680ac9
tree4d3e009b77d3a21d6c45c34324e7fd16dbf30b34
parent13b577340bdf1d25ebc21739412f98166a8b962d
[Fix] When connected SOftAP goes out of range, AP sate was stuck at Association.

This patch fixes the scenario when connected SoftAp goes out of range.
In this case, the profile_info is NULL, due to which state changed callback
was not notified to application.

Below are the test application logs for above mentioned scenario:-

sh-3.2# /usr/bin/wifi_manager_test
Test Thread created...
1
Event received from stdin
Wifi init succeeded
Operation succeeded!
9
Event received from stdin
Scan request succeeded
Operation succeeded!
Scan changed, scan state : 1
Scan changed, scan state : 0
Scan Completed from scan request, error code : NONE
9
Event received from stdin
Scan request succeeded
Operation succeeded!
Scan changed, scan state : 1
Scan changed, scan state : 0
Scan Completed from scan request, error code : NONE
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
[1] Connection state changed callback, state : Configuration, AP name : Nishant
[2] Connection state changed callback, state : Configuration, AP name : Nishant
[1] Connection state changed callback, state : Connected, AP name : Nishant
[2] Connection state changed callback, state : Connected, AP name : Nishant
[1] RSSI level changed callback, level = 4
[2] RSSI level changed callback, level = 4
[1] Connection state changed callback, state : Configuration, AP name : Nishant
[2] Connection state changed callback, state : Configuration, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
[1] Connection state changed callback, state : Unknown, AP name : Nishant
[2] Connection state changed callback, state : Unknown, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE
[1] Connection state changed callback, state : Unknown, AP name : Nishant
[2] Connection state changed callback, state : Unknown, AP name : Nishant
[1] Connection state changed callback, state : Disconnected, AP name : Nishant
[2] Connection state changed callback, state : Disconnected, AP name : Nishant
[1] Connection state changed callback, state : Association, AP name : Nishant
[2] Connection state changed callback, state : Association, AP name : Nishant
Scan changed, scan state : 1
Scan changed, scan state : 0
[1] Background Scan Completed, error code : NONE
[2] Background Scan Completed, error code : NONE

Change-Id: I7143a5ea790fd967ac17f41cbcf3c265ec6d6e16
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/capi-network-wifi-manager.spec
src/wifi_internal.c