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 |
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.
def rocon_python_wifi.iwlibs.WirelessInfo.__init__ | ( | self, | |
ifname | |||
) |
Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.
def rocon_python_wifi.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')
def rocon_python_wifi.iwlibs.WirelessInfo.getBitrate | ( | self | ) |
def rocon_python_wifi.iwlibs.WirelessInfo.getPower | ( | self | ) |
def rocon_python_wifi.iwlibs.WirelessInfo.getRetry | ( | self | ) |
def rocon_python_wifi.iwlibs.WirelessInfo.getRTS | ( | 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'
def rocon_python_wifi.iwlibs.WirelessInfo.getTXPower | ( | self | ) |
Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.
Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.
Reimplemented from rocon_python_wifi.iwlibs.WirelessConfig.