| 347 | static bool handshakeFileExists(const String &path) { return handshakeRecordExists(path); } |
| 348 | |
| 349 | static String buildHandshakePath(const uint8_t *mac, const char *ssid) { |
| 350 | String path = "/BrucePCAP/handshakes/HS_" + macToHex(mac); |
| 351 | if (ssid && ssid[0] != '\0') { |
| 352 | path += "_"; |
| 353 | path += ssid; |
| 354 | } |
| 355 | path += ".pcap"; |
| 356 | return path; |
| 357 | } |
| 358 | |
| 359 | static bool shouldSaveBeaconForHandshake(const uint8_t *mac) { |
| 360 | if (!mac) return false; |
no test coverage detected