joshvillbrandt / wireless

A dead simple, cross-platform Python library to connect to wireless networks.
https://pypi.org/project/wireless/
Apache License 2.0
83 stars 42 forks source link

Wireless().current() includes Nickname string #10

Closed jminardi closed 7 years ago

jminardi commented 8 years ago

I am running the wireless packages on Raspbian Jessie and see the following results:

>>> wireless.Wireless().current()
u'MySSID  Nickname:<WIFI@REALTEK>'

This is because iwconfig returns a Nickname key:

pi@raspberrypi:~ $ iwconfig wlan0
wlan0     IEEE 802.11AC  ESSID:"MySSID"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:5.18 GHz  Access Point: 8A:15:14:6E:55:E7   
          Bit Rate:867 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=100/100  Signal level=95/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

I am working on a PR to fix this