aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/iwinfo
Commit message (Collapse)AuthorAgeFilesLines
* iwinfo: add support for VHT rates to Lua bindingJo-Philipp Wich2016-01-251-1/+1
| | | | | | | | Update to Git HEAD in order to include VHT rate support in the Lua binding. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48488 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add support for VHT ratesJo-Philipp Wich2016-01-251-3/+3
| | | | | | | | | Update to upstream Git HEAD to include VHT rate support and a number of coverity scan fixes. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48487 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: use OPENWRT_GIT to point at the main openwrt git repoFelix Fietkau2016-01-041-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48118 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: nl80211: add support for reading TX power from netlinkJo-Philipp Wich2015-10-051-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47108 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: update to latest git HEADJohn Crispin2015-08-171-2/+2
| | | | | | | | adds extra station info reporting Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46669 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix segfault in mtd parsing code (#19768)Jo-Philipp Wich2015-06-011-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45863 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix hostapd status query (#19662)Jo-Philipp Wich2015-05-261-3/+3
| | | | | | | | | | * Rework hostapd and wpa_supplicant status parsing code * Add support for querying available HT rates * Relax definition of restricted channels Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45766 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: update to the latest version, fixes 802.11ac capability reportingFelix Fietkau2015-03-231-2/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44948 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [iwinfo]: upgrade to latest revisionImre Kaloz2015-01-041-2/+2
| | | | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43826 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: bump to latest git HEADJohn Crispin2014-12-121-2/+2
| | | | | | | | http://patchwork.ozlabs.org/patch/420128/ Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43666 3c298f89-4303-0410-b956-a3cf2f4a3e73
* license info - revert r43155John Crispin2014-11-031-3/+0
| | | | | | | | turns out that r43155 adds duplicate info. Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43167 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add more license tags with SPDX identifiersJohn Crispin2014-11-031-0/+3
| | | | | | | | | | | | | | | | | | Note, that licensing stuff is a nightmare: many packages does not clearly state their licenses, and often multiple source files are simply copied together - each with different licensing information in the file headers. I tried hard to ensure, that the license information extracted into the OpenWRT's makefiles fit the "spirit" of the packages, e.g. such small packages which come without a dedicated source archive "inherites" the OpenWRT's own license in my opinion. However, I can not garantee that I always picked the correct information and/or did not miss license information. Signed-off-by: Michael Heimpold <mhei@heimpold.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43155 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add a few SPDX tagsSteven Barth2014-11-021-0/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43151 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add cli support for phy lookup from uci sectionJo-Philipp Wich2014-10-271-2/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43092 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: switch to external git repo, support lookup by phyname & macaddrJo-Philipp Wich2014-10-2722-14848/+10
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43087 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add AR9580 with new subsystem device ID and QCA9880 with no ↵John Crispin2014-10-061-0/+2
| | | | | | | | | | | subsystem vendor/device IDs The AR9580 with the new ID can be found in the EnGenius ESR900 and the QCA9880 without any subsystem IDs can be found in the EnGenius ESR1750. Signed-off-by: Forest Crossman <cyrozap@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42793 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: detect AC PHY for broadcom-wlFelix Fietkau2014-10-052-0/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42761 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: detect HT PHY for broadcom-wlFelix Fietkau2014-10-052-4/+5
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42760 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix handling of accessing nl80211 interfaces via radio*Felix Fietkau2014-10-055-6/+100
| | | | | | | | look up device path via uci instead of assuming a direct phy index Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42759 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: enable nl80211 support based on cfg80211, not mac80211Felix Fietkau2014-10-051-3/+3
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42758 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: handle 802.11ac mode for luaJo-Philipp Wich2014-10-041-0/+3
| | | | | | Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42757 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: properly decode SSIDs when scanning through wpa_supplicantJo-Philipp Wich2014-08-242-4/+63
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42273 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package: fix segfault of iwinfo.scanlist("radio0").Jo-Philipp Wich2014-08-122-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This is a bug revealed in r41830. First, the static variable `char nif[IFNAMSIZ]` of nl80211_phy2ifname() would be zeroed out if the argument is "wlan0" or the like. This will happen in the following call stack. nl80211_get_scanlist("radio0", buf, len); nl80211_phy2ifname("radio0") // return static var nif with content "wlan0" nl80211_get_scanlist(nif, buf, len); // tail call nl80211_get_mode(nif); nl80211_phy2ifname(nif); // zero out nif Later we try nl80211_ifadd("") which was supposed to create interface "tmp.", but that won't happen because nl80211_msg() will put an invalid ifidx 0 to the nlmsg. Then iwinfo_ifup() and iwinfo_ifdown() would fail and happily nl80211_get_scanlist() returned 0 and left *len undefined. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42151 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: allow scans in AP mode on nl80211Felix Fietkau2014-08-061-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42014 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add missing include statementFelix Fietkau2014-08-031-0/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41955 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: avoid creating tmp.* ifaces for scanningJo-Philipp Wich2014-07-251-2/+22
| | | | | | | | | | | | If the iface to scan on already is in ad-hoc, station or monitor mode then do not spawn a temporary iface. Also preventively disable IPv6 on temporary ifaces before bringing them up to avoid potential security issues. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41830 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix secondary radios being misreported as ralink deviceJo-Philipp Wich2014-07-251-1/+2
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41829 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: continue scanning even if temporary mac cannot be changedJo-Philipp Wich2014-07-253-3/+3
| | | | | | | | | | So far iwinfo aborted a wifi scan attempt if the mac of the spawned interface could not be changed. Change the code to try anyway - this should fix wifi scanning on RaLink devices. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41826 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix crash on parsing mtd (#15807)Felix Fietkau2014-07-161-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41675 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix string format for country codeHauke Mehrtens2014-07-021-1/+1
| | | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41485 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: update nl80211 api to the latest oneJohn Crispin2014-06-021-140/+1478
| | | | | | | | modified version of http://patchwork.openwrt.org/patch/4533/ Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40954 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add 802.11ac hwmode supportJohn Crispin2014-06-023-3/+13
| | | | | | | | | | In case of .11ac device the hwmode was not properly displayed. This patch fixes it. Signed-off-by: Marek Kwaczynski <marek.kwaczynski@tieto.com> Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40953 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add Atheros AR9580 to hardware.txtJohn Crispin2014-06-021-0/+1
| | | | | | Signed-off-by: Stefan Agner <stefan@agner.ch> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40952 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: null-terminate the ssid on nl80211 scan to avoid printing trailing ↵Felix Fietkau2014-05-301-1/+4
| | | | | | | | garbage Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40884 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: remove old lua compat macrosFelix Fietkau2014-05-211-31/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40816 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: un-export internal api header filesFelix Fietkau2014-05-218-4/+4
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40815 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: bump release and start using ABI_VERSIONFelix Fietkau2014-05-211-1/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40814 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move wl_ops to iwinfo_wl.c, make functions staticFelix Fietkau2014-05-214-145/+88
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40813 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move nl80211_ops to iwinfo_nl80211.c, make functions staticFelix Fietkau2014-05-215-313/+281
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40812 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move madwifi_ops to iwinfo_madwifi.c, make functions staticFelix Fietkau2014-05-214-144/+85
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40811 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: move wext_ops to iwinfo_wext.c, make functions staticFelix Fietkau2014-05-2110-173/+146
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40810 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: keep an array of backends, reduce the number of ifdefs and hardcoded ↵Felix Fietkau2014-05-216-52/+35
| | | | | | | | strcmp calls Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40809 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: adjust for changed wpa_supplicant control socket pathJo-Philipp Wich2014-05-102-3/+9
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40747 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: don't report associations for broadcom wds interfacesHauke Mehrtens2013-11-111-0/+3
| | | | | | | | | | | The associations list for Broadcom WDS interfaces are duplicate to those reported by the corresponding AP interface; so there is no need to report them again. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38746 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: fix hwmodelist reporting for broadcom wlHauke Mehrtens2013-11-112-5/+59
| | | | | | | | | | Modify the hwmodelist reporting for broadcom devices to include proper reporting of 802.11n support. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38745 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: make 'type' visible in wrapped iwinfoJo-Philipp Wich2013-10-182-1/+5
| | | | | | | | | | | There are several cases within 'luci' that attempt to access the interface 'type' from within the 'type' specific meta tables; however, 'type' is not currently available there. Replicate the common metadata in the 'type' specific meta tables. Signed-off-by: Nathan Hintz <nlhintz@hotmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38448 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add Ubiquiti WispStation M5 to hardware.txtGabor Juhos2013-09-241-0/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38145 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: when using nl80211, parse interface combinations instead of ↵Felix Fietkau2013-09-141-9/+57
| | | | | | | | creating/deleting interfaces Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* iwinfo: add phyname attribute, this is useful to group networks by radio phyJo-Philipp Wich2013-06-0912-3/+95
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36889 3c298f89-4303-0410-b956-a3cf2f4a3e73
* libiwinfo: ignore log messages from wpa_supplicant while scanningJo-Philipp Wich2013-06-091-16/+47
| | | | | | | | | | | | | | | wpa_supplicant may send log and event messages intermixed with the expected scan results. This makes "iwinfo wlan0 scan" and LuCI "site survey" display nothing when many AP's are around. Eliminate the CTRL-EVENT-BSS-ADDED events, interspersed log messages, lines with unexpected format. Increase timeout to handle the max number of channels (2.4, 3.6, 4.9, 5 GHz). Insure receive buffer is null-terminated. Signed-off-by: Jean-Pierre Tosoni <jp.tosoni@acksys.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36888 3c298f89-4303-0410-b956-a3cf2f4a3e73