' ' for 'no'
'!' for ad-hoc network
'*' for 'yes'
'?' for 'some security we probably cannot handle
return
l = [('none','green')]
for i in self.scanlist:
+ strength =self.scanlist[i][0]
+ sec = self.scanlist[i][1]
+ if sec == "[ESS]":
+ t=' '
+ elif sec == "[IBSS]":
+ t='!'
+ elif ('[WPA-PSK' in sec or '[WPA2-PSK' in sec
+ or '[WEP]' in sec):
+ t='*'
+ else:
+ t='?'
if i in self.netlist:
- l.append((i, 'blue'))
+ l.append((t+i, 'blue'))
else:
- l.append((i, 'black'))
+ l.append((t+i, 'black'))
for i in self.netlist:
if i not in self.scanlist:
l.append((i, 'red'))