Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions components/drivers/wlan/dev_wlan_mgnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
Loading