def send_auth_response(self, lvap):
        """Send a AUTH_RESPONSE message."""

        msg = Container(length=AUTH_RESPONSE.sizeof(),
                        sta=lvap.addr.to_raw(),
                        bssid=lvap.bssid.to_raw())

        return self.send_message(PT_AUTH_RESPONSE, msg)
    def send_auth_response(self, lvap):
        """Send a AUTH_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_AUTH_RESPONSE,
                             length=14,
                             seq=self.wtp.seq,
                             sta=lvap.addr.to_raw())

        msg = AUTH_RESPONSE.build(response)
        self.stream.write(msg)
Beispiel #3
0
    def send_auth_response(self, lvap):
        """Send a AUTH_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_AUTH_RESPONSE,
                             length=20,
                             seq=self.wtp.seq,
                             sta=lvap.addr.to_raw(),
                             bssid=lvap.lvap_bssid.to_raw())

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