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;
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;
}
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);
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");
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);