mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +08:00
fix: with mismatched bound [-Warray-parameter=].
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user