(pkt)
Scan all network with channel hopping
    Collected all ssid and mac address information
    :param pkt:  result of sniff function
Scan all network with channel hopping
    Collected all ssid and mac address information
    :param pkt:  result of sniff function
Scan all network with channel hopping Collected all ssid and mac address information : param pkt : result of sniff function
def air_scan(pkt):
    """
    Scan all network with channel hopping
    Collected all ssid and mac address information
    :param pkt:  result of sniff function
    """
    if pkt.haslayer(Dot11Beacon):
       ssid, bssid = pkt.info, pkt.addr2
       if ssid not in ssidlist and len(ssid)!=0:
           ssidlist.append(ssid)
       capability = pkt.sprintf("{Dot11Beacon:%Dot11Beacon.cap%}\
						  {Dot11ProbeResp:%Dot11ProbeResp.cap%}") 
       enc = "Y"
       if "privacy" not in capability and len(ssid)!=0:
          enc = 'N'
	  info = "{}=*={}".format(enc, ssid)
          if info not in info_list and info_list_2:
	     info_list.append(info)
	     info_list_2.append(info)
       elif "privacy" in capability and len(ssid)!=0:
          info = "{}=*={}".format(enc, ssid)
          if info not in info_list_2:
             info_list_2.append(info)

    elif pkt.haslayer(Dot11ProbeResp):
        ssid, bssid = pkt.info, pkt.addr2
        info = "{}=*={}".format(bssid, ssid)
        if len(ssid)!=0 and info not in info_list:
            karmalist.append(info)

    elif pkt.haslayer(Dot11Deauth):
        pass
def air_scan ( pkt ) : if pkt . haslayer ( Dot11Beacon ) : ssid , bssid = pkt . info , pkt . addr2 if ssid not in ssidlist and len ( ssid ) != 0 : ssidlist . append ( ssid ) capability = pkt . sprintf ( "{Dot11Beacon:%Dot11Beacon.cap%}\
						  {Dot11ProbeResp:%Dot11ProbeResp.cap%}" ) enc = "Y" if "privacy" not in capability and len ( ssid ) != 0 : enc = 'N' info = "{}=*={}" . format ( enc , ssid ) if info not in info_list and info_list_2 : info_list . append ( info ) info_list_2 . append ( info ) elif "privacy" in capability and len ( ssid ) != 0 : info = "{}=*={}" . format ( enc , ssid ) if info not in info_list_2 : info_list_2 . append ( info ) elif pkt . haslayer ( Dot11ProbeResp ) : ssid , bssid = pkt . info , pkt . addr2 info = "{}=*={}" . format ( bssid , ssid ) if len ( ssid ) != 0 and info not in info_list : karmalist . append ( info ) elif pkt . haslayer ( Dot11Deauth ) : pass