set_radio_channel
Change an AP's 2.4GHz or 5GHz radio channel, previewing before/after values and applying only after confirmation to prevent client disconnects.
Instructions
Set an AP's 2.4GHz ("2g") or 5GHz ("5g") radio channel.
WRITE tool, guarded: blocked entirely unless the server is running with OMADA_ALLOW_WRITE=true. Call with confirm=False (the default) to get a before/after preview (channel + freq) without changing anything; call again with confirm=True to actually apply it.
applied=True is only ever returned once a post-write re-read
confirms the change (comparing freq, the one reliable round-trip
value) - a bare "the controller said Success" is never trusted on
its own. If the controller accepted the write but the re-read shows
no change, applied=False and message explains why - see
guard.set_radio_channel's docstring and docs/api-notes.md. Every
call also carries a warning: changing a channel restarts the
radio (clients on that band briefly disconnect and reassociate),
plus, on 5GHz, the confirmed channel-persists-as-internal-index
caveat.
Legacy auth only. channel is the operator-facing channel number
(e.g. 11 on 2.4GHz, 149 on 5GHz) - this tool always derives the
matching frequency itself (channels.py) and resends the complete
current radio configuration with only channel/freq changed, so the
confirmed real-hardware silent-discard gotcha (int channel, or a
missing freq) can't be hit by construction - see docs/api-notes.md.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mac | Yes | ||
| band | Yes | ||
| channel | Yes | ||
| confirm | No | ||
| site_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||