original_docstring: 
          Save wifi network configuration
  
          Args:
              interface_name (string): interface name
              network_name (string): network to connect interface to
              encryption (string): encryption type (see WpaSupplicantConf.ENCRYPTION_TYPE_XXX)
              password (string): network connection password
              hidden (bool): True if network is hidden
  
          Returns:
              bool: True if connection succeed
  
          Raises:
              CommandError if network adding failed
          
docstring: 
  
  True if connection succeed
  
  CommandError if network adding failed
docstring_tokens: True if connection succeed CommandError if network adding failed
code: def save_wifi_network_configuration(self, interface_name, network_name, encryption, password=None, hidden=False):
          """
          Save wifi network configuration
  
          Args:
              interface_name (string): interface name
              network_name (string): network to connect interface to
              encryption (string): encryption type (see WpaSupplicantConf.ENCRYPTION_TYPE_XXX)
              password (string): network connection password
              hidden (bool): True if network is hidden
  
          Returns:
              bool: True if connection succeed
  
          Raises:
              CommandError if network adding failed
          """
          # check params
          self._check_parameters([
              {'name': 'interface_name', 'value': interface_name, 'type': str},
              {'name': 'network_name', 'value': network_name, 'type': str},
              {
                  'name': 'encryption',
                  'value': encryption,
                  'type': str,
                  'validator': lambda val: val in WpaSupplicantConf.ENCRYPTION_TYPES,
              },
          ])
  
          # save config in wpa_supplicant.conf file
          if not self.wpasupplicantconf.add_network(network_name, encryption, password, hidden, interface=interface_name):
              raise CommandError('Unable to save network configuration')
  
          # reconfigure interface
          return self.wpacli.reconfigure_interface(interface_name)
code_tokens: def save_wifi_network_configuration ( self , interface_name , network_name , encryption , password = None , hidden = False ) : self . _check_parameters ( [ { 'name' : 'interface_name' , 'value' : interface_name , 'type' : str } , { 'name' : 'network_name' , 'value' : network_name , 'type' : str } , { 'name' : 'encryption' , 'value' : encryption , 'type' : str , 'validator' : lambda val : val in WpaSupplicantConf . ENCRYPTION_TYPES , } , ] ) if not self . wpasupplicantconf . add_network ( network_name , encryption , password , hidden , interface = interface_name ) : raise CommandError ( 'Unable to save network configuration' ) return self . wpacli . reconfigure_interface ( interface_name )
short_docstring: Save wifi network configuration
  Args:
  interface_name (string): interface name
  network_name (string): network to connect interface to
  encryption (string): encryption type (see WpaSupplicantConf.ENCRYPTION_TYPE_XXX)
  password (string): network connection password
  hidden (bool): True if network is hidden
short_docstring_tokens: Save wifi network configuration Args : interface_name ( string ) : interface name network_name ( string ) : network to connect interface to encryption ( string ) : encryption type ( see WpaSupplicantConf . ENCRYPTION_TYPE_XXX ) password ( string ) : network connection password hidden ( bool ) : True if network is hidden
comment: """
          Save wifi network configuration
  
          Args:
              interface_name (string): interface name
              network_name (string): network to connect interface to
              encryption (string): encryption type (see WpaSupplicantConf.ENCRYPTION_TYPE_XXX)
              password (string): network connection password
              hidden (bool): True if network is hidden
  
          Returns:
              bool: True if connection succeed
  
          Raises:
              CommandError if network adding failed
          """$SEP$# check params$SEP$# save config in wpa_supplicant.conf file$SEP$# reconfigure interface