code: def scan_results(self, obj):
          
  
          bsses = []
          bsses_summary = self._send_cmd_to_wpas(obj['name'], 'SCAN_RESULTS', True)
          bsses_summary = bsses_summary[:-1].split('\n')
          if len(bsses_summary) == 1:
              return bsses
  
          for l in bsses_summary[1:]:
              values = l.split('\t')
              bss = Profile()
              bss.bssid = values[0]
              bss.freq = int(values[1])
              bss.signal = int(values[2])
              bss.ssid = values[4]
              bss.akm = []
              if 'WPA-PSK' in values[3]:
                  bss.akm.append(AKM_TYPE_WPAPSK)
              if 'WPA2-PSK' in values[3]:
                  bss.akm.append(AKM_TYPE_WPA2PSK)
              if 'WPA-EAP' in values[3]:
                  bss.akm.append(AKM_TYPE_WPA)
              if 'WPA2-EAP' in values[3]:
                  bss.akm.append(AKM_TYPE_WPA2)
  
              bss.auth = AUTH_ALG_OPEN
  
              bsses.append(bss)
  
          return bsses
docs: Get the AP list after scanning.