mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-03 00:21:44 +01:00
Merge branch 'docs/update_code_how_to_configure_multiple_antennas_of_wifi_v5.1' into 'release/v5.1'
docs: update code of how to configure multiple antennas of wifi (v5.1) See merge request espressif/esp-idf!24456
This commit is contained in:
@@ -1083,7 +1083,7 @@ The table below shows the reason-code defined in {IDF_TARGET_NAME}. The first co
|
||||
* - Reserved
|
||||
- 40 ~ 45
|
||||
- 40 ~ 45
|
||||
-
|
||||
-
|
||||
* - PEER_INITIATED
|
||||
- 46
|
||||
- 46
|
||||
@@ -2172,10 +2172,11 @@ Generally, following steps can be taken to configure the multiple antennas:
|
||||
|
||||
- Configure which GPIOs are connected to the antenna_selects. For example, if four antennas are supported and GPIO20/GPIO21 are connected to antenna_select[0]/antenna_select[1], the configurations look like::
|
||||
|
||||
wifi_ant_gpio_config_t config = {
|
||||
{ .gpio_select = 1, .gpio_num = 20 },
|
||||
{ .gpio_select = 1, .gpio_num = 21 }
|
||||
wifi_ant_gpio_config_t ant_gpio_config = {
|
||||
.gpio_cfg[0] = { .gpio_select = 1, .gpio_num = 20 },
|
||||
.gpio_cfg[1] = { .gpio_select = 1, .gpio_num = 21 }
|
||||
};
|
||||
|
||||
- Configure which antennas are enabled and how RX/TX use the enabled antennas. For example, if antenna1 and antenna3 are enabled, the RX needs to select the better antenna automatically and uses antenna1 as its default antenna, the TX always selects the antenna3. The configuration looks like::
|
||||
|
||||
wifi_ant_config_t config = {
|
||||
|
||||
Reference in New Issue
Block a user