From 06675df1b7bc4805ab822702017a07ff79a27599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E9=BE=99=E5=A4=A9?= Date: Tue, 3 Oct 2017 13:36:06 +0800 Subject: [PATCH] modify the profile add default params to the __init__() --- pywifi/profile.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pywifi/profile.py b/pywifi/profile.py index e30c30c..4c383b1 100755 --- a/pywifi/profile.py +++ b/pywifi/profile.py @@ -8,14 +8,14 @@ class Profile(): - def __init__(self): - - self.auth = AUTH_ALG_OPEN - self.akm = [AKM_TYPE_NONE] - self.cipher = CIPHER_TYPE_NONE - self.ssid = None - self.bssid = None - self.key = None + def __init__(self, auth=AUTH_ALG_OPEN, akm=[AKM_TYPE_NONE], cipher=CIPHER_TYPE_NONE, ssid=None, bssid=None, key=None): + + self.auth = auth + self.akm = akm + self.cipher = cipher + self.ssid = ssid + self.bssid = bssid + self.key = key def process_akm(self):