oweals/iwinfo.git
5 years agonl80211: support reading hardware id from phy directly
Jo-Philipp Wich [Wed, 28 Aug 2019 09:11:28 +0000 (11:11 +0200)]
nl80211: support reading hardware id from phy directly

Do not require a temporary interface just to read the hardware ID numbers
from a given phy name, instead read the data from the ieee80211 sysfs
directory.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
5 years agoiwinfo: add device id for MediaTek MT7612E
Pawel Dembicki [Thu, 13 Jun 2019 14:20:37 +0000 (16:20 +0200)]
iwinfo: add device id for MediaTek MT7612E

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
5 years agoiwinfo: add device id for Atheros AR9390
Pawel Dembicki [Thu, 13 Jun 2019 14:20:36 +0000 (16:20 +0200)]
iwinfo: add device id for Atheros AR9390

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
5 years agoiwinfo: Add Mikrotik R11e-5HnDr2
Koen Vandeputte [Wed, 12 Jun 2019 12:21:23 +0000 (14:21 +0200)]
iwinfo: Add Mikrotik R11e-5HnDr2

This device currently showed up as Generic Mac80211.

While at it, spell the vendor name correctly (large 'T')

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
5 years agoiwinfo: Complete device IDs for Ubiquiti airOS XM/XW devices
Vincent Wiemann [Sat, 16 Mar 2019 21:32:35 +0000 (22:32 +0100)]
iwinfo: Complete device IDs for Ubiquiti airOS XM/XW devices

This commit includes all power offsets and subsystem device IDs
for Ubiquiti XM and XW devices. The device ID is wildcarded.
Consistency has been tested among all Ubiquiti platforms.
These values seem to be PA gains and likely do not include
antenna gains. I expect the antenna gains to be defined in ART-
partitions.

Signed-off-by: Vincent Wiemann <vincent.wiemann@ironai.com>
5 years agoiwinfo: Add Mikrotik R11e-5HnD
Koen Vandeputte [Mon, 20 May 2019 12:06:19 +0000 (14:06 +0200)]
iwinfo: Add Mikrotik R11e-5HnD

This device currently showed up as Generic Mac80211.

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
5 years agoiwinfo: Fix 802.11ad channel to frequency
Robert Marko [Thu, 28 Mar 2019 13:55:55 +0000 (14:55 +0100)]
iwinfo: Fix 802.11ad channel to frequency

This patch enables proper identification of ad hwmode in channel2frequency function.
Now iwinfo will properly calculate frequency for a channels 1-6 in 802.11ad.

Fixes a8e827592338d7f10d93b4b93d04f367221465c2

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 years agoiwinfo: Add support for 802.11ad
Robert Marko [Wed, 13 Mar 2019 18:19:19 +0000 (19:19 +0100)]
iwinfo: Add support for 802.11ad

This patch adds support for identifying, calculating channels from
frequency and vice versa as well as Lua hwmode for 802.11ad.

Support has been added for channels 1-6.

Signed-off-by: Robert Marko <robimarko@gmail.com>
[Increase buffer size for hwmodes]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
5 years agoiwinfo: Add device ID for Wilocity Wil6210
Robert Marko [Mon, 11 Mar 2019 09:26:28 +0000 (10:26 +0100)]
iwinfo: Add device ID for Wilocity Wil6210

This patch adds device ID for Wilocity Wil6210 802.11ad
60 GHz PCI wireless card.

Signed-off-by: Robert Marko <robimarko@gmail.com>
5 years agoiwinfo: fix capitalization of vendor name
Daniel Golle [Fri, 1 Mar 2019 22:16:28 +0000 (23:16 +0100)]
iwinfo: fix capitalization of vendor name

They were called 'Ralink' rather than 'RaLink'.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agoiwinfo: more Ralink and MediaTek WiSoC and PCIe chips
Daniel Golle [Fri, 1 Mar 2019 11:10:58 +0000 (12:10 +0100)]
iwinfo: more Ralink and MediaTek WiSoC and PCIe chips

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agoiwinfo: add device id for MediaTek MT7603E
Daniel Golle [Thu, 22 Nov 2018 15:10:52 +0000 (16:10 +0100)]
iwinfo: add device id for MediaTek MT7603E

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
5 years agoiwinfo: fix QCA9984 vendor id
Mathias Kresin [Tue, 25 Dec 2018 07:37:40 +0000 (08:37 +0100)]
iwinfo: fix QCA9984 vendor id

Fix the typo in the QCA9984 vendor id.

Signed-off-by: Mathias Kresin <dev@kresin.me>
5 years agoiwinfo: add device id for Atheros AR9287
Mathias Kresin [Tue, 25 Dec 2018 07:36:24 +0000 (08:36 +0100)]
iwinfo: add device id for Atheros AR9287

Signed-off-by: Mathias Kresin <dev@kresin.me>
5 years agoiwinfo: add device id for MediaTek MT7612E
David Bauer [Tue, 25 Dec 2018 03:32:23 +0000 (04:32 +0100)]
iwinfo: add device id for MediaTek MT7612E

Signed-off-by: David Bauer <mail@david-bauer.net>
5 years agolibiwinfo: nl80211: add mesh stats on assoclist.
Daniel Danzberger [Wed, 31 Oct 2018 08:49:42 +0000 (09:49 +0100)]
libiwinfo: nl80211: add mesh stats on assoclist.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
6 years agoiwinfo: Add Mikrotik R11e-2HPnD and R11e-5HacT to hardware list
Rosen Penev [Fri, 7 Sep 2018 23:52:44 +0000 (16:52 -0700)]
iwinfo: Add Mikrotik R11e-2HPnD and R11e-5HacT to hardware list

These are both miniPCIe cards that show up as Generic MAC80211. This fixes
that.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
6 years agoRevert "build: compile with -ffunction-sections, -fdata-sections and LTO"
Jo-Philipp Wich [Tue, 31 Jul 2018 18:36:27 +0000 (20:36 +0200)]
Revert "build: compile with -ffunction-sections, -fdata-sections and LTO"

This reverts commit a51413988caaff7001f47c8a62bff11a72ca48bc.

It causes assertion failures in ld and requires changes to linked libraries,
so drop this for now.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agowl: only invoke nvram executable if it exists
Jo-Philipp Wich [Tue, 31 Jul 2018 18:09:02 +0000 (20:09 +0200)]
wl: only invoke nvram executable if it exists

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agobuild: compile with -ffunction-sections, -fdata-sections and LTO
Jo-Philipp Wich [Thu, 26 Jul 2018 07:13:21 +0000 (09:13 +0200)]
build: compile with -ffunction-sections, -fdata-sections and LTO

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: attempt to query Mesh ID from ubus
Jo-Philipp Wich [Tue, 24 Jul 2018 14:41:47 +0000 (16:41 +0200)]
nl80211: attempt to query Mesh ID from ubus

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoutils: add simple ubus query support
Jo-Philipp Wich [Tue, 24 Jul 2018 14:31:24 +0000 (16:31 +0200)]
utils: add simple ubus query support

Some wireless runtime parameters are not available via nl80211, e.g.
the effective Mesh ID so we need to fetch those from ubus state info.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: add support for obtaining bssid from NL80211_CMD_GET_INTERFACE
Jo-Philipp Wich [Mon, 23 Jul 2018 15:33:09 +0000 (17:33 +0200)]
nl80211: add support for obtaining bssid from NL80211_CMD_GET_INTERFACE

Fixes missing "BSSID" on Mesh Point interfaces

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: handle Mesh ID IE
Jo-Philipp Wich [Mon, 23 Jul 2018 14:37:28 +0000 (16:37 +0200)]
nl80211: handle Mesh ID IE

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agoiwinfo: nl80211: add survey.
Daniel Danzberger [Tue, 3 Jul 2018 13:32:11 +0000 (15:32 +0200)]
iwinfo: nl80211: add survey.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
6 years agoiwinfo: nl80211: add more stats to assoclist.
Daniel Danzberger [Tue, 3 Jul 2018 13:32:10 +0000 (15:32 +0200)]
iwinfo: nl80211: add more stats to assoclist.

+ NL80211_STA_INFO_SIGNAL_AVG
+ NL80211_STA_INFO_RX_DROP_MISC
+ NL80211_STA_INFO_CONNECTED_TIME

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
6 years agohardware: add device ids for QCA9984, 88W8887 and 88W8964 radios
Jo-Philipp Wich [Thu, 26 Apr 2018 19:50:00 +0000 (21:50 +0200)]
hardware: add device ids for QCA9984, 88W8887 and 88W8964 radios

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: back out early when receiving FAIL-BUSY reply
Jo-Philipp Wich [Thu, 26 Apr 2018 15:12:16 +0000 (17:12 +0200)]
nl80211: back out early when receiving FAIL-BUSY reply

The wpa_supplicant control socket might reply with "FAIL-BUSY" when
attempting to start a scan while another scanning process is already
running, back out early in this case.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: fix code calculating average signal and rate
Rafał Miłecki [Wed, 28 Mar 2018 08:30:07 +0000 (10:30 +0200)]
nl80211: fix code calculating average signal and rate

Using average of previous average and the next value is highly
imprecise. E.g. for values 20, 20, 20, 180 it would result in /average/
of 100 (instead of 60). Fix it by storing & using an info of how many
samples were used for the previous calculation.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
6 years agoadd support for expected throughput
Daniel Golle [Wed, 14 Feb 2018 20:37:44 +0000 (21:37 +0100)]
add support for expected throughput

cfg80211 allows drivers to announce the to-be-expected layer-2 datarate
using the NL80211_STA_INFO_EXPECTED_THROUGHPUT field.
This information is useful as a metric for user-space routing daemons,
so grab it via nl80211 and make it available in both C and Lua APIs,
and show expected throughput on CLI interface assoclist.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
6 years agonl80211: do not block when driver aborts scan
Olof Sivertsson [Wed, 17 Jan 2018 12:32:09 +0000 (13:32 +0100)]
nl80211: do not block when driver aborts scan

Drivers may abort a scan by calling cfg80211_scan_done() with a struct
cfg80211_scan_info that sets aborted to true.

To avoid blocking forever consider both NL80211_CMD_NEW_SCAN_RESULTS
and NL80211_CMD_SCAN_ABORTED when waiting for scan results.

Tested with Broadcom's bcmdhd driver.

Signed-off-by: Olof Sivertsson <olof.sivertsson@zenterio.com>
[rebased on top of variadic nl80211_wait()]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: turn nl80211_wait() into variadic function
Jo-Philipp Wich [Wed, 17 Jan 2018 12:27:03 +0000 (13:27 +0100)]
nl80211: turn nl80211_wait() into variadic function

Extend the nl82011_wait() function to accept multiple command numbers.

This is useful to wait for different possible results, e.g. either
NL80211_CMD_NEW_SCAN_RESULTS or NL80211_CMD_SCAN_ABORTED.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
6 years agonl80211: skip event notifications in wpa_supplicant scan result reply
Jo-Philipp Wich [Tue, 16 Jan 2018 12:44:21 +0000 (13:44 +0100)]
nl80211: skip event notifications in wpa_supplicant scan result reply

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agonl80211: request split information about frequencies
Rafał Miłecki [Wed, 23 Aug 2017 09:00:00 +0000 (11:00 +0200)]
nl80211: request split information about frequencies

This allows kernel send more details including all the
NL80211_FREQUENCY_ATTR_NO_* flags.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agonl80211: store info about freq being not available for some bandwidths
Rafał Miłecki [Tue, 15 Aug 2017 08:36:19 +0000 (10:36 +0200)]
nl80211: store info about freq being not available for some bandwidths

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jo-Philipp Wich <jo@mein.io>
7 years agoAllow storing more info about each frequency
Rafał Miłecki [Tue, 15 Aug 2017 08:36:18 +0000 (10:36 +0200)]
Allow storing more info about each frequency

This adds flags field which may be used to mark frequency not available
under some conditions.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jo-Philipp Wich <jo@mein.io>
7 years agonl80211: support receiving split frequencies
Rafał Miłecki [Tue, 15 Aug 2017 08:36:17 +0000 (10:36 +0200)]
nl80211: support receiving split frequencies

