On 09/07/2011 11:02 PM, Felix Fietkau wrote: > On 2011-09-07 10:03 PM, Daniel Golle wrote: >> This is a temporary solution to add support for the external antenna >> switching >> logic built-into the ALL0258N. Obviously this cannot go upstream, but works >> for now... > What kind of values get written to that file, how does it control the > antenna? > By the way, you can switch between the two LNA paths through the nl80211 > antenna selection API. Would this be enough to control the antenna > selection on this device? I use these values I got from the original firmware: echo 0x0a900120 >/proc/switch_com ; # selects vertical antenna echo 0x09a00210 >/proc/switch_com ; # selects horizontal antenna
I noticed you recently added 583-ath9k_antenna_control.patch , unfortunately it seems like only one path is detected from iw info: Available Antennas: TX 0x1 RX 0x1 Configured Antennas: TX 0x1 RX 0x1 using that value that actually doesn't select any antenna at all (i got a link to a device close-by once I removed the shielding of the wifi part on the board...) Maybe the values stored on the in-flash eeprom just aren't really proper and ignored by the oem's firmware (another indicator for that is that we also got to override EEP_TXGAIN_TYPE in order to get decent signal quality) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel