2018-07-31 10:05:32 +02:00
|
|
|
#ifndef _WIFISCAN_H
|
|
|
|
#define _WIFISCAN_H
|
|
|
|
|
|
|
|
// ESP32 Functions
|
|
|
|
#include <esp_wifi.h>
|
|
|
|
|
2020-03-29 18:08:52 +02:00
|
|
|
#include "hash.h" // Hash function for scrambling MAC addresses
|
|
|
|
#include "antenna.h" // code for switching wifi antennas
|
|
|
|
#include "macsniff.h"
|
2018-07-31 10:05:32 +02:00
|
|
|
|
2020-12-10 22:12:57 +01:00
|
|
|
extern TimerHandle_t WifiChanTimer;
|
|
|
|
|
2018-07-31 10:05:32 +02:00
|
|
|
void wifi_sniffer_init(void);
|
2020-03-29 18:08:52 +02:00
|
|
|
void switch_wifi_sniffer(uint8_t state);
|
|
|
|
void IRAM_ATTR wifi_sniffer_packet_handler(void *buff,
|
|
|
|
wifi_promiscuous_pkt_type_t type);
|
2019-02-02 21:35:40 +01:00
|
|
|
void switchWifiChannel(TimerHandle_t xTimer);
|
2018-07-31 10:05:32 +02:00
|
|
|
|
|
|
|
#endif
|