This patches updates iwinfo to get the device string of the Wireless MAC correctly. The PCI connected AR9580 (used for 5GHz) is only an entry in the hardware.txt database. The SoC Wireless MAC AR9340 needed some extension in the iwinfo code. I came up with the solution to use the modalias strings in order to detect the on SoC Wireless MAC. I'm not sure wheater this is a clean solution, I think its better than poking around in the EEPROM/MTD in order to find some (pseudo) device/vendor id. At least for the Atheros based devices this should work fine since all Wirless MAC have a distinct modalias (see arch/mips/ath79/dev-wmac.c).
Changes since v1: - Don't fail if no entry was found - Renamed modstring to modalias - Create temporary iface for modalias method as well Stefan Agner (2): iwinfo: add Atheros AR9580 to hardware.txt iwinfo: add device detection using modalias package/network/utils/iwinfo/src/hardware.txt | 2 + package/network/utils/iwinfo/src/include/iwinfo.h | 1 + .../utils/iwinfo/src/include/iwinfo/utils.h | 3 +- .../network/utils/iwinfo/src/include/iwinfo/wext.h | 1 + package/network/utils/iwinfo/src/iwinfo_nl80211.c | 50 +++++++++++----------- package/network/utils/iwinfo/src/iwinfo_utils.c | 39 ++++++++++++++++- package/network/utils/iwinfo/src/iwinfo_wext.c | 9 ++++ 7 files changed, 79 insertions(+), 26 deletions(-) -- 1.8.4.2 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel