summaryrefslogtreecommitdiff
path: root/components/drivers/wlan
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2023-03-16 00:44:05 -0400
committerMan, Jianting (Meco) <[email protected]>2023-03-16 20:21:43 -0400
commitdfddd79b2453ab13d12b69c7db14e2f685175af7 (patch)
tree2f59da3e3389e54872609473f21c1904167822d8 /components/drivers/wlan
parente4e88b2f3eff319105a34ec7827c2ee135c9e8b7 (diff)
[errno code][-RT_EINVAL] fix that use RT_EINVAL without -
Diffstat (limited to 'components/drivers/wlan')
-rw-r--r--components/drivers/wlan/wlan_mgnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/wlan/wlan_mgnt.c b/components/drivers/wlan/wlan_mgnt.c
index 768d342069..27bd5623c8 100644
--- a/components/drivers/wlan/wlan_mgnt.c
+++ b/components/drivers/wlan/wlan_mgnt.c
@@ -1670,7 +1670,7 @@ rt_err_t rt_wlan_register_event_handler(rt_wlan_event_t event, rt_wlan_event_han
if (event >= RT_WLAN_EVT_MAX)
{
- return RT_EINVAL;
+ return -RT_EINVAL;
}
RT_WLAN_LOG_D("%s is run event:%d", __FUNCTION__, event);
@@ -1690,7 +1690,7 @@ rt_err_t rt_wlan_unregister_event_handler(rt_wlan_event_t event)
if (event >= RT_WLAN_EVT_MAX)
{
- return RT_EINVAL;
+ return -RT_EINVAL;
}
RT_WLAN_LOG_D("%s is run event:%d", __FUNCTION__, event);
MGNT_LOCK();