Public Member Functions | Public Attributes
rocon_python_wifi.iwlibs.WirelessInfo Class Reference
Inheritance diagram for rocon_python_wifi.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 811 of file iwlibs.py.


Constructor & Destructor Documentation

def rocon_python_wifi.iwlibs.WirelessInfo.__init__ (   self,
  ifname 
)

Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.

Definition at line 821 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 859 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 889 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 900 of file iwlibs.py.

Returns the fragmentation threshold.

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

Definition at line 920 of file iwlibs.py.

Returns the power management settings.

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

Definition at line 931 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 953 of file iwlibs.py.

Returns the RTS threshold.

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

Definition at line 909 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 839 of file iwlibs.py.

Returns the transmit power in dBm.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getTXPower()
    '17 dBm'

Definition at line 942 of file iwlibs.py.


Member Data Documentation

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.

Definition at line 821 of file iwlibs.py.

Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.

Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.

Definition at line 821 of file iwlibs.py.

Definition at line 821 of file iwlibs.py.


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


rocon_python_wifi
Author(s): RĂ³man Joost, Sean Robinson
autogenerated on Fri May 2 2014 10:35:45