Public Member Functions | Public Attributes
multi_interface_roam.pythonwifi.iwlibs.WirelessInfo Class Reference
Inheritance diagram for multi_interface_roam.pythonwifi.iwlibs.WirelessInfo:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getAPaddr
def getBitrate
def getBitrates
def getFragmentation
def getPower
def getRetry
def getRTS
def getSensitivity
def getTXPower

Public Attributes

 auth_cipher_group
 auth_cipher_pairwise
 auth_key_mgmt
 has_auth_cipher_group
 has_auth_cipher_pairwise
 has_auth_key_mgmt
 ifname
 iwstruct
 nickname
 range
 sockfd
 stats

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.


Constructor & Destructor Documentation

Reimplemented from multi_interface_roam.pythonwifi.iwlibs.WirelessConfig.

Definition at line 811 of file iwlibs.py.


Member Function Documentation

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.

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.

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.

Returns the fragmentation threshold.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getFragmentation()
    'off'

Definition at line 910 of file iwlibs.py.

Returns the power management settings.

    #>>> from iwlibs import Wireless
    #>>> wifi = Wireless('eth1')
    #>>> wifi.getPowermanagement()
    #'off'

Definition at line 921 of file iwlibs.py.

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.

Returns the RTS threshold.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getRTS()
    'off'

Definition at line 899 of file iwlibs.py.

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.

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

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Reimplemented from multi_interface_roam.pythonwifi.iwlibs.WirelessConfig.

Definition at line 811 of file iwlibs.py.

Reimplemented from multi_interface_roam.pythonwifi.iwlibs.WirelessConfig.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.

Reimplemented from multi_interface_roam.pythonwifi.iwlibs.WirelessConfig.

Definition at line 811 of file iwlibs.py.

Definition at line 811 of file iwlibs.py.


The documentation for this class was generated from the following file:


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:18