1
0
mirror of https://github.com/gryf/wicd.git synced 2026-04-05 04:13:37 +02:00

Implement WEP key index specification

This commit is contained in:
David Paleino
2012-05-04 19:39:04 +02:00
parent bca11618be
commit 63460113b8
8 changed files with 45 additions and 26 deletions

View File

@@ -1069,7 +1069,11 @@ class WirelessDaemon(dbus.service.Object):
print 'Setting script properties through the daemon' \
+ ' is not permitted.'
return False
self.LastScan[netid][prop] = misc.to_unicode(misc.Noneify(value))
# whitelist some props that need different handling
if prop in ('key_index', ):
self.LastScan[netid][prop] = misc.to_unicode(misc.Noneify(value, False))
else:
self.LastScan[netid][prop] = misc.to_unicode(misc.Noneify(value))
@dbus.service.method('org.wicd.daemon.wireless')
def DetectWirelessInterface(self):