Skip to content

Commit

Permalink
Merge pull request #9 from david-cermak/fix/update_v5.5
Browse files Browse the repository at this point in the history
[wifi-api]: Added esp_wifi_remote_config_80211_tx()
  • Loading branch information
david-cermak authored Dec 9, 2024
2 parents 372290a + a8d1057 commit 2115b2a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/esp_wifi_remote/idf_v5.5/esp_wifi_remote_weak.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ WEAK esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_p
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
}

WEAK esp_err_t esp_wifi_remote_config_80211_tx(wifi_interface_t ifx, wifi_tx_rate_config_t *config)
{
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
}

WEAK esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx)
{
LOG_UNSUPPORTED_AND_RETURN(ESP_ERR_NOT_SUPPORTED);
Expand Down
5 changes: 5 additions & 0 deletions components/esp_wifi_remote/idf_v5.5/esp_wifi_with_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ esp_err_t esp_wifi_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t ra
return esp_wifi_remote_config_80211_tx_rate(ifx, rate);
}

esp_err_t esp_wifi_config_80211_tx(wifi_interface_t ifx, wifi_tx_rate_config_t *config)
{
return esp_wifi_remote_config_80211_tx(ifx, config);
}

esp_err_t esp_wifi_disable_pmf_config(wifi_interface_t ifx)
{
return esp_wifi_remote_disable_pmf_config(ifx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ esp_err_t esp_wifi_remote_force_wakeup_release(void);
esp_err_t esp_wifi_remote_set_country_code(const char *country, _Bool ieee80211d_enabled);
esp_err_t esp_wifi_remote_get_country_code(char *country);
esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate);
esp_err_t esp_wifi_remote_config_80211_tx(wifi_interface_t ifx, wifi_tx_rate_config_t *config);
esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx);
esp_err_t esp_wifi_remote_sta_get_aid(uint16_t *aid);
esp_err_t esp_wifi_remote_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,11 @@ esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_ra
return ESP_OK;
}

esp_err_t esp_wifi_remote_config_80211_tx(wifi_interface_t ifx, wifi_tx_rate_config_t *config)
{
return ESP_OK;
}

esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx)
{
return ESP_OK;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ esp_err_t esp_wifi_remote_force_wakeup_release(void);
esp_err_t esp_wifi_remote_set_country_code(const char *country, _Bool ieee80211d_enabled);
esp_err_t esp_wifi_remote_get_country_code(char *country);
esp_err_t esp_wifi_remote_config_80211_tx_rate(wifi_interface_t ifx, wifi_phy_rate_t rate);
esp_err_t esp_wifi_remote_config_80211_tx(wifi_interface_t ifx, wifi_tx_rate_config_t *config);
esp_err_t esp_wifi_remote_disable_pmf_config(wifi_interface_t ifx);
esp_err_t esp_wifi_remote_sta_get_aid(uint16_t *aid);
esp_err_t esp_wifi_remote_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ void run_all_wifi_apis(void)
esp_wifi_config_80211_tx_rate(ifx, rate);
}

{
wifi_interface_t ifx = 0;
wifi_tx_rate_config_t *config = NULL;
esp_wifi_config_80211_tx(ifx, config);
}

{
wifi_interface_t ifx = 0;
esp_wifi_disable_pmf_config(ifx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,12 @@ void run_all_wifi_remote_apis(void)
esp_wifi_remote_config_80211_tx_rate(ifx, rate);
}

{
wifi_interface_t ifx = 0;
wifi_tx_rate_config_t *config = NULL;
esp_wifi_remote_config_80211_tx(ifx, config);
}

{
wifi_interface_t ifx = 0;
esp_wifi_remote_disable_pmf_config(ifx);
Expand Down

0 comments on commit 2115b2a

Please sign in to comment.