Commit 5f636e3

Ansari <ansari_official@yahoo.com>
2025-01-15 05:37:11
fix: handle error when sending deauth packet
v2
1 parent cdf4dc5
Changed files (1)
captive_portal
captive_portal/captive_portal.ino
@@ -27,7 +27,9 @@ void deauth(AccessPoint ap){
   for(int i =0; i< 100; i++){
       wifi_set_channel(ap.channel);
       delay(1);
-      wifi_send_pkt_freedom(ap.deauthPacket, 26, 0);
+      if(wifi_send_pkt_freedom(ap.deauthPacket, 26, 0) != 0){
+        Serial.println("Error sending deauth packet");
+      }
       delay(1);
   }
 }