Public Member Functions | Public Attributes
rocon_python_wifi.iwlibs.WirelessConfig Class Reference
Inheritance diagram for rocon_python_wifi.iwlibs.WirelessConfig:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getEncryption
def getEssid
def getFrequency
def getKey
def getMode
def getWirelessName

Public Attributes

 freq_flags
 ifname
 iwstruct
 sockfd

Detailed Description

Low level access to wireless information on a device.  This class
    contains only those things absolutely needed to configure a card.

    WirelessConfig implements the wireless_config struct in iwlib.h.
    It will probably never be called directly, but instead be used via
    WirelessInfo.

Definition at line 694 of file iwlibs.py.


Constructor & Destructor Documentation

Reimplemented in rocon_python_wifi.iwlibs.WirelessInfo.

Definition at line 704 of file iwlibs.py.


Member Function Documentation

Returns the encryption status.

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

Definition at line 724 of file iwlibs.py.

Returns the current ESSID information.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getEssid()
    'romanofski'

Definition at line 779 of file iwlibs.py.

Returns currently set frequency of the card.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getFrequency()
    '2.417 GHz'

Definition at line 743 of file iwlibs.py.

def rocon_python_wifi.iwlibs.WirelessConfig.getKey (   self,
  key = 0 
)
Get an encryption key.

    key 0 is current key, otherwise, retrieve specific key (1-4)

    As a normal user, you will get an 'Operation not permitted'
    error:

    >>> from iwlibs import Wireless
    >>> wifi_conf = WirelessConfig('eth1')
    >>> isinstance(wifi_conf.getKey(), Iwpoint)
    True

Definition at line 756 of file iwlibs.py.

Returns currently set operation mode.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getMode()
    'Managed'

Definition at line 797 of file iwlibs.py.

Returns the wireless name.

    >>> from iwlibs import Wireless
    >>> wifi = Wireless('eth1')
    >>> wifi.getWirelessName()
    'IEEE 802.11-DS'

Definition at line 711 of file iwlibs.py.


Member Data Documentation

Definition at line 704 of file iwlibs.py.

Reimplemented in rocon_python_wifi.iwlibs.WirelessInfo.

Definition at line 704 of file iwlibs.py.

Reimplemented in rocon_python_wifi.iwlibs.WirelessInfo.

Definition at line 704 of file iwlibs.py.

Reimplemented in rocon_python_wifi.iwlibs.WirelessInfo.

Definition at line 704 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