fix: with mismatched bound [-Warray-parameter=].

This commit is contained in:
maosql
2026-06-15 12:54:47 +08:00
committed by Rbb666
parent ea5a974305
commit faefdc7962
+14 -2
View File
@@ -1132,10 +1132,16 @@ rt_bool_t rt_wlan_is_ready(void)
return _ready;
}
rt_err_t rt_wlan_set_mac(rt_uint8_t mac[6])
rt_err_t rt_wlan_set_mac(rt_uint8_t *mac)
{
rt_err_t err = RT_EOK;
if (mac == RT_NULL)
{
RT_WLAN_LOG_E("mac addr is null");
return -RT_EINVAL;
}
if (_sta_is_null())
{
return -RT_EIO;
@@ -1155,10 +1161,16 @@ rt_err_t rt_wlan_set_mac(rt_uint8_t mac[6])
return err;
}
rt_err_t rt_wlan_get_mac(rt_uint8_t mac[6])
rt_err_t rt_wlan_get_mac(rt_uint8_t *mac)
{
rt_err_t err = RT_EOK;
if (mac == RT_NULL)
{
RT_WLAN_LOG_E("mac addr is null");
return -RT_EINVAL;
}
if (_sta_is_null())
{
return -RT_EIO;