1
0
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:
David Paleino
2012-01-15 15:21:16 +01:00
parent 8248152cfb
commit c87b3b8871

View File

@@ -1252,6 +1252,11 @@ class BaseWirelessInterface(BaseInterface):
print 'Unicode problem with current network essid, ignoring!!' print 'Unicode problem with current network essid, ignoring!!'
return None 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]: if ap['essid'] in ['Hidden', '<hidden>', "", None]:
print 'hidden' print 'hidden'
ap['hidden'] = True ap['hidden'] = True