8.10.1 Antenna Switch GPIO Control
Sysfs entry
/sys/wilc/ant_swtch_mode
can be used as follows to
configure the GPIOs used to control the antenna
switch:# echo mode > /sys/wilc/ant_swtch_mode
where, mode = 1 for Single Antenna , mode = 2 for Dual Antenna and 0 - to Disable diversity.
For WILC1000 valid GPIOs are 0, 1, 3, 4 and 6, and for WILC3000 valid GPIOs are 0, 3, 4, 6, 17, 18, 19 and 20.