File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,9 @@ final class StatusMenu: NSMenu, NSMenuDelegate {
494
494
var entity : NetworkInfoStorageEntity ?
495
495
var hideDisconnect = true
496
496
if self . status == ITL80211_S_RUN && get_station_info ( & staInfo) == KERN_SUCCESS {
497
+ #if !DEBUG
497
498
entity = CredentialsManager . instance. getStorageFromSsid ( String ( cString: & staInfo. ssid. 0 ) )
499
+ #endif
498
500
hideDisconnect = entity? . autoJoin ?? false
499
501
self . isNetworkConnected = true
500
502
let bsd = String ( self . bsdItem. title) . replacingOccurrences ( of: String . interfaceName, with: " " ,
Original file line number Diff line number Diff line change @@ -256,7 +256,7 @@ final class NetworkManager {
256
256
257
257
class func getSecurityType( _ info: ioctl_network_info ) -> itl80211_security {
258
258
if info. supported_rsnprotos & ITL80211_PROTO_RSN . rawValue != 0 {
259
- //wpa2
259
+ // WPA2
260
260
if info. rsn_akms & ITL80211_AKM_8021X . rawValue != 0 {
261
261
if info. supported_rsnprotos & ITL80211_PROTO_WPA . rawValue != 0 {
262
262
return ITL80211_SECURITY_WPA_ENTERPRISE_MIXED
@@ -273,7 +273,7 @@ final class NetworkManager {
273
273
return ITL80211_SECURITY_PERSONAL
274
274
}
275
275
} else if info. supported_rsnprotos & ITL80211_PROTO_WPA . rawValue != 0 {
276
- //wpa
276
+ // WPA
277
277
if info. rsn_akms & ITL80211_AKM_8021X . rawValue != 0 {
278
278
return ITL80211_SECURITY_WPA_ENTERPRISE
279
279
} else if info. rsn_akms & ITL80211_AKM_PSK . rawValue != 0 {
@@ -286,7 +286,6 @@ final class NetworkManager {
286
286
} else if info. supported_rsnprotos == 0 {
287
287
return ITL80211_SECURITY_NONE
288
288
}
289
- //TODO wpa3
290
289
return ITL80211_SECURITY_UNKNOWN
291
290
}
292
291
}
You can’t perform that action at this time.
0 commit comments