netlink.nl80211.wiphyModule
Wireless PHY (wiphy) listing.
An nl80211 object over the"nl80211"
generic netlink family: create an instance with netlink.nl80211.wiphy()
and list the radios; the underlying socket is closed by close() (or the
to-be-closed __close). All methods block and require a sleepable runtime.
See also
Class wiphy
| wiphy:__call ([pid]) | Opens a session, calling the class: netlink.nl80211.wiphy([pid]). |
| wiphy:list ([opts]) | Lists the wireless PHYs (wiphys) known to the kernel. |
| wiphy:new ([o]) | Wraps a table in the class, or derives a class from it. |
Class wiphy in detail
- wiphy:__call ([pid])
-
Opens a session, calling the class:
netlink.nl80211.wiphy([pid]).Parameters
- pid integer a task whose network namespace the object reaches, which holds the wiphys and interfaces nl80211 answers for; the initial network namespace when absent. (optional)
Returns
-
wiphy
a new wiphy object;
niland"ESRCH"if no task has that pid, or the task has exited.Raises
EOPNOTSUPPon a kernel whose sockets cannot hold a namespace of their own, orENOENTwhen the nl80211 family is not registered.See also
- wiphy:list ([opts])
-
Lists the wireless PHYs (wiphys) known to the kernel.
Parameters
- opts table list options, of which a wiphy takes none. (optional)
Returns
-
table
list of
{wiphy, name}tables, in wiphy index order. - wiphy:new ([o])
-
Wraps a table in the class, or derives a class from it. It opens no socket: calling the class
does,
netlink.nl80211.wiphy().Parameters
- o table an initial object table. (optional)
Returns
-
wiphy
the wrapped table or the derived class.
See also