wifi_manager_security_type_e sec_type = WIFI_MANAGER_SECURITY_TYPE_NONE;
wifi_device_info_t *device_info_temp = NULL;
struct ug_data *ugd = (struct ug_data *)ug_app_state->gadget;
+ UG_TYPE ug_type = wifi_get_ug_type();
if (device_info == NULL)
return;
/* TODO: finally parameter with wifi_manager_ap_h, WPA, EAP */
ug_app_state->passpopup = create_passwd_popup(
ug_app_state->conformant,
- ug_app_state->parent_layout, PACKAGE, &popup_info);
+ ug_type == UG_VIEW_OOBE ?
+ ug_app_state->parent_layout : ug_app_state->layout_main,
+ PACKAGE, &popup_info);
if (ug_app_state->passpopup == NULL)
INFO_LOG(UG_NAME_ERR, "Fail to create password popup");
break;
case WIFI_MANAGER_SECURITY_TYPE_EAP:
ug_app_state->eap_view = create_eap_view(
- ug_app_state->parent_layout, ugd->win_main,
+ ug_type == UG_VIEW_OOBE ?
+ ug_app_state->parent_layout : ug_app_state->layout_main,
+ ugd->win_main,
ug_app_state->conformant,
PACKAGE, device_info,
viewer_manager_eap_view_deref);
wifi_manager_security_type_e sec_type = WIFI_MANAGER_SECURITY_TYPE_NONE;
wifi_device_info_t *dev_info_temp = NULL;
struct ug_data *ugd = (struct ug_data *)ug_app_state->gadget;
+ UG_TYPE ug_type = wifi_get_ug_type();
if (device_info == NULL)
return;
/* TODO: finally parameter with wifi_manager_ap_h, WPA, EAP */
ug_app_state->passpopup = create_passwd_popup(
ug_app_state->conformant,
- ug_app_state->parent_layout, PACKAGE, &popup_info);
+ ug_type == UG_VIEW_OOBE ?
+ ug_app_state->parent_layout : ug_app_state->layout_main, PACKAGE, &popup_info);
if (ug_app_state->passpopup == NULL)
INFO_LOG(UG_NAME_ERR, "Fail to create password popup");
case WIFI_MANAGER_SECURITY_TYPE_EAP:
ug_app_state->eap_view = create_eap_view(
- ug_app_state->parent_layout, ugd->win_main,
+ ug_type == UG_VIEW_OOBE ?
+ ug_app_state->parent_layout : ug_app_state->layout_main,
+ ugd->win_main,
ug_app_state->conformant,
PACKAGE, device_info,
viewer_manager_eap_view_deref);
{
__COMMON_FUNC_ENTER__;
- view_hidden_ap_popup_create(ug_app_state->parent_layout, PACKAGE);
+ UG_TYPE ug_type = wifi_get_ug_type();
+ view_hidden_ap_popup_create(ug_type == UG_VIEW_OOBE ?
+ ug_app_state->parent_layout : ug_app_state->layout_main,
+ PACKAGE);
__COMMON_FUNC_EXIT__;
}