summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wfdport.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wfdport.c b/src/wfdport.c
index ab0f70e..9222d27 100644
--- a/src/wfdport.c
+++ b/src/wfdport.c
@@ -281,6 +281,8 @@ wfd_port_get_attribi(struct wfd_device *device,
return 0;
case WFD_PORT_PIPELINE_ID_COUNT:
return wfd_port_choose_pipeline(device, port) != 0 ? 1 : 0;
+ case WFD_PORT_PROTECTION_ENABLE:
+ return WFD_FALSE;
default:
break;
}
@@ -379,6 +381,11 @@ wfd_port_set_attribi(struct wfd_device *device,
}
port->power_mode = value;
break;
+ case WFD_PORT_PROTECTION_ENABLE:
+ if (value == WFD_TRUE)
+ wfd_device_set_error(device,
+ WFD_ERROR_ILLEGAL_ARGUMENT);
+ break;
/* ignored by WFD_PORT_MODE_{FLIP_MIRROR,ROTATION}_SUPPORT */
case WFD_PORT_FLIP:
case WFD_PORT_MIRROR: