[PATCH v2 2/4] wps: add new WPS API implementation