Move some ap sniffering data functions to one