pub unsafe extern "C" fn esp_wifi_set_promiscuous_ctrl_filter(
    filter: *const wifi_promiscuous_filter_t
) -> esp_err_t
Expand description

@brief Enable subtype filter of the control packet in promiscuous mode.

@note The default filter is to filter none control packet.

@param filter the subtype of the control packet filtered in promiscuous mode.

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init