original_docstring: 
          Load cleepwifi.conf
  
          Notes:
              This function does not check file existence
          
docstring: Load cleepwifi.conf
  Notes:
  This function does not check file existence
docstring_tokens: Load cleepwifi . conf Notes : This function does not check file existence
code: def _load_cleep_wifi_conf(self):
          """
          Load cleepwifi.conf
  
          Notes:
              This function does not check file existence
          """
          # read file content
          cleep_conf = self.cleepwifi.get_configuration()
          self.logger.debug('cleep_conf: %s' % cleep_conf)
          if not cleep_conf:
              self.logger.warning('Cleepwifi file content is empty or invalid')
              return
  
          # search for network in interface
          found_interface = None
          found_encryption = cleep_conf['encryption']
          self.logger.debug('Wifi networks: %s' % self.wifi_networks)
          for interface_name, networks in self.wifi_networks.items():
              if cleep_conf['network'] in networks and not networks[cleep_conf['network']]['configured']:
                  self.logger.debug('Interface "%s" found' % interface_name)
                  found_interface = interface_name
                  found_encryption = networks[cleep_conf['network']]['encryption']
                  break
          if cleep_conf['hidden'] and not found_interface and self.wifi_networks:
              # network is declared as hidden, save hidden network in first available interface
              found_interface = list(self.wifi_networks.keys())[0]
  
          # add config if not already exists
          if found_interface or cleep_conf['hidden']:
              if not self.wpasupplicantconf.add_network(
                      cleep_conf['network'],
                      found_encryption,
                      cleep_conf['password'],
                      hidden=cleep_conf['hidden'],
                      interface=found_interface,
                      encrypt_password=False
                  ):
                  self.logger.error('Unable to use config from cleepwifi.conf')
              else:
                  if found_interface:
                      self.reconfigure_wifi_interface(found_interface)
                  self.logger.info('Wifi config from cleepwifi.conf loaded successfully')
          else:
              self.logger.warning(
                  'Interface was not found for network "%s" or network is already configured' % cleep_conf['network']
              )
code_tokens: def _load_cleep_wifi_conf ( self ) : cleep_conf = self . cleepwifi . get_configuration ( ) self . logger . debug ( 'cleep_conf: %s' % cleep_conf ) if not cleep_conf : self . logger . warning ( 'Cleepwifi file content is empty or invalid' ) return found_interface = None found_encryption = cleep_conf [ 'encryption' ] self . logger . debug ( 'Wifi networks: %s' % self . wifi_networks ) for interface_name , networks in self . wifi_networks . items ( ) : if cleep_conf [ 'network' ] in networks and not networks [ cleep_conf [ 'network' ] ] [ 'configured' ] : self . logger . debug ( 'Interface "%s" found' % interface_name ) found_interface = interface_name found_encryption = networks [ cleep_conf [ 'network' ] ] [ 'encryption' ] break if cleep_conf [ 'hidden' ] and not found_interface and self . wifi_networks : found_interface = list ( self . wifi_networks . keys ( ) ) [ 0 ] if found_interface or cleep_conf [ 'hidden' ] : if not self . wpasupplicantconf . add_network ( cleep_conf [ 'network' ] , found_encryption , cleep_conf [ 'password' ] , hidden = cleep_conf [ 'hidden' ] , interface = found_interface , encrypt_password = False ) : self . logger . error ( 'Unable to use config from cleepwifi.conf' ) else : if found_interface : self . reconfigure_wifi_interface ( found_interface ) self . logger . info ( 'Wifi config from cleepwifi.conf loaded successfully' ) else : self . logger . warning ( 'Interface was not found for network "%s" or network is already configured' % cleep_conf [ 'network' ] )
short_docstring: Load cleepwifi.conf
  Notes:
  This function does not check file existence
short_docstring_tokens: Load cleepwifi . conf Notes : This function does not check file existence
comment: """
          Load cleepwifi.conf
  
          Notes:
              This function does not check file existence
          """$SEP$# read file content$SEP$# search for network in interface$SEP$# network is declared as hidden, save hidden network in first available interface$SEP$# add config if not already exists