Update test app to support new API 79/298679/1 accepted/tizen/unified/20230913.172626
authorJaehyun Kim <jeik01.kim@samsung.com>
Tue, 12 Sep 2023 08:56:29 +0000 (17:56 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Tue, 12 Sep 2023 08:56:29 +0000 (17:56 +0900)
Change-Id: Ie344986c681ced7b4fc5e66ff8c34969b1774b01
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
tools/manager-test/wman_test_extension.c
tools/manager-test/wman_test_extension.h
tools/manager-test/wman_test_main.c

index 6a29433..7e7fd53 100644 (file)
@@ -701,7 +701,7 @@ int wman_test_get_connection_mode(wifi_manager_h wifi)
        return 1;
 }
 
-int wman_test_get_5ghz_band_supported(wifi_manager_h wifi)
+int wman_test_get_5_6_ghz_band_supported(wifi_manager_h wifi)
 {
        int rv;
        bool supported;
@@ -709,11 +709,21 @@ int wman_test_get_5ghz_band_supported(wifi_manager_h wifi)
        rv = wifi_manager_is_5ghz_band_supported(wifi, &supported);
 
        if (rv != WIFI_MANAGER_ERROR_NONE) {
-               printf("Fail to get 5ghz supported, rv = %d\n", rv);
+               printf("Fail to get 5GHz supported, rv = %d\n", rv);
                return 1;
        }
 
-       printf("Is 5Ghz supported = [%s]\n", supported ? "yes" : "no");
+       printf("Is 5GHz supported = [%s]\n", supported ? "yes" : "no");
+
+       rv = wifi_manager_is_6ghz_band_supported(wifi, &supported);
+
+       if (rv != WIFI_MANAGER_ERROR_NONE) {
+               printf("Fail to get 6GHz supported, rv = %d\n", rv);
+               return 1;
+       }
+
+       printf("Is 6GHz supported = [%s]\n", supported ? "yes" : "no");
+
        return 1;
 }
 
index e2af2f4..824b29f 100644 (file)
@@ -35,7 +35,7 @@ int wman_test_netlink_scan(wifi_manager_h wifi);
 int wman_test_get_passpoint_state(wifi_manager_h wifi);
 int wman_test_set_passpoint_enable(wifi_manager_h wifi);
 int wman_test_get_connection_mode(wifi_manager_h wifi);
-int wman_test_get_5ghz_band_supported(wifi_manager_h wifi);
+int wman_test_get_5_6_ghz_band_supported(wifi_manager_h wifi);
 int wman_test_set_mac_policy(wifi_manager_h wifi);
 int wman_test_set_preassoc_mac_policy(wifi_manager_h wifi);
 int wman_test_set_random_mac_lifetime(wifi_manager_h wifi);
index 347057b..b44218d 100644 (file)
@@ -350,7 +350,7 @@ gboolean test_thread(GIOChannel *source, GIOCondition condition, gpointer data)
                printf("W   - Get passpoint state\n");
                printf("X   - Set passpoint on/off\n");
                printf("Y   - Get Access Point Hardware Mode\n");
-               printf("Z   - Get 5Ghz supported\n");
+               printf("Z   - Get 5Ghz/6Ghz supported\n");
                printf("!   - Set mac policy\n");
                printf("@   - Set preassoc mac policy\n");
                printf("#   - Set random mac lifetime\n");
@@ -558,7 +558,7 @@ gboolean test_thread(GIOChannel *source, GIOCondition condition, gpointer data)
                rv = wman_test_get_connection_mode(wifi);
                break;
        case 'Z':
-               rv = wman_test_get_5ghz_band_supported(wifi);
+               rv = wman_test_get_5_6_ghz_band_supported(wifi);
                break;
        case '!':
                rv = wman_test_set_mac_policy(wifi);