In order to get more details about each frequency we will need to set
NL80211_ATTR_SPLIT_WIPHY_DUMP in the future. This will result in our
callback being called multiple times. Modify it to support such a
scenario:
1) Start putting new frequencies after the last set one
2) Make sure that attribute is set before iterating it

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Jo-Philipp Wich <jo@mein.io>
7 years agonl80211: improve error handling
Jo-Philipp Wich [Mon, 26 Jun 2017 07:20:24 +0000 (09:20 +0200)]
nl80211: improve error handling

 - introduce a new nl80211_request() which combines nl80211_msg() with
   nl80211_send() to simplify calling code

 - always invoke nl80211_free() in nl80211_send() and remove explicit
   nl80211_free() invocations in callers

 - back out early on netlink errors in functions performing multiple
   calls, e.g. when fetching scan results

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agonl80211: propagate netlink errors to callers
Jo-Philipp Wich [Mon, 26 Jun 2017 05:22:10 +0000 (07:22 +0200)]
nl80211: propagate netlink errors to callers

Adjust nl80211_send() to propagate errors back to the caller and do not
free message and callbacks in send error case anymore since all callsites
immediately invoke nl80211_free() anyway.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agonl80211: handle netlink errors in nl80211_wait()
Jo-Philipp Wich [Mon, 26 Jun 2017 05:06:40 +0000 (07:06 +0200)]
nl80211: handle netlink errors in nl80211_wait()

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoiwinfo: add device id for Ubiquiti NanoStation Loco M2
Sven Roederer [Sat, 15 Oct 2016 16:04:44 +0000 (18:04 +0200)]
iwinfo: add device id for Ubiquiti NanoStation Loco M2

id read from unit and txoffset from datasheet

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
8 years agolua: fix WPA cipher reporting
Jo-Philipp Wich [Wed, 21 Sep 2016 19:02:10 +0000 (21:02 +0200)]
lua: fix WPA cipher reporting

Use the same logic as the command line interface for reporting the used WPA
ciphers. Instead of printing the intersection of pairwise and group ciphers,
report both group and pairwise ciphers.

This fixes a case where a connection which uses CCMP for pairwise and TKIP
as groupwise cipher is getting reported as using the NONE cipher.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agoMakefile: drop link against libblobmsg_json and libjson-c
Felix Fietkau [Fri, 29 Jul 2016 14:28:29 +0000 (16:28 +0200)]
Makefile: drop link against libblobmsg_json and libjson-c

They are not necessary

Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 years agoMakefile: explictly link with all shared libraries
Florian Fainelli [Mon, 11 Jul 2016 21:05:27 +0000 (14:05 -0700)]
Makefile: explictly link with all shared libraries

linking with libuci means we need to link with libblobmsg_json, libjson-c and
libubox. Sinc e we do not use pkg-config or something equivalent, we need to
specify all dependencies.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
8 years agonl80211: retry phy lookup with platform/ prefix
Jo-Philipp Wich [Mon, 4 Jul 2016 14:07:09 +0000 (16:07 +0200)]
nl80211: retry phy lookup with platform/ prefix

If the first attempt to lookup the phy index by the path value fails, retry to
find the index within the platform/ subdirectory to follow the logic used by
the mac80211 package.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
8 years agolua: support reporting VHT rates
Jo-Philipp Wich [Mon, 25 Jan 2016 15:01:32 +0000 (16:01 +0100)]
lua: support reporting VHT rates

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agocli: support reporting VHT rates
Jo-Philipp Wich [Mon, 25 Jan 2016 14:02:50 +0000 (15:02 +0100)]
cli: support reporting VHT rates

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agonl80211: add VHT rateinfo support
Jo-Philipp Wich [Mon, 25 Jan 2016 14:01:49 +0000 (15:01 +0100)]
nl80211: add VHT rateinfo support

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoiwinfo: assign explicit length to IWINFO_*_NAMES[] to fix compile issues
Jo-Philipp Wich [Mon, 25 Jan 2016 14:00:22 +0000 (15:00 +0100)]
iwinfo: assign explicit length to IWINFO_*_NAMES[] to fix compile issues

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
8 years agoSync with upstream nl80211.h
Jo-Philipp Wich [Mon, 25 Jan 2016 13:41:31 +0000 (14:41 +0100)]
Sync with upstream nl80211.h

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: remove dead code
Jo-Philipp Wich [Thu, 29 Oct 2015 12:46:07 +0000 (13:46 +0100)]
nl80211: remove dead code

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: fix possibly unterminated ifname string
Jo-Philipp Wich [Thu, 29 Oct 2015 09:53:56 +0000 (10:53 +0100)]
nl80211: fix possibly unterminated ifname string

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoutils: fix possibly unterminated ifname string
Jo-Philipp Wich [Thu, 29 Oct 2015 09:53:48 +0000 (10:53 +0100)]
utils: fix possibly unterminated ifname string

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agowext_scan: fix possibly unterminated ifname string
Jo-Philipp Wich [Thu, 29 Oct 2015 09:53:32 +0000 (10:53 +0100)]
wext_scan: fix possibly unterminated ifname string

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agolua: fix possible out-of-bounds read in iwinfo_L_cryptotable()
Jo-Philipp Wich [Thu, 29 Oct 2015 09:46:59 +0000 (10:46 +0100)]
lua: fix possible out-of-bounds read in iwinfo_L_cryptotable()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: fix possible fd leak in nl80211_hostapd_hup()
Jo-Philipp Wich [Thu, 29 Oct 2015 09:43:49 +0000 (10:43 +0100)]
nl80211: fix possible fd leak in nl80211_hostapd_hup()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: fix possible unitialized memory access in nl80211_get_hardware_id()
Jo-Philipp Wich [Thu, 29 Oct 2015 09:40:40 +0000 (10:40 +0100)]
nl80211: fix possible unitialized memory access in nl80211_get_hardware_id()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: read TX power using NL80211_CMD_GET_INTERFACE
Rafał Miłecki [Mon, 28 Sep 2015 11:39:15 +0000 (13:39 +0200)]
nl80211: read TX power using NL80211_CMD_GET_INTERFACE

