Issue #206
This commit is contained in:
parent
16b4f6bd7d
commit
6e383e1629
@ -10,20 +10,22 @@
|
|||||||
#define MAC_SNIFF_WIFI 0
|
#define MAC_SNIFF_WIFI 0
|
||||||
#define MAC_SNIFF_BLE 1
|
#define MAC_SNIFF_BLE 1
|
||||||
|
|
||||||
|
/*
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned frame_ctrl : 16;
|
unsigned frame_ctrl : 16;
|
||||||
unsigned duration_id : 16;
|
unsigned duration_id : 16;
|
||||||
uint8_t addr1[6]; /* receiver address */
|
uint8_t addr1[6]; // receiver address
|
||||||
uint8_t addr2[6]; /* sender address */
|
uint8_t addr2[6]; // sender address
|
||||||
uint8_t addr3[6]; /* filtering address */
|
uint8_t addr3[6]; // filtering address
|
||||||
unsigned sequence_ctrl : 16;
|
unsigned sequence_ctrl : 16;
|
||||||
uint8_t addr4[6]; /* optional */
|
uint8_t addr4[6]; // optional
|
||||||
} wifi_ieee80211_mac_hdr_t;
|
} wifi_ieee80211_mac_hdr_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
wifi_ieee80211_mac_hdr_t hdr;
|
wifi_ieee80211_mac_hdr_t hdr;
|
||||||
uint8_t payload[0]; /* network data ended with 4 bytes csum (CRC32) */
|
uint8_t payload[0]; // network data ended with 4 bytes csum (CRC32)
|
||||||
} wifi_ieee80211_packet_t;
|
} wifi_ieee80211_packet_t;
|
||||||
|
*/
|
||||||
|
|
||||||
void wifi_sniffer_init(void);
|
void wifi_sniffer_init(void);
|
||||||
void IRAM_ATTR wifi_sniffer_packet_handler(void *buff, wifi_promiscuous_pkt_type_t type);
|
void IRAM_ATTR wifi_sniffer_packet_handler(void *buff, wifi_promiscuous_pkt_type_t type);
|
||||||
|
17794
lib/Bosch-BSEC/docs/BST-BME680-Integration-Guide-AN008-47.pdf
Normal file
17794
lib/Bosch-BSEC/docs/BST-BME680-Integration-Guide-AN008-47.pdf
Normal file
File diff suppressed because it is too large
Load Diff
@ -9,6 +9,21 @@ static wifi_country_t wifi_country = {WIFI_MY_COUNTRY, WIFI_CHANNEL_MIN,
|
|||||||
WIFI_CHANNEL_MAX, 100,
|
WIFI_CHANNEL_MAX, 100,
|
||||||
WIFI_COUNTRY_POLICY_MANUAL};
|
WIFI_COUNTRY_POLICY_MANUAL};
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
unsigned frame_ctrl : 16;
|
||||||
|
unsigned duration_id : 16;
|
||||||
|
uint8_t addr1[6]; // receiver address
|
||||||
|
uint8_t addr2[6]; // sender address
|
||||||
|
uint8_t addr3[6]; // filtering address
|
||||||
|
unsigned sequence_ctrl : 16;
|
||||||
|
uint8_t addr4[6]; // optional
|
||||||
|
} wifi_ieee80211_mac_hdr_t;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
wifi_ieee80211_mac_hdr_t hdr;
|
||||||
|
uint8_t payload[0]; // network data ended with 4 bytes csum (CRC32)
|
||||||
|
} wifi_ieee80211_packet_t;
|
||||||
|
|
||||||
// using IRAM_:ATTR here to speed up callback function
|
// using IRAM_:ATTR here to speed up callback function
|
||||||
IRAM_ATTR void wifi_sniffer_packet_handler(void *buff,
|
IRAM_ATTR void wifi_sniffer_packet_handler(void *buff,
|
||||||
wifi_promiscuous_pkt_type_t type) {
|
wifi_promiscuous_pkt_type_t type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user