iwinfo: null-terminate country code
Signed-off-by: Felix Fietkau <[email protected]>
iwinfo: report additional data for stations
Signed-off-by: Jernej Kos <[email protected]>
utils: fix segfault in iwinfo_hardware_id_from_mtd()
Signed-off-by: Jo-Philipp Wich <[email protected]>
Fix -Wall -Wpedantic warnings
Signed-off-by: Jo-Philipp Wich <[email protected]>
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 <[email protected]>
iwinfo: add support for querying available HT modes
Signed-off-by: Jo-Philipp Wich <[email protected]>
iwinfo: move ARRAY_SIZE macro to iwinfo/utils.h
Signed-off-by: Jo-Philipp Wich <[email protected]>
nl80211: relax definition of restricted channels
Only mark channels restricted that do not have a radar flag set.
Signed-off-by: Jo-Philipp Wich <[email protected]>
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 <[email protected]>
iwinfo: add device id for Marvell 88W8864
Signed-off-by: Imre Kaloz <[email protected]>
utils: only enable extended lookup if section looks like it
Signed-off-by: Jo-Philipp Wich <[email protected]>
utils: support extended format for uci section lookup
Signed-off-by: Jo-Philipp Wich <[email protected]>
cli: add command to translate uci section to phy name
Signed-off-by: Jo-Philipp Wich <[email protected]>
nl80211: implement lookup_phy() op
Signed-off-by: Jo-Philipp Wich <[email protected]>
include: add lookup_phy() op
Signed-off-by: Jo-Philipp Wich <[email protected]>
lib: add iwinfo_backend_by_name()
Signed-off-by: Jo-Philipp Wich <[email protected]>
nl80211: support phy lookup by macaddr and phy name
Signed-off-by: Jo-Philipp Wich <[email protected]>
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 <[email protected]>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42793
3c298f89-4303-0410-b956-
a3cf2f4a3e73
iwinfo: detect AC PHY for broadcom-wl
Signed-off-by: Felix Fietkau <[email protected]>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42761
3c298f89-4303-0410-b956-
a3cf2f4a3e73
iwinfo: detect HT PHY for broadcom-wl
Signed-off-by: Felix Fietkau <[email protected]>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42760
3c298f89-4303-0410-b956-
a3cf2f4a3e73
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 <[email protected]>
git-svn-id: svn+ssh://svn.openwrt.org/openwrt/trunk@42759
3c298f89-4303-0410-b956-
a3cf2f4a3e73