limosek-zaf-plugins/iwx/control.zaf

222 lines
3.1 KiB
Plaintext

Plugin: iwx
Description::
Plugin for wifi mac80211 informations and discovery
::
Version: 0.5
Url: https://raw.githubusercontent.com/limosek/zaf-plugins/master/iwx
Web: https://github.com/limosek/zaf-plugins
# Dependencies
Depends-dpkg: dash
Depends-opkg: busybox jshn
Depends-bin: ps iw
Sudo: iw
# Install
Install-files: functions.sh
Item if_discovery:
Return: json
Description::
Discovery of wireless interfaces
::
Cmd: wifi_if_discovery
/Item
Item phy_discovery:
Return: json
Description::
Discovery of wireless physical interfaces
::
Cmd: wifi_phy_discovery
/Item
Item channels_discovery:
Return: json
Description::
Discovery of wireless channels
::
Cache: 600
Parameters: dev
Testparameters: wlan0
Parameters::
dev wlan0 ''
::
Cmd: wifi_channels_discovery $dev
/Item
Item clients_discovery:
Return: json
Description::
Discovery of wireless clients
::
Cache: 300
Parameters::
dev wlan0 ''
::
Testparameters: wlan0
Cmd: wifi_clients_discovery $dev
/Item
Item neigh_discovery:
Return: json
Description::
Discovery of wireless neighbours
::
Cache: 600
Parameters::
dev wlan0 ''
::
Testparameters: wlan0
Cmd: wifi_neigh_discovery $dev
/Item
Item client_signal:
Return: int
Return-null: -200
Return-error: -199
Description::
Signal level of client
::
Parameters::
dev wlan0 ''
mac '' ''
::
Cmd: wifi_client_signal $dev $mac
/Item
Item client_rxrate:
Return: int
Return-null: 0
Return-error: 0
Description::
RX rate of client
::
Parameters::
dev wlan0 ''
mac '' ''
::
Cmd: wifi_client_rxrate $dev $mac
/Item
Item client_txrate:
Return: int
Return-null: 0
Return-error: 0
Description::
TX rate of client
::
Parameters::
dev wlan0 ''
mac '' ''
::
Cmd: wifi_client_txrate $dev $mac
/Item
Item neigh_ssid:
Description::
SSID of neighbour
::
Parameters: dev mac
Cmd: wifi_neigh_ssid $dev $mac
/Item
Item neigh_signal:
Return: int
Return-null: -200
Return-error: -199
Description::
Signal level of neighbour
::
Parameters::
dev wlan0 ''
mac '' ''
::
Cmd: wifi_neigh_signal $dev $mac
/Item
Item neigh_channel:
Return: int
Return-null: -1
Return-error: -2
Description::
Channel of neighbour
::
Parameters: dev mac
Cmd: wifi_neigh_channel $dev $mac
/Item
Item channel_noise:
Return: int
Return-null: -200
Return-error: -199
Description::
Noise level on channel
::
Parameters::
dev wlan0 ''
channel '' ''
::
Cmd: wifi_channel_noise $dev $channel
/Item
Item channel_activetime:
Return: int
Return-null: 0
Return-error: -1
Description::
Time spend as active on channel
::
Parameters::
dev wlan0 ''
channel '' ''
::
Cmd: wifi_channel_activetime $dev $channel
/Item
Item channel_busytime:
Return: int
Return-null: 0
Return-error: -1
Description::
Time spend as busy on channel
::
Parameters::
dev wlan0 ''
channel '' ''
::
Cmd: wifi_channel_busytime $dev $channel
/Item
Item channel_txtime:
Return: int
Return-null: 0
Return-error: -1
Description::
Time spend as TX on channel
::
Parameters::
dev wlan0 ''
channel '' ''
::
Cmd: wifi_channel_transmittime $1 $2
/Item
Item channel_rxtime:
Return: int
Return-null: 0
Return-error: -1
Description::
Time spend as RX on channel
::
Parameters::
dev wlan0 ''
channel '' ''
::
Cmd: wifi_channel_receivetime $dev $channel
/Item