Browse Source

fix: 修复mac地址设置无效

Wendal Chen 2 years ago
parent
commit
600bfb1eb0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/network/luat_wlan_air101.c

+ 2 - 2
app/network/luat_wlan_air101.c

@@ -298,10 +298,10 @@ int luat_wlan_set_mac(int id, const char* mac_addr) {
         return 0;
     }
     if (id == 0) {
-        ret = tls_set_mac_addr(mac);
+        ret = tls_set_mac_addr(mac_addr);
     }
     else {
-        ret = tls_ft_param_set(CMD_WIFI_MACAP, mac, 6);
+        ret = tls_ft_param_set(CMD_WIFI_MACAP, mac_addr, 6);
     }
     return ret;
 }