Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion pywifi/_wifiutil_linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,14 @@ def network_profiles(self, obj):
continue
else:
network.ssid = ssid[1:-1]

disabled = self._send_cmd_to_wpas(
obj['name'],
'GET_NETWORK {} disabled'.format(network_id), True)
if ssid.upper().startswith('FAIL'):
continue
else:
network.disabled = int(disabled)

key_mgmt = self._send_cmd_to_wpas(
obj['name'],
Expand Down Expand Up @@ -235,7 +243,7 @@ def network_profiles(self, obj):
else:
# Assume the possible ciphers TKIP and CCMP
if len(ciphers) == 1:
network.cipher = cipher_str_to_value(ciphers[0].upper())
network.cipher = cipher_str_to_value[ciphers[0].upper()]
elif 'CCMP' in ciphers:
network.cipher = CIPHER_TYPE_CCMP

Expand Down
1 change: 1 addition & 0 deletions pywifi/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def __init__(self):
self.ssid = None
self.bssid = None
self.key = None
self.disabled = 0

def process_akm(self):

Expand Down