multi_interface_roam::pythonwifi::iwlibs::WirelessInfo Class Reference
List of all members.
Detailed Description
Low level access to wireless extensions on a device. This class
is the exhaustive list of information for a card.
WirelessInfo implements the wireless_info struct in iwlib.h.
This class should be used by those needing lower-level access
than Wireless provides.
Definition at line 801 of file iwlibs.py.
Member Function Documentation
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::__init__ |
( |
|
self, |
|
|
|
ifname | |
|
) |
| | |
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getAPaddr |
( |
|
self |
) |
|
Returns the access point MAC address.
>>> from iwlibs import Wireless, getNICnames
>>> ifnames = getNICnames()
>>> ifnames
['eth1', 'wifi0']
>>> wifi = Wireless(ifnames[0])
>>> wifi.getAPaddr()
'00:0D:88:8E:4E:93'
Test with non-wifi card:
>>> wifi = Wireless('eth0')
>>> wifi.getAPaddr()
(95, 'Operation not supported')
Test with non-existant card:
>>> wifi = Wireless('eth2')
>>> wifi.getAPaddr()
(19, 'No such device')
Definition at line 849 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getBitrate |
( |
|
self |
) |
|
Returns the device's currently set bit rate.
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getBitrate()
'11 Mb/s'
Definition at line 879 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getBitrates |
( |
|
self |
) |
|
Returns the device's number and list of available bit rates.
The bit rates in the list are long integer type.
Definition at line 890 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getFragmentation |
( |
|
self |
) |
|
Returns the fragmentation threshold.
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getFragmentation()
'off'
Definition at line 910 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getPower |
( |
|
self |
) |
|
Returns the power management settings.
#>>> from iwlibs import Wireless
#>>> wifi = Wireless('eth1')
#>>> wifi.getPowermanagement()
#'off'
Definition at line 921 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getRetry |
( |
|
self |
) |
|
Returns the retry/lifetime limit.
man iwconfig:
"Most cards have MAC retransmissions, and some allow to set
the behaviour of the retry mechanism."
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getRetrylimit()
16
Definition at line 943 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getRTS |
( |
|
self |
) |
|
Returns the RTS threshold.
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getRTS()
'off'
Definition at line 899 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getSensitivity |
( |
|
self |
) |
|
Returns sensitivity information.
man iwconfig:
"This is the lowest signal level for which the hardware
attempt packet reception, signals weaker than this are
ignored. This is used to avoid receiving background noise,
so you should set it according to the average noise
level. Positive values are assumed to be the raw value used
by the hardware or a percentage, negative values are
assumed to be dBm."
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getSensitivity()
'off'
Definition at line 829 of file iwlibs.py.
def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::getTXPower |
( |
|
self |
) |
|
Returns the transmit power in dBm.
>>> from iwlibs import Wireless
>>> wifi = Wireless('eth1')
>>> wifi.getTXPower()
'17 dBm'
Definition at line 932 of file iwlibs.py.
Member Data Documentation
The documentation for this class was generated from the following file: