| 1 | Antenna diversity can be controlled using sysctl (/proc/sys/dev/athX/{diversity,txantenna,rxantenna}): |
| 2 | |
| 3 | {{{ |
| 4 | diversity: |
| 5 | 0: no |
| 6 | 1: yes |
| 7 | |
| 8 | txantenna and rxantenna: |
| 9 | 0: auto |
| 10 | 1: antenna 1 |
| 11 | 2: antenna 2 |
| 12 | }}} |
| 13 | |
| 14 | Which connector corresponds to antenna 1 and which to antenna 2 depends on the particular radio hardware. |
| 15 | For example, to disable diversity and select antenna 1 for receive and transmit you'd do the following: |
| 16 | |
| 17 | {{{ |
| 18 | sysctl -w dev.wifi0.diversity=0 |
| 19 | sysctl -w dev.wifi0.txantenna=1 |
| 20 | sysctl -w dev.wifi0.rxantenna=1 |
| 21 | }}} |