summaryrefslogtreecommitdiff
path: root/components/drivers/wlan/dev_wlan_mgnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'components/drivers/wlan/dev_wlan_mgnt.c')
-rw-r--r--components/drivers/wlan/dev_wlan_mgnt.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/drivers/wlan/dev_wlan_mgnt.c b/components/drivers/wlan/dev_wlan_mgnt.c
index bc43980357..5d338ba7a5 100644
--- a/components/drivers/wlan/dev_wlan_mgnt.c
+++ b/components/drivers/wlan/dev_wlan_mgnt.c
@@ -8,6 +8,7 @@
* 2018-08-06 tyx the first version
* 2023-12-12 Evlers add the wlan join scan function
* 2024-12-25 Evlers add get_info api for more new sta information
+ * 2025-01-04 Evlers add ap_get_info api for more ap information
*/
#include <rthw.h>
@@ -1408,6 +1409,11 @@ rt_err_t rt_wlan_ap_get_info(struct rt_wlan_info *info)
if (rt_wlan_ap_is_active() == RT_TRUE)
{
*info = _ap_mgnt.info;
+ if (rt_wlan_dev_ap_get_info(AP_DEVICE(), info) != RT_EOK)
+ {
+ RT_WLAN_LOG_E("get ap info failed!");
+ return -RT_ERROR;
+ }
return RT_EOK;
}
return -RT_ERROR;