def send_probe_response(self, lvap, ssid):
        """Send a PROBE_RESPONSE message."""

        msg = Container(length=PROBE_RESPONSE.sizeof(),
                        sta=lvap.addr.to_raw(),
                        ssid=ssid.to_raw())

        return self.send_message(PT_PROBE_RESPONSE, msg)
    def send_probe_response(self, lvap):
        """Send a PROBE_RESPONSE message.
        Args:
            lvap: an LVAP object
        Returns:
            None
        Raises:
            TypeError: if lvap is not an LVAP object.
        """

        response = Container(version=PT_VERSION,
                             type=PT_PROBE_RESPONSE,
                             length=14,
                             seq=self.wtp.seq,
                             sta=lvap.addr.to_raw())

        msg = PROBE_RESPONSE.build(response)
        self.stream.write(msg)
Beispiel #3
0
    def send_probe_response(self, lvap):
        """Send a PROBE_RESPONSE message.
        Args:
            lvap: an LVAP object
        Returns:
            None
        Raises:
            TypeError: if lvap is not an LVAP object.
        """

        response = Container(version=PT_VERSION,
                             type=PT_PROBE_RESPONSE,
                             length=14,
                             seq=self.wtp.seq,
                             sta=lvap.addr.to_raw())

        msg = PROBE_RESPONSE.build(response)
        self.stream.write(msg)