Module netlink.nl80211.station

Station management.

An nl80211 object over the "nl80211" generic netlink family: create an instance with netlink.nl80211.station() then add, delete, authorize and list the stations of an AP 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 station

station:add (opts) Adds a station to an AP interface.
station:del (opts) Removes a station from an AP interface.
station:list (ifindex) Lists the stations of an AP interface.
station:new ([o]) Creates a new station object.
station:set (opts) Sets a station's authorized state, opening or closing its controlled port.


Class station

station:add (opts)
Adds a station to an AP interface.

Parameters:

  • opts table station parameters: ifindex, mac, aid, listen_interval and supported_rates (raw rate bytes).

Raises:

on a netlink error.
station:del (opts)
Removes a station from an AP interface.

Parameters:

  • opts table station parameters: ifindex and mac.

Raises:

on a netlink error.
station:list (ifindex)
Lists the stations of an AP interface.

Parameters:

  • ifindex integer the AP interface index.

Returns:

    table list of {mac} tables.
station:new ([o])
Creates a new station object.

Parameters:

  • o table an initial object table. (optional)

Returns:

    station the new station object.

See also:

station:set (opts)
Sets a station's authorized state, opening or closing its controlled port.

Parameters:

  • opts table station parameters: ifindex, mac and authorized.

Raises:

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