# Path: roscraco/helper/validator.py
# WEP_CONSTRAINTS_MAP = {
#     64: {'ascii': 5, 'hex': 10},
#     128: {'ascii': 13, 'hex': 26},
#     152: {'ascii': 16, 'hex': 32}
# }
# def is_valid_mac_address(mac):
# def is_valid_mac_address_normalized(mac):
# def is_valid_ip_address(ip):
# def _is_hex_string(string):
# def is_valid_wpa_psk_password(password):
# def is_valid_wep_password(password, bit_length):
# def is_wep_password_in_hex(password, bit_length):
# def is_valid_ssid(ssid):
# def is_ip_in_range(ip, ip_range_start, ip_range_end):
# 
# Path: roscraco/exception.py
# class RouterSettingsError(RouterError):
#     pass


from roscraco.helper import validator
from roscraco.exception import RouterSettingsError
        self._channel = int(value)

    @property
    def channel(self):
        """The transmission channel for wireless communications."""
        return self._channel

    def set_password(self, value):
        self._password = value

    @property
    def password(self):
        """The current password for the given security type.

        The password is sometimes None for some routers, to indicate
        that the password cannot be determined.
        Some routers hide the current password from their web-interface,
        so we can't detect it (but that doesn't mean that we can't change it
        with a new one).
        """
        return self._password

    @property
    def is_wep_password_in_hex(self):
        """Tells whether the current WEP password is in HEX or in ASCII.

        Detecting this allows us to set the ASCII/HEX
        field in the management interface automatically.
        """
        if not self.security_type_is_wep:

# Path: roscraco/helper/validator.py
# WEP_CONSTRAINTS_MAP = {
#     64: {'ascii': 5, 'hex': 10},
#     128: {'ascii': 13, 'hex': 26},
#     152: {'ascii': 16, 'hex': 32}
# }
# def is_valid_mac_address(mac):
# def is_valid_mac_address_normalized(mac):
# def is_valid_ip_address(ip):
# def _is_hex_string(string):
# def is_valid_wpa_psk_password(password):
# def is_valid_wep_password(password, bit_length):
# def is_wep_password_in_hex(password, bit_length):
# def is_valid_ssid(ssid):
# def is_ip_in_range(ip, ip_range_start, ip_range_end):
# 
# Path: roscraco/exception.py
# class RouterSettingsError(RouterError):
#     pass


# Path: roscraco/response/wireless.py
from roscraco.helper import validator
from roscraco.exception import RouterSettingsError

        self._channel = int(value)

    @property
    def channel(self):
        """The transmission channel for wireless communications."""
        return self._channel

    def set_password(self, value):
        self._password = value

    @property
    def password(self):
        """The current password for the given security type.

        The password is sometimes None for some routers, to indicate
        that the password cannot be determined.
        Some routers hide the current password from their web-interface,
        so we can't detect it (but that doesn't mean that we can't change it
        with a new one).
        """
        return self._password

    @property
    def is_wep_password_in_hex(self):
        """Tells whether the current WEP password is in HEX or in ASCII.

        Detecting this allows us to set the ASCII/HEX
        field in the management interface automatically.
        """
        if not self.security_type_is_wep:

            raise RouterSettingsError('Not using WEP, but trying to inspect password!')