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).
-- Stefan 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 | 9 +++-- package/network/utils/iwinfo/src/iwinfo_utils.c | 39 +++++++++++++++++++++- package/network/utils/iwinfo/src/iwinfo_wext.c | 9 +++++ 7 files changed, 59 insertions(+), 5 deletions(-) -- 1.8.4.2 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
