mirror of
https://github.com/pvvx/RTL00_WEB.git
synced 2025-07-31 20:31:05 +00:00
add set mac, cmsis-dap load sdram, ...
This commit is contained in:
parent
0830a1244a
commit
b381813514
27 changed files with 255 additions and 88 deletions
|
|
@ -237,7 +237,7 @@ int wext_set_mac_address(const char *ifname, char * mac)
|
|||
{
|
||||
char buf[13+17+1];
|
||||
memset(buf, 0, sizeof(buf));
|
||||
snprintf(buf, 13+17, "write_mac %s", mac);
|
||||
snprintf(buf, 13+17, "write_mac %02x%02x%02x%02x%02x%02x", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
return wext_private_command(ifname, buf, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue