set_wireless_tuning
Tune a wireless interface's adaptive noise immunity or distance to fix poor CCQ. Preview before/after, then confirm; numeric distance arms a dead-man restore.
Instructions
Set a /interface/wireless interface's adaptive_noise_immunity
("none"/"client-mode"/"ap-and-client-mode") and/or distance
("dynamic"/"indoors"/an integer number of km). At least one must be
given.
adaptive_noise_immunity alone is reception-only tuning - CONFIRMED
SAFE against real hardware today (does not drop an already-
associated link), never arms a dead-man. CONFIRMED TODAY: with good
signal but poor CCQ (interference, not distance),
adaptive_noise_immunity="ap-and-client-mode" measurably helped.
A NUMERIC distance (unlike the named "dynamic"/"indoors" modes)
directly changes the ACK-timeout/TDMA timing - LOCKOUT-RISK,
CONFIRMED LIVE it can silently drop an already-associated link on a
mismatch (e.g. too short for the real link length). By default
(arm_deadman=True), a numeric distance arms a dead-man
(arm_dead_man) that restores the interface's prior distance
after deadman_minutes (1-60, default 3) unless cancelled - same
mechanism as set_wireless_channel/set_wireless_tx_power. For a
long verified PtP link, an explicit distance (e.g. 9 for ~9km)
gave a better ACK timeout than leaving it on "dynamic".
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a before/after preview (including the LOCKOUT-RISK
warning for a numeric distance, without arming anything) without
changing anything; call again with confirm=True to actually apply
it. Errors if interface_name doesn't exist on /interface/wireless
never creates one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| distance | No | ||
| arm_deadman | No | ||
| device_name | Yes | ||
| interface_name | Yes | ||
| deadman_minutes | No | ||
| adaptive_noise_immunity | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||