mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 12:58:07 +01:00
A hopefully better attempt at ESSIDs with '\x00' in them
This commit is contained in:
@@ -1252,6 +1252,11 @@ class BaseWirelessInterface(BaseInterface):
|
||||
print 'Unicode problem with current network essid, ignoring!!'
|
||||
return None
|
||||
|
||||
# We (well, DBus) don't support ESSIDs with null bytes in it.
|
||||
# From some bugreports, it seems like some APs transmit the "hidden"
|
||||
# essid as NULL bytes. Let's strip them off.
|
||||
ap['essid'].replace('\x00', '')
|
||||
|
||||
if ap['essid'] in ['Hidden', '<hidden>', "", None]:
|
||||
print 'hidden'
|
||||
ap['hidden'] = True
|
||||
|
||||
Reference in New Issue
Block a user