code: def scan_results(self, obj):
          
  
          avail_network_list = pointer(WLAN_AVAILABLE_NETWORK_LIST())
          self._wlan_get_available_network_list(self._handle,
              byref(obj['guid']), byref(avail_network_list))
          networks = cast(avail_network_list.contents.Network,
                       POINTER(WLAN_AVAILABLE_NETWORK))
  
          self._logger.debug("Scan found %d networks.",
              avail_network_list.contents.dwNumberOfItems)
  
          network_list = []
          for i in range(avail_network_list.contents.dwNumberOfItems):
  
              if networks[i].dot11BssType == 1 and networks[i].bNetworkConnectable :
  
                  ssid = ''
                  for j in range(networks[i].dot11Ssid.uSSIDLength):
  
                      if networks[i].dot11Ssid.ucSSID != b'':
                          ssid += "%c" % networks[i].dot11Ssid.ucSSID[j]
  
                  bss_list = pointer(WLAN_BSS_LIST())
                  self._wlan_get_network_bss_list(self._handle,
                      byref(obj['guid']), byref(bss_list), networks[i].dot11Ssid, networks[i].bSecurityEnabled)
                  bsses = cast(bss_list.contents.wlanBssEntries,
                               POINTER(WLAN_BSS_ENTRY))
  
                  if networks[i].bSecurityEnabled:
                      akm = self._get_akm(networks[i].dot11DefaultCipherAlgorithm)
                      auth_alg = self._get_auth_alg(networks[i].dot11DefaultAuthAlgorithm)
                  else:
                      akm = [AKM_TYPE_NONE]
                      auth_alg = [AUTH_ALG_OPEN]
  
                  for j in range(bss_list.contents.dwNumberOfItems):
                      network = Profile()
  
                      network.ssid = ssid
  
                      network.bssid = ''
                      for k in range(6):
                          network.bssid += "%02x:" % bsses[j].dot11Bssid[k]
  
                      network.signal = bsses[j].lRssi
                      network.freq = bsses[j].ulChCenterFrequency
                      network.auth = auth_alg
                      network.akm = akm
                      network_list.append(network)
  
          return network_list
docs: Get the AP list after scanning.