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.


Member Function Documentation

def multi_interface_roam::pythonwifi::iwlibs::WirelessInfo::__init__ (   self,
  ifname 
)

Reimplemented from multi_interface_roam::pythonwifi::iwlibs::WirelessConfig.

Definition at line 811 of file iwlibs.py.

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

Definition at line 825 of file iwlibs.py.

Definition at line 823 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 826 of file iwlibs.py.

Definition at line 824 of file iwlibs.py.

Definition at line 822 of file iwlibs.py.

Reimplemented from multi_interface_roam::pythonwifi::iwlibs::WirelessConfig.

Definition at line 813 of file iwlibs.py.

Reimplemented from multi_interface_roam::pythonwifi::iwlibs::WirelessConfig.

Definition at line 814 of file iwlibs.py.

Definition at line 816 of file iwlibs.py.

Definition at line 819 of file iwlibs.py.

Reimplemented from multi_interface_roam::pythonwifi::iwlibs::WirelessConfig.

Definition at line 812 of file iwlibs.py.

Definition at line 818 of file iwlibs.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Properties Friends Defines


multi_interface_roam
Author(s): Blaise Gassend
autogenerated on Fri Jan 11 09:52:36 2013