Quellcode durchsuchen

修改udhcpc参数,停用wifi时,释放申请到的ip

guohui vor 1 Jahr
Ursprung
Commit
6eeeda08d8
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      pro/src/wifi.c

+ 1 - 1
pro/src/wifi.c

@@ -113,7 +113,7 @@ static int sta_start(ap_info_t *info, int on)
         sprintf(tmp, "wpa_supplicant -B -i %s -c %s", WLAN_IFNAME, STA_CONF);
         r = system(tmp);
 
-        sprintf(tmp, "udhcpc -b -i %s", WLAN_IFNAME);
+        sprintf(tmp, "udhcpc -R -b -i %s", WLAN_IFNAME);
         r = system(tmp);
     }
     else {