[CID-43828, 72998] bug fix (unused code, untrusted value) 56/153456/1 accepted/tizen/unified/20170929.081847 submit/tizen/20170928.232941
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 28 Sep 2017 11:05:12 +0000 (20:05 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 28 Sep 2017 11:07:21 +0000 (20:07 +0900)
Change-Id: Ic8a43af0282834a6011094a58462d805d32faafe
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/capi-network-wifi-manager.spec
src/wifi_internal.c
test/wifi_manager_test.c

index 910db88..8130a7c 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi-manager
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.18
+Version:       1.0.19
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 0fe291e..cc18c3b 100755 (executable)
@@ -359,7 +359,6 @@ static void __update_bss_profile_iterator(GSList *bss_list)
                g_strlcpy(profile->bssid, ap->bssid, NET_MAX_MAC_ADDR_LEN+1);
 
                profile->wlan_mode = ap->mode;
-               profile->Strength = ap->rssi;
 
                /* we receive the negative value of RSSI from the wpa supplicant.
                 * so modify the rssi value in same manner as done in connman. */
index 9311174..6377743 100755 (executable)
@@ -2415,7 +2415,7 @@ int test_wifi_manager_specific_ap_start_multi_scan(void)
 
        rv = test_get_user_int("No. of specific ssid/freq for multi scan",
                        &num);
-       if (rv == false || (num <= 0)) {
+       if (rv == false || (num <= 0) || (num > 10)) {
                printf("Invalid input!!\n");
                return false;
        }