Module netlink.nl80211.ap

Access Point control.

An nl80211 object over the "nl80211" generic netlink family: create an instance with netlink.nl80211.ap() then start and stop beaconing on an AP-mode interface; the underlying socket is closed by close() (or the to-be-closed __close). All methods block and require a sleepable runtime.

See also:

Class ap

ap:new ([o]) Creates a new ap object.
ap:start (opts) Starts beaconing on an AP-mode interface (which must already be up).
ap:stop (opts) Stops beaconing on an AP-mode interface.


Class ap

ap:new ([o])
Creates a new ap object.

Parameters:

  • o table an initial object table. (optional)

Returns:

    ap the new ap object.

See also:

ap:start (opts)
Starts beaconing on an AP-mode interface (which must already be up).

Parameters:

  • opts table AP parameters: ifindex (an AP interface), freq (channel frequency in MHz), beacon_interval, dtim and head (the raw beacon frame up to the TIM element); optional ssid and tail (the raw beacon frame after the TIM).

Raises:

on a netlink error (e.g. the interface is not an AP, is down, or the beacon or channel is rejected).
ap:stop (opts)
Stops beaconing on an AP-mode interface.

Parameters:

  • opts table AP parameters: ifindex.

Raises:

on a netlink error.
generated by LDoc 1.5.0 Last updated 2026-09-05 12:27:44