class EncryptableWirelessInterface(WirelessInterface):
    ''' Adds wpa_supplicant support to the wireless interface.'''
    def __init__(self, interface_name):
        WirelessInterface.__init__(self, interface_name)
        self.encryption_manager = EncryptionManager(self.interface_name)
    def set_up_encryption(self, network):
        if 'encryption_type' in network.profile and \
           network.profile['encryption_type']:
            self.encryption_manager.start(network)
Beispiel #2
0
class EncryptableWirelessInterface(WirelessInterface):
    """ Adds wpa_supplicant support to the wireless interface."""

    def __init__(self, interface_name):
        WirelessInterface.__init__(self, interface_name)
        self.encryption_manager = EncryptionManager(self.interface_name)

    def set_up_encryption(self, network):
        if "encryption_type" in network.profile and network.profile["encryption_type"]:
            self.encryption_manager.start(network)

    def reset(self):
        WirelessInterface.reset(self)
        self.encryption_manager.stop()
 def __init__(self, interface_name):
     WirelessInterface.__init__(self, interface_name)
     self.encryption_manager = EncryptionManager(self.interface_name)