From 4bc5a555a0f6bdbb8815828a987b6c982683a7e4 Mon Sep 17 00:00:00 2001 From: Zhang Jun Hao Date: Fri, 14 Sep 2018 15:09:38 +0800 Subject: [PATCH] feat(esp8266): modify notes of wifi_promiscuous_pkt_t structure --- components/esp8266/include/esp_wifi_types.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/esp8266/include/esp_wifi_types.h b/components/esp8266/include/esp_wifi_types.h index 5e525ab8..58fdb2b5 100755 --- a/components/esp8266/include/esp_wifi_types.h +++ b/components/esp8266/include/esp_wifi_types.h @@ -330,7 +330,9 @@ typedef struct { */ typedef struct { wifi_pkt_rx_ctrl_t rx_ctrl; /**< metadata header */ - uint8_t payload[0]; /**< Data or management payload. Length of payload is described by rx_ctrl.legacy_length or rx_ctrl.HT_length. Type of content determined by packet type argument of callback. */ + uint8_t payload[0]; /**< Data or management frame payload. Length of payload is + min(112, (pkt->rx_ctrl.sig_mode ? pkt->rx_ctrl.HT_length : pkt->rx_ctrl.legacy_length)) + Type of content determined by packet type argument of callback. */ } wifi_promiscuous_pkt_t; /**