From 247c8addf52b5caae4afd7ade6e2caf00176e35c Mon Sep 17 00:00:00 2001 From: xionglei Date: Wed, 18 Jun 2025 16:27:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?api=E7=89=88=E6=9C=AC=E5=8F=B7=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xionglei --- api/@ohos.wifiManager.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/@ohos.wifiManager.d.ts b/api/@ohos.wifiManager.d.ts index 8b183cd59e..ec67cc04ac 100644 --- a/api/@ohos.wifiManager.d.ts +++ b/api/@ohos.wifiManager.d.ts @@ -61,7 +61,7 @@ declare namespace wifiManager { * @throws {BusinessError} 2501000 - Operation failed. * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. * @syscap SystemCapability.Communication.WiFi.STA - * @since 16 + * @since 20 */ function disableWifi(): void; -- Gitee From 5d3228d29dccfd2571c9e815557ecb8e14892ce8 Mon Sep 17 00:00:00 2001 From: xionglei Date: Wed, 18 Jun 2025 09:13:13 +0000 Subject: [PATCH 2/2] update api/@ohos.wifiManager.d.ts. Signed-off-by: xionglei --- api/@ohos.wifiManager.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/@ohos.wifiManager.d.ts b/api/@ohos.wifiManager.d.ts index ec67cc04ac..7246c0edb1 100644 --- a/api/@ohos.wifiManager.d.ts +++ b/api/@ohos.wifiManager.d.ts @@ -55,13 +55,15 @@ declare namespace wifiManager { /** * Disable Wi-Fi. - * @permission ohos.permission.SET_WIFI_INFO and (ohos.permission.MANAGE_WIFI_CONNECTION or ohos.permission.MANAGE_ENTERPRISE_WIFI_CONNECTION) + * @permission ohos.permission.SET_WIFI_INFO and ohos.permission.MANAGE_WIFI_CONNECTION * @throws {BusinessError} 201 - Permission denied. + * @throws {BusinessError} 202 - System API is not allowed called by Non-system application. * @throws {BusinessError} 801 - Capability not supported. * @throws {BusinessError} 2501000 - Operation failed. * @throws {BusinessError} 2501004 - Operation failed because the service is being opened. * @syscap SystemCapability.Communication.WiFi.STA - * @since 20 + * @systemapi Hide this for inner system use. + * @since 9 */ function disableWifi(): void; -- Gitee