Sfoglia il codice sorgente

Remove unused MD5 and Wi-Fi scan helpers

SybexXx 3 giorni fa
parent
commit
178f045e61

+ 0 - 8
code/components/jomjol_fileserver_ota/md5.cpp

@@ -197,14 +197,6 @@ void md5Step(uint32_t *buffer, uint32_t *input){
  * Functions that run the algorithm on the provided input and put the digest into result.
  * Functions that run the algorithm on the provided input and put the digest into result.
  * result should be able to store 16 bytes.
  * result should be able to store 16 bytes.
  */
  */
-void md5String(char *input, uint8_t *result){
-    MD5Context ctx;
-    md5Init(&ctx);
-    md5Update(&ctx, (uint8_t *)input, strlen(input));
-    md5Finalize(&ctx);
-
-    memcpy(result, ctx.digest, 16);
-}
 
 
 
 
 void md5File(FILE *file, uint8_t *result){
 void md5File(FILE *file, uint8_t *result){

+ 0 - 2
code/components/jomjol_fileserver_ota/md5.h

@@ -21,8 +21,6 @@ void md5Init(MD5Context *ctx);
 void md5Update(MD5Context *ctx, uint8_t *input, size_t input_len);
 void md5Update(MD5Context *ctx, uint8_t *input, size_t input_len);
 void md5Finalize(MD5Context *ctx);
 void md5Finalize(MD5Context *ctx);
 void md5Step(uint32_t *buffer, uint32_t *input);
 void md5Step(uint32_t *buffer, uint32_t *input);
-
-void md5String(char *input, uint8_t *result);
 void md5File(FILE *file, uint8_t *result);
 void md5File(FILE *file, uint8_t *result);
 
 
 #endif // MD5_H
 #endif // MD5_H

+ 0 - 16
code/components/jomjol_wlan/connect_wlan.cpp

@@ -408,22 +408,6 @@ void wifi_scan(void)
 }
 }
 
 
 
 
-void wifiRoamByScanning(void)
-{
-	if (wlan_config.rssi_threshold != 0 && get_WIFI_RSSI() != -127 && (get_WIFI_RSSI() < wlan_config.rssi_threshold)) {
-		LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Roaming: Start scan of all channels for SSID " + wlan_config.ssid);
-		wifi_scan();
-
-		if (APWithBetterRSSI) {
-			APWithBetterRSSI = false;
-			LogFile.WriteToFile(ESP_LOG_WARN, TAG, "Roaming: AP with better RSSI in range, disconnecting to switch AP...");
-			esp_wifi_disconnect();
-		} 
-		else {
-			LogFile.WriteToFile(ESP_LOG_DEBUG, TAG, "Roaming: Scan completed, stay on current AP");
-		}
-	}
-}
 #endif // WLAN_USE_ROAMING_BY_SCANNING
 #endif // WLAN_USE_ROAMING_BY_SCANNING
 
 
 
 

+ 0 - 1
code/components/jomjol_wlan/connect_wlan.h

@@ -19,7 +19,6 @@ void wifiRoamingQuery(void);
 #endif
 #endif
 
 
 #ifdef WLAN_USE_ROAMING_BY_SCANNING
 #ifdef WLAN_USE_ROAMING_BY_SCANNING
-void wifiRoamByScanning(void);
 #endif
 #endif
 
 
 #endif //CONNECT_WLAN_H
 #endif //CONNECT_WLAN_H