From 47126b2a9749765ed06526da6d5193c44e7d99e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwangyanzhen=E2=80=9D?= Date: Mon, 11 Jul 2022 02:19:29 +0000 Subject: [PATCH] fix: modify hal interface functions comments and docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: “wangyanzhen” --- en/device_api/hdi/wlan/wifi_hal_base_feature.h | 6 +++--- zh-cn/device_api/hdi/wlan/wifi_hal_base_feature.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/device_api/hdi/wlan/wifi_hal_base_feature.h b/en/device_api/hdi/wlan/wifi_hal_base_feature.h index ecfcf4ed..1cd6ba31 100644 --- a/en/device_api/hdi/wlan/wifi_hal_base_feature.h +++ b/en/device_api/hdi/wlan/wifi_hal_base_feature.h @@ -120,8 +120,8 @@ struct IWiFiBaseFeature { * * @param baseFeature Pointer to the basic feature, as described in {@link IWiFiBaseFeature}. * - * @return Returns 0 if the network interface name is obtained. - * @return Returns a negative value if the operation fails. + * @return Returns network interface name if the network interface name is obtained. + * @return Returns NULL if the operation fails. * * @since 1.0 * @version 1.0 @@ -133,7 +133,7 @@ struct IWiFiBaseFeature { * * @param baseFeature Pointer to the basic feature, as described in {@link IWiFiBaseFeature}. * - * @return Returns 0 if the feature type is obtained. + * @return Returns feature type if the feature type is obtained. * @return Returns a negative value if the operation fails. * * @since 1.0 diff --git a/zh-cn/device_api/hdi/wlan/wifi_hal_base_feature.h b/zh-cn/device_api/hdi/wlan/wifi_hal_base_feature.h index f08fc5b5..3272ca4b 100644 --- a/zh-cn/device_api/hdi/wlan/wifi_hal_base_feature.h +++ b/zh-cn/device_api/hdi/wlan/wifi_hal_base_feature.h @@ -107,8 +107,8 @@ struct IWiFiBaseFeature { * * @param baseFeature 输入参数,基本特性{@link IWiFiBaseFeature}。 * - * @return 如果操作成功,则返回0。 - * @return 如果操作失败,则返回负值。 + * @return 如果操作成功,则返回网卡名称。 + * @return 如果操作失败,则返回NULL。 * * @since 1.0 * @version 1.0 @@ -120,7 +120,7 @@ struct IWiFiBaseFeature { * * @param baseFeature 输入参数,基本特性{@link IWiFiBaseFeature}。 * - * @return 如果操作成功,则返回0。 + * @return 如果操作成功,则返回特性类型。 * @return 如果操作失败,则返回负值。 * * @since 1.0 -- Gitee