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_intervalandsupported_rates(raw rate bytes).
Raises:
on a netlink error. - opts
table
station parameters:
- station:del (opts)
-
Removes a station from an AP interface.
Parameters:
- opts
table
station parameters:
ifindexandmac.
Raises:
on a netlink error. - opts
table
station parameters:
- 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,macandauthorized.
Raises:
on a netlink error. - opts
table
station parameters: