-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp-wifi: Remove unneeded features #2446
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
ce86e09
remove async features
MabezDev 9ee0927
phy-usb config
MabezDev 1587dec
modem powersaving
MabezDev 727ec80
Fix examples
MabezDev 6af0c4a
make ps a runtime config
MabezDev 62fc1c6
fix linting
MabezDev a1b732c
changelog and migration guide
MabezDev b0c85c8
revert esp-config changes
MabezDev b783b9d
remove blanklines after doc comments
MabezDev c23613a
cfg away ps API
MabezDev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
use esp_wifi_sys::include; | ||
|
||
#[derive(Debug)] | ||
#[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
/// Tunable parameters for the WiFi driver | ||
#[allow(unused)] // currently there are no ble tunables | ||
pub(crate) struct EspWifiConfig { | ||
pub(crate) rx_queue_size: usize, | ||
pub(crate) tx_queue_size: usize, | ||
pub(crate) static_rx_buf_num: usize, | ||
pub(crate) dynamic_rx_buf_num: usize, | ||
pub(crate) static_tx_buf_num: usize, | ||
pub(crate) dynamic_tx_buf_num: usize, | ||
pub(crate) ampdu_rx_enable: bool, | ||
pub(crate) ampdu_tx_enable: bool, | ||
pub(crate) amsdu_tx_enable: bool, | ||
pub(crate) rx_ba_win: usize, | ||
pub(crate) max_burst_size: usize, | ||
pub(crate) country_code: &'static str, | ||
pub(crate) country_code_operating_class: u8, | ||
pub(crate) mtu: usize, | ||
pub(crate) tick_rate_hz: u32, | ||
pub(crate) listen_interval: u16, | ||
pub(crate) beacon_timeout: u16, | ||
pub(crate) ap_beacon_timeout: u16, | ||
pub(crate) failure_retry_cnt: u8, | ||
pub(crate) scan_method: u32, | ||
} | ||
|
||
#[non_exhaustive] | ||
#[derive(Default)] | ||
pub enum PowerSaveMode { | ||
None, | ||
#[default] | ||
Minimum, | ||
Maximum, | ||
} | ||
|
||
impl From<PowerSaveMode> for include::wifi_ps_type_t { | ||
fn from(s: PowerSaveMode) -> Self { | ||
match s { | ||
PowerSaveMode::None => include::wifi_ps_type_t_WIFI_PS_NONE, | ||
PowerSaveMode::Minimum => include::wifi_ps_type_t_WIFI_PS_MIN_MODEM, | ||
PowerSaveMode::Maximum => include::wifi_ps_type_t_WIFI_PS_MAX_MODEM, | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to see these in the migration guide