| 1559 | } |
| 1560 | |
| 1561 | void queueProbeResponse(const ProbeRequest &probe, const RSNInfo &rsn) { |
| 1562 | String probeMac = probe.mac; |
| 1563 | if (macBlacklist.find(probeMac) != macBlacklist.end()) { |
| 1564 | if (millis() - macBlacklist[probeMac] < 60000) return; |
| 1565 | else macBlacklist.erase(probeMac); |
| 1566 | } |
| 1567 | if (responseQueue.size() >= 10) return; |
| 1568 | if (probeSSIDEquals(probe, "*WILDCARD*")) return; |
| 1569 | ProbeResponseTask task; |
| 1570 | task.ssid = probe.ssid; |
| 1571 | task.targetMAC = probe.mac; |
| 1572 | task.channel = probe.channel; |
| 1573 | task.rsn = rsn; |
| 1574 | task.timestamp = millis(); |
| 1575 | responseQueue.push(task); |
| 1576 | if (responseQueue.size() <= 3) processResponseQueue(); |
| 1577 | } |
| 1578 | |
| 1579 | void checkForAssociations() { |
| 1580 | unsigned long now = millis(); |
no test coverage detected