original_docstring: 
          Scan wifi networks for all connected interfaces
  
          Returns:
              dict: found wifi networks::
  
              {
                  interface name (string): {
                      network name (string): {
                          interface (string): interface on which wifi network was found
                          network (string): network name (essid)
                          encryption (string): network encryption (wpa|wpa2|wep|unsecured|unknown)
                          signallevel (float): signal level (in %)
                          configured (bool): True if network has configuration
                          hidden (bool): True if network is hidden
                          disabled (bool): True if network disabled in configuration
                      },
                      ...
                  },
                  ...
              }
  
          
docstring: Scan wifi networks for all connected interfaces
docstring_tokens: Scan wifi networks for all connected interfaces
code: def refresh_wifi_networks(self):
          """
          Scan wifi networks for all connected interfaces
  
          Returns:
              dict: found wifi networks::
  
              {
                  interface name (string): {
                      network name (string): {
                          interface (string): interface on which wifi network was found
                          network (string): network name (essid)
                          encryption (string): network encryption (wpa|wpa2|wep|unsecured|unknown)
                          signallevel (float): signal level (in %)
                          configured (bool): True if network has configuration
                          hidden (bool): True if network is hidden
                          disabled (bool): True if network disabled in configuration
                      },
                      ...
                  },
                  ...
              }
  
          """
          self.wifi_networks = {}
          self.wifi_network_names = []
  
          # get wifi adapters
          self.wifi_adapters = self.iw.get_adapters()
          self.logger.debug('Wifi adapters: %s' % self.wifi_adapters)
  
          # get wifi interfaces and connected network
          self.wifi_interfaces = self.iwconfig.get_interfaces()
  
          # scan networks for each interfaces
          for interface in self.wifi_interfaces.keys():
              # scan interface (update wifi_networks member)
              networks = self._scan_wifi_networks(interface)
  
              # save network names
              self.wifi_network_names = self.wifi_network_names + list(set(networks) - set(self.wifi_network_names))
  
          self.last_wifi_networks_scan = int(time.time())
  
          self.logger.debug('Wifi networks: %s' % self.wifi_networks)
          self.logger.debug('Wifi network names: %s' % self.wifi_network_names)
  
          return self.wifi_networks
code_tokens: def refresh_wifi_networks ( self ) : self . wifi_networks = { } self . wifi_network_names = [ ] self . wifi_adapters = self . iw . get_adapters ( ) self . logger . debug ( 'Wifi adapters: %s' % self . wifi_adapters ) self . wifi_interfaces = self . iwconfig . get_interfaces ( ) for interface in self . wifi_interfaces . keys ( ) : networks = self . _scan_wifi_networks ( interface ) self . wifi_network_names = self . wifi_network_names + list ( set ( networks ) - set ( self . wifi_network_names ) ) self . last_wifi_networks_scan = int ( time . time ( ) ) self . logger . debug ( 'Wifi networks: %s' % self . wifi_networks ) self . logger . debug ( 'Wifi network names: %s' % self . wifi_network_names ) return self . wifi_networks
short_docstring: Scan wifi networks for all connected interfaces
short_docstring_tokens: Scan wifi networks for all connected interfaces
comment: """
          Scan wifi networks for all connected interfaces
  
          Returns:
              dict: found wifi networks::
  
              {
                  interface name (string): {
                      network name (string): {
                          interface (string): interface on which wifi network was found
                          network (string): network name (essid)
                          encryption (string): network encryption (wpa|wpa2|wep|unsecured|unknown)
                          signallevel (float): signal level (in %)
                          configured (bool): True if network has configuration
                          hidden (bool): True if network is hidden
                          disabled (bool): True if network disabled in configuration
                      },
                      ...
                  },
                  ...
              }
  
          """$SEP$# get wifi adapters$SEP$# get wifi interfaces and connected network$SEP$# scan networks for each interfaces$SEP$# scan interface (update wifi_networks member)$SEP$# save network names