With the mac80211 commit d55d0d598e66 ("nl80211: put current TX power in
interface info") it is possible now to get TX power using nl80211. As we
don't really support any wext-only drivers it doesn't make sense to
leave wext as a fallback.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
9 years agoiwinfo: null-terminate country code
Felix Fietkau [Fri, 11 Sep 2015 13:46:49 +0000 (15:46 +0200)]
iwinfo: null-terminate country code

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
9 years agoiwinfo: report additional data for stations
Jernej Kos [Sat, 8 Aug 2015 12:22:26 +0000 (14:22 +0200)]
iwinfo: report additional data for stations

Signed-off-by: Jernej Kos <jernej@kos.mx>
9 years agoutils: fix segfault in iwinfo_hardware_id_from_mtd()
Jo-Philipp Wich [Mon, 1 Jun 2015 04:23:14 +0000 (06:23 +0200)]
utils: fix segfault in iwinfo_hardware_id_from_mtd()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoFix -Wall -Wpedantic warnings
Jo-Philipp Wich [Tue, 19 May 2015 16:54:58 +0000 (18:54 +0200)]
Fix -Wall -Wpedantic warnings

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: rework hostapd and wpa_supplicant query code
Jo-Philipp Wich [Mon, 18 May 2015 12:12:02 +0000 (14:12 +0200)]
nl80211: rework hostapd and wpa_supplicant query code

The old nl80211_hostapd_info() used a global static buffer which was not
properly zeroed on subsequent invocations, leading to misreported encryption
values when querying multiple radios or radious with multiple vifs.

Also rework and simplify the control socket code for wpa_supplicant by
splitting status query and scan handling.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoiwinfo: add support for querying available HT modes
Jo-Philipp Wich [Fri, 8 May 2015 11:14:36 +0000 (13:14 +0200)]
iwinfo: add support for querying available HT modes

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoiwinfo: move ARRAY_SIZE macro to iwinfo/utils.h
Jo-Philipp Wich [Fri, 8 May 2015 11:21:16 +0000 (13:21 +0200)]
iwinfo: move ARRAY_SIZE macro to iwinfo/utils.h

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agonl80211: relax definition of restricted channels
Jo-Philipp Wich [Tue, 31 Mar 2015 11:56:00 +0000 (13:56 +0200)]
nl80211: relax definition of restricted channels

Only mark channels restricted that do not have a radar flag set.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
9 years agoiwinfo: don't report AC capabilities on 2GHz-only interfaces
Imre Kaloz [Fri, 20 Mar 2015 14:36:04 +0000 (15:36 +0100)]
iwinfo: don't report AC capabilities on 2GHz-only interfaces

If a 802.11ac capable chip is in 2GHz-only mode, the hwmode
reported should be 802.11bgn.

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
9 years agoiwinfo: add device id for Marvell 88W8864
Imre Kaloz [Sun, 4 Jan 2015 17:17:45 +0000 (18:17 +0100)]
iwinfo: add device id for Marvell 88W8864

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
9 years agoiwinfo: Fix incorrect buffer allocation in nl80211_get_ifcomb_cb()
Andrew McDonnell [Thu, 11 Dec 2014 13:47:45 +0000 (00:17 +1030)]
iwinfo: Fix incorrect buffer allocation in nl80211_get_ifcomb_cb()

This fixes a buffer overwrite, I found it when building with SSP enabled

10 years agoutils: only enable extended lookup if section looks like it
Jo-Philipp Wich [Mon, 27 Oct 2014 16:33:02 +0000 (17:33 +0100)]
utils: only enable extended lookup if section looks like it

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agoutils: support extended format for uci section lookup
Jo-Philipp Wich [Mon, 27 Oct 2014 16:01:38 +0000 (17:01 +0100)]
utils: support extended format for uci section lookup

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agocli: add command to translate uci section to phy name
Jo-Philipp Wich [Mon, 27 Oct 2014 15:59:50 +0000 (16:59 +0100)]
cli: add command to translate uci section to phy name

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agonl80211: implement lookup_phy() op
Jo-Philipp Wich [Mon, 27 Oct 2014 15:59:26 +0000 (16:59 +0100)]
nl80211: implement lookup_phy() op

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agoinclude: add lookup_phy() op
Jo-Philipp Wich [Mon, 27 Oct 2014 15:59:03 +0000 (16:59 +0100)]
include: add lookup_phy() op

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agolib: add iwinfo_backend_by_name()
Jo-Philipp Wich [Mon, 27 Oct 2014 15:57:19 +0000 (16:57 +0100)]
lib: add iwinfo_backend_by_name()

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agonl80211: support phy lookup by macaddr and phy name
Jo-Philipp Wich [Mon, 27 Oct 2014 14:08:10 +0000 (15:08 +0100)]
nl80211: support phy lookup by macaddr and phy name

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agoiwinfo: add AR9580 with new subsystem device ID and QCA9880 with no subsystem vendor...
blogic [Mon, 6 Oct 2014 04:53:04 +0000 (04:53 +0000)]
iwinfo: add AR9580 with new subsystem device ID and QCA9880 with no 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+ssh://svn.openwrt.org/openwrt/trunk@42793 3c298f89-4303-0410-b956-a3cf2f4a3e73

10 years agoiwinfo: detect AC PHY for broadcom-wl
nbd [Sun, 5 Oct 2014 10:26:17 +0000 (10:26 +0000)]
iwinfo: detect AC PHY for broadcom-wl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42761 3c298f89-4303-0410-b956-a3cf2f4a3e73

10 years agoiwinfo: detect HT PHY for broadcom-wl
nbd [Sun, 5 Oct 2014 10:26:10 +0000 (10:26 +0000)]
iwinfo: detect HT PHY for broadcom-wl

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42760 3c298f89-4303-0410-b956-a3cf2f4a3e73

10 years agoiwinfo: fix handling of accessing nl80211 interfaces via radio*
nbd [Sun, 5 Oct 2014 10:26:05 +0000 (10:26 +0000)]
iwinfo: fix handling of accessing nl80211 interfaces via radio*

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+ssh://svn.openwrt.org/openwrt/trunk@42759 3c298f89-4303-0410-b956-a3cf2f4a3e73

10 years agoInitial commit
Jo-Philipp Wich [Sun, 5 Oct 2014 17:56:27 +0000 (19:56 +0200)]
Initial commit

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>