瀏覽代碼

change: 调整station模式下的默认hostname

Wendal Chen 3 年之前
父節點
當前提交
bae012eeae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/network/lwip2.1.3/netif/ethernetif.c

+ 1 - 1
src/network/lwip2.1.3/netif/ethernetif.c

@@ -374,7 +374,7 @@ ethernetif_init(struct netif *netif)
     u8* mac_addr = wpa_supplicant_get_mac();
 #if LWIP_NETIF_HOSTNAME
 	/* Initialize interface hostname */
-    sprintf(host_name, "WinnerMicro_%02X%02X", mac_addr[4], mac_addr[5]);
+    sprintf(host_name, "LOS_%02X%02X%02X%02X%02X%02X", mac_addr[0], mac_addr[1], mac_addr[2], mac_addr[3], mac_addr[4], mac_addr[5]);
 	netif->hostname = host_name;
 #endif /* LWIP_NETIF_HOSTNAME */