In order to get the firmware for the ALL0258N updated, I re-worked the antenna selection code which I previously made about half a year ago. The ALL0258N got an external antenna switch, i.e. by use of the AR_SWITCH_COM register the LNA circuitry can be controlled in such a way that either the horizontal or the vertical panel is used for TX. In that way, point-to-point connections suffer less from collisions and full-duplex operation becomes more smooth if opposite antenna settings are chosen on the two ends.
In order to support that in OpenWrt, the necessary operations were added to nl80211, cfg80211 and mac80211. Support for the set_extant operation was added to ath9k, as the ALL0258N uses an AR9285 radio. ath9k_platform was extended so it can carry information about available configuration profiles. In user-space, the iw tool was extended so it can support reading and writing the antenna configuration. Daniel Golle (3): mac80211: support antenna selector on AR9285 iw: add antenna selector operations to iw user-space tool ar71xx: add antenna selector profile support and profile for ALL0258N package/iw/patches/200-antenna-selector.patch | 609 +++++++++++++++++++++ ...0-cfg80211-antenna-configuration-profiles.patch | 247 +++++++++ .../581-mac80211-antenna-configuration-ops.patch | 92 ++++ ...antenna-switch-profile-support-for-ar9285.patch | 448 +++++++++++++++ .../ar71xx/files/arch/mips/ath79/dev-ap9x-pci.c | 10 + .../ar71xx/files/arch/mips/ath79/dev-ap9x-pci.h | 7 + .../ar71xx/files/arch/mips/ath79/mach-all0258n.c | 6 + .../generic/files/include/linux/ath9k_platform.h | 7 + 8 files changed, 1426 insertions(+) create mode 100644 package/iw/patches/200-antenna-selector.patch create mode 100644 package/mac80211/patches/580-cfg80211-antenna-configuration-profiles.patch create mode 100644 package/mac80211/patches/581-mac80211-antenna-configuration-ops.patch create mode 100644 package/mac80211/patches/582-ath9k-antenna-switch-profile-support-for-ar9285.patch -- 1.7.11.3
pgplAzUmU1sYH.pgp
Description: PGP signature
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
