| 499 | |
| 500 | @ATMT.action(authent_received) |
| 501 | def send_auth_response(self, pkt): |
| 502 | |
| 503 | # Save client MAC for later |
| 504 | self.client = pkt.addr2 |
| 505 | log_runtime.warning("Client %s connected!", self.client) |
| 506 | |
| 507 | # Launch DHCP Server |
| 508 | self.dhcp_server() |
| 509 | |
| 510 | rep = RadioTap() |
| 511 | rep /= Dot11(addr1=self.client, addr2=self.mac, addr3=self.mac) |
| 512 | rep /= Dot11Auth(seqnum=2, algo=pkt[Dot11Auth].algo, |
| 513 | status=pkt[Dot11Auth].status) |
| 514 | |
| 515 | self.send(rep) |
| 516 | |
| 517 | @ATMT.receive_condition(AUTH_RESPONSE_SENT) |
| 518 | def assoc_received(self, pkt): |