Mac OS X: bash脚本实现添加无线SSID(Update2009-10-09)

这是一个用于MacOSX系统的Shell脚本,能够自动添加无线网络SSID及其配置信息到系统偏好设置中,并将相关信息存入系统密钥链。该脚本适用于企业环境中批量部署无线网络设置。

Mac OS X: shell程序实现添加无线SSID


2009-10-08:

一个基本的实现脚本, 没有重复/删除/错误检查等处理:

yourSSID="TEST" yourPWD="TEST" SecurityType="WEP" WEPOpenSystem=true networkUUID=`uuidgen` pwdUUID=`uuidgen` cTime=`date "+%a %b %e %H:%M:%S %Z %Y"` function addSSID_Airport_Pref { # plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "print KnownNetworks" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID dict" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:SecurityType string $SecurityType" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:SSID_STR string $yourSSID" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:'Unique Password ID' string $pwdUUID" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:'Remembered channels' array {0 integer 1}" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:_timeStamp date $cTime" sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "add KnownNetworks:$networkUUID:WEPOpenSystem bool $WEPOpenSystem" # sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "print KnownNetworks:$networkUUID" } function addPWD_SystemKeychain { # default_keychain = `security default-keychain` security default-keychain -s /Library/Keychain/System.keychain sudo security add-generic-password -a "$yourSSID" -D "AirPort network password" -s "$pwdUUID" -l "$yourSSID" -w "$yourPWD" -j "wireless_setup_v1.0" -A -U # security default-keychain -s $default_keychain security default-keychain -s "" } function addLocation { currentSet=`plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "print CurrentSet"` # currentSet=${currentSet:6} currentSet=${currentSet/////":"} # plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "print $currentSet:Network:Interface:en1:AirPort:PreferredNetworks" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "add $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0 dict" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "add $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0:SSID_STR string $yourSSID" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "add $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0:SecurityType string 'WEP'" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "add $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0:'Unique Newtork ID' string $networkUUID" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "add $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0:'Unique Password ID' string $pwdUUID" sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "set $currentSet:Network:Interface:en1:AirPort:RequireAdmin bool No" # plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "print $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0" } function CleanAll { # 1. Delete from preferences.plist currentSet=`plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "print CurrentSet"` currentSet=${AA/////":"} sudo plistbuddy /Library/Preferences/SystemConfiguration/preferences.plist -c "delete $currentSet:Network:Interface:en1:AirPort:PreferredNetworks:0" #2. Delete Airport_Pref sudo plistbuddy /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist -c "delete KnownNetworks:$networkUUID" #3. Delete Keychain security default-keychain -s /Library/Keychain/System.keychain sudo security add-generic-password -a "$yourSSID" -D "AirPort network password" -s "$pwdUUID" -l "$yourSSID" -w "$yourPWD" -j "wireless_setup_v1.0" -A -U security default-keychain -s "" } ln -f /usr/libexec/PlistBuddy /usr/sbin/plistbuddy addSSID_Airport_Pref addPWD_SystemKeychain addLocation logger "Wireless addition finished successfully."


2009-10-07

这个bash脚本用于企业内部规模部署的时候,无须为了添加无线网络到系统核心影像文件中而设计。

正在编写,成功可能性还是有的, 基本条件已经具备了.

09-23 07:58:39.836 1052 1052 I wpa_supplicant: wlan0: PMKSA-CACHE-ADDED 24:5a:5f:d0:e6:e4 0 09-23 07:58:39.836 616 635 I EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: true 09-23 07:58:39.836 428 428 I netd : interfaceGetCfg(wlan0) -> {InterfaceConfigurationParcel{ifName: wlan0, hwAddr: 40:d9:5a:74:c2:22, ipv4Addr: 0.0.0.0, prefixLength: 0, flags: [up, broadcast, multicast]}} <0.21ms> 09-23 07:58:42.578 4589 4589 W : [dhd] [wlan0] wl_ext_iapsta_link : connect failed event=0, reason=0, status=1 09-23 07:58:39.869 616 635 I EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: true 09-23 07:58:42.578 9747 9747 W : [dhd] [wlan0] wl_handle_assoc_fail : assoc fail Reason: WLC_E_SET_SSID from 00:00:00:00:00:00 09-23 07:58:39.869 428 428 I netd : interfaceGetCfg(wlan0) -> {InterfaceConfigurationParcel{ifName: wlan0, hwAddr: 40:d9:5a:74:c2:22, ipv4Addr: 0.0.0.0, prefixLength: 0, flags: [up, broadcast, multicast]}} <0.29ms> 09-23 07:58:42.579 9747 9747 W : [dhd] [wlan0] wl_bss_connect_done : Report connect result - connection failed 09-23 07:58:42.579 9747 9747 W : [dhd] [wlan0] IAPSTA-ERROR) wl_ext_in4way_sync_sta : connect failed at 5 09-23 07:58:39.870 616 635 I EthernetTracker: interfaceLinkStateChanged, iface: wlan0, up: true 09-23 07:58:42.580 4589 4589 W : [dhd] [wlan0] wl_iw_event : [0 times] disconnected with 00:00:00:00:00:00, event 11, reason 8 09-23 07:58:42.580 4589 4589 W : [dhd] [wlan0] wl_ext_iapsta_link : [S] Link down with 00:00:00:00:00:00, WLC_E_DISASSOC(11), reason 8 09-23 07:58:39.871 1052 1052 I wpa_supplicant: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=24:5a:5f:d0:e6:e4 status_code=1 09-23 07:58:39.871 428 428 I netd : interfaceGetCfg(wlan0) -> {InterfaceConfigurationParcel{ifName: wlan0, hwAddr: 40:d9:5a:74:c2:22, ipv4Addr: 0.0.0.0, prefixLength: 0, flags: [up, broadcast, multicast]}} <0.42ms> 09-23 07:58:39.872 1052 1052 I wpa_supplicant: wlan0: PMKSA-CACHE-REMOVED 24:5a:5f:d0:e6:e4 0 09-23 07:58:39.872 616 1036 D SupplicantStaIfaceCallbackImpl: flush PMK cache due to association rejection for config id 0. 09-23 07:58:39.873 616 718 D WifiClientModeImpl[wlan0]: L2ConnectingState: Authentication failure reason=2 error=-1 09-23 07:58:39.873 453 453 D WifiHAL : Start debug command 09-23 07:58:39.877 616 718 W LastMileLogger: Failed to stop event tracing: /sys/kernel/debug/tracing/instances/wifi/tracing_on: open failed: ENOENT (No such file or directory) 09-23 07:58:39.877 616 718 W LastMileLogger: Failed to read event trace: /sys/kernel/debug/tracing/instances/wifi/trace 09-23 07:58:39.878 453 453 D WifiHAL : Start get packet fate command 09-23 07:58:39.878 453 453 D WifiHAL : createRequest Get Tx packet fate request 09-23 07:58:39.878 453 453 D WifiHAL : In GetPktFateCommand::handleResponse 09-23 07:58:39.878 453 453 I WifiHAL : Id = 0, subcmd = 0, len = 8 09-23 07:58:39.878 453 453 I WifiHAL : Response recieved for get TX pkt fate command 09-23 07:58:39.878 453 453 I WifiHAL : No: of pkt fates provided is 0 09-23 07:58:39.879 453 453 D WifiHAL : Start get packet fate command 09-23 07:58:39.879 453 453 D WifiHAL : createRequest Get Rx packet fate request 09-23 07:58:39.879 453 453 D WifiHAL : In GetPktFateCommand::handleResponse 09-23 07:58:39.879 453 453 I WifiHAL : Id = 0, subcmd = 0, len = 8 09-23 07:58:39.879 453 453 I WifiHAL : Response recieved for get RX pkt fate command 09-23 07:58:39.879 453 453 I WifiHAL : No: of pkt fates provided is 0 09-23 07:58:42.589 453 453 W [dhd] dhd_dbg_monitor_get_tx_pkts(): no tx_status in tx completion messages, make sure that 'd11status' is enabled in firmware, status_pos=0 09-23 07:58:39.880 616 718 E WifiVendorHal: stopRssiMonitoring(l.2617) failed {.code = ERROR_NOT_AVAILABLE, .description = } 09-23 07:58:42.593 1052 1052 W [dhd] wl_android_priv_cmd: Android private cmd "BTCOEXMODE 2" on wlan0 09-23 07:58:39.882 616 718 D WifiCountryCode: evaluateAllCmmStateAndApplyIfAllReady: {ConcreteClientModeManager{id=10189 iface=wlan0 role=ROLE_CLIENT_PRIMARY}=true} 09-23 07:58:39.882 616 718 D WifiCountryCode: Reading country code from telephony 09-23 07:58:39.884 3324 3324 D BaseReceiver: onReceive: android.net.wifi.STATE_CHANGE 09-23 07:58:39.884 3324 3324 D WiFiStateChangeReceiver: onReceive: android.net.wifi.STATE_CHANGE 09-23 07:58:39.885 3324 3324 D WiFiStateChangeReceiver: onReceive: network changed action 09-23 07:58:39.885 3324 3324 D WiFiStateChangeReceiver: onReceive: detailedState = DISCONNECTED 09-23 07:58:39.885 3324 3324 D WiFiStateChangeReceiver: onReceive: new n/w = null, status = DISCONNECTED 09-23 07:58:39.885 3324 3422 D PersistentLogger: flush: called 09-23 07:58:39.885 616 718 D WifiCountryCode: Set telephony country code to: 09-23 07:58:39.885 3324 3466 D BaseProvisioningWifiListFragment: onDetailedStateChange: oldValue: CONNECTING newValue: DISCONNECTED 09-23 07:58:39.885 3324 3324 D BaseProvisioningWifiListFragment: onDetailedStateChange: Failed to add/connect to network 09-23 07:58:39.885 616 718 D WifiCountryCode: updateCountryCode to null 09-23 07:58:39.886 616 718 I WifiClientModeImpl[wlan0]: disconnectedstate enter 09-23 07:58:39.886 616 718 E WifiScoringParams: Invalid frequency(-1), using 5G as default rssi array 09-23 07:58:39.887 616 718 E SupplicantStateTracker[wlan0]: Ignoring { when=-15ms what=147499 obj= ssid: "pinzhi-wifi6_5G" bssid: 24:5a:5f:d0:e6:e4 statusCode: 1 timedOut: false oceRssiBasedAssocRejectInfo: null mboAssocDisallowedInfo: null target=com.android.wifi.x.com.android.internal.util.StateMachine$SmHandler } 09-23 07:58:42.602 304 304 I logd : logdr: UID=1000 GID=1000 PID=10633 n tail=127 logMask=19 pid=0 start=0ns deadline=0ns 09-23 07:58:42.606 534 534 W : [dhd] [wlan0] wl_run_escan : LEGACY_SCAN sync ID: 1490, bssidx: 0 09-23 07:58:42.606 0 0 W : [ C0] [dhd] dhd_update_interface_flow_info: ifindex:0 previous role:0 new role:0 09-23 07:58:42.716 304 304 I logd : logdr: UID=1000 GID=1000 PID=10635 n tail=127 logMask=80 pid=0 start=0ns deadline=0ns 09-23 07:58:44.157 616 762 D WifiNl80211Manager: Scan result ready event 09-23 07:58:44.157 616 762 D WifiNative: Scan result ready event 09-23 07:58:44.176 616 723 D WificondScannerImpl: Filtering out 33 scan results. 09-23 07:58:44.183 3324 3324 D BaseReceiver: onReceive: android.net.wifi.SCAN_RESULTS 09-23 07:58:44.183 3324 3324 D WiFiScanReceiver: onReceive: android.net.wifi.SCAN_RESULTS 09-23 07:58:46.902 453 453 W : [dhd] CFG80211-ERROR) wl_cfgvendor_lstats_get_info : bssload_report is unsupported 09-23 07:58:44.200 616 718 D WifiScoreReport: setShouldReduceNetworkScore=false mNetworkAgent is null? true 09-23 07:58:44.200 616 718 D WifiClientModeImpl[wlan0]: CMD_START_CONNECT my state DisconnectedState nid=0 roam=false 09-23 07:58:44.201 616 718 W LastMileLogger: Failed to open free_buffer pseudo-file: /sys/kernel/debug/tracing/instances/wifi/free_buffer: open failed: ENOENT (No such file or directory) 09-23 07:58:44.201 616 718 W LastMileLogger: Failed to arm fail-safe. 09-23 07:58:44.202 616 718 I WifiClientModeImpl[wlan0]: Connecting with 40:d9:5a:74:c2:22 as the mac address 09-23 07:58:44.202 534 534 W wificond: Scan is not started. Ignore abort request 09-23 07:58:44.202 616 718 D SupplicantStaIfaceHal: connectToNetwork "pinzhi-wifi6_5G"WPA_PSK 09-23 07:58:44.202 616 718 D SupplicantStaIfaceHal: Network is already saved, will not trigger remove and add operation. 09-23 07:58:44.207 3324 3324 D WiFiScanReceiver: onReceive: scanned results = [SSID: 3F-ZDX-2-5G, BSSID: 08:31:a4:63:56:4c, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -78, frequency: 5745, timestamp: 7511608977, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 2, centerFreq0: 5775, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-QC-V-2P, BSSID: c8:5b:a0:5c:06:fd, capabilities: [WPA-PSK-CCMP][WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS], level: -78, frequency: 2462, timestamp: 7511609319, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11n, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: mt, BSSID: f8:cd:c8:d2:df:75, capabilities: [WPA2-PSK-CCMP+TKIP][RSN-PSK-CCMP+TKIP][WPA-PSK-CCMP+TKIP][ESS][WPS], level: -86, frequency: 2442, timestamp: 7511609459, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2442, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: OPPO A58 5G, BSSID: f2:11:94:cf:7f:69, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS], level: -76, frequency: 2412, timestamp: 7511609165, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2412, centerFreq1: 0, standard: 11n, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: AAAA-5, BSSID: 22:eb:e8:bc:cc:bc, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -63, frequency: 2412, timestamp: 7511609153, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2412, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: SOP-open, BSSID: ec:60:73:b5:68:6e, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][WPA-PSK-CCMP][ESS][WPS], level: -83, frequency: 2417, timestamp: 7511609436, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 1, centerFreq0: 2427, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-QC-Z, BSSID: 04:f9:f8:6f:f7:1e, capabilities: [ESS], level: -74, frequency: 5200, timestamp: 7511609041, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 3, centerFreq0: 5210, centerFreq1: 5250, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: , BSSID: 16:f9:f8:6f:f7:1c, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][WPA-PSK-CCMP][ESS], level: -67, frequency: 2462, timestamp: 7511609411, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 1, centerFreq0: 2452, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 2F-QC-C, BSSID: 34:71:46:76:9c:f4, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -68, frequency: 2462, timestamp: 7511609399, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-WPA3, BSSID: 02:7c:ef:7d:dc:d0, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -73, frequency: 2462, timestamp: 7511609423, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 2F-QC-C-5G, BSSID: 34:71:46:76:9c:f8, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -86, frequency: 5745, timestamp: 7511608990, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 2, centerFreq0: 5775, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: , BSSID: 88:40:3b:5f:fc:06, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], 09-23 07:58:44.208 3324 3422 D PersistentLogger: flush: called 09-23 07:58:44.209 616 718 D WifiCountryCode: evaluateAllCmmStateAndApplyIfAllReady: {ConcreteClientModeManager{id=10189 iface=wlan0 role=ROLE_CLIENT_PRIMARY}=false} 09-23 07:58:44.209 616 718 D WifiClientModeImpl[wlan0]: Start Connecting Watchdog 1473 09-23 07:58:44.210 1052 1052 I wpa_supplicant: wlan0: Trying to associate with SSID 'pinzhi-wifi6_5G' 09-23 07:58:44.211 3324 3405 D DeviceWiFiAPI: onNetworkScanResults: scanResults = [SSID: 3F-ZDX-2-5G, BSSID: 08:31:a4:63:56:4c, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -78, frequency: 5745, timestamp: 7511608977, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 2, centerFreq0: 5775, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-QC-V-2P, BSSID: c8:5b:a0:5c:06:fd, capabilities: [WPA-PSK-CCMP][WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS], level: -78, frequency: 2462, timestamp: 7511609319, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11n, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: mt, BSSID: f8:cd:c8:d2:df:75, capabilities: [WPA2-PSK-CCMP+TKIP][RSN-PSK-CCMP+TKIP][WPA-PSK-CCMP+TKIP][ESS][WPS], level: -86, frequency: 2442, timestamp: 7511609459, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2442, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: OPPO A58 5G, BSSID: f2:11:94:cf:7f:69, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS], level: -76, frequency: 2412, timestamp: 7511609165, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2412, centerFreq1: 0, standard: 11n, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: AAAA-5, BSSID: 22:eb:e8:bc:cc:bc, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -63, frequency: 2412, timestamp: 7511609153, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2412, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: SOP-open, BSSID: ec:60:73:b5:68:6e, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][WPA-PSK-CCMP][ESS][WPS], level: -83, frequency: 2417, timestamp: 7511609436, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 1, centerFreq0: 2427, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-QC-Z, BSSID: 04:f9:f8:6f:f7:1e, capabilities: [ESS], level: -74, frequency: 5200, timestamp: 7511609041, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 3, centerFreq0: 5210, centerFreq1: 5250, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: , BSSID: 16:f9:f8:6f:f7:1c, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][WPA-PSK-CCMP][ESS], level: -67, frequency: 2462, timestamp: 7511609411, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 1, centerFreq0: 2452, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 2F-QC-C, BSSID: 34:71:46:76:9c:f4, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -68, frequency: 2462, timestamp: 7511609399, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 3F-WPA3, BSSID: 02:7c:ef:7d:dc:d0, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -73, frequency: 2462, timestamp: 7511609423, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 0, centerFreq0: 2462, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: 2F-QC-C-5G, BSSID: 34:71:46:76:9c:f8, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WPS], level: -86, frequency: 5745, timestamp: 7511608990, distance: ?(cm), distanceSd: ?(cm), passpoint: no, ChannelBandwidth: 2, centerFreq0: 5775, centerFreq1: 0, standard: 11ax, 80211mcResponder: is not supported, Radio Chain Infos: null, interface name: wlan0, SSID: , BSSID: 88:40:3b:5f:fc:06, capabilities: [WPA2-PSK-CCMP][RSN-PSK-CCMP][ESS][WP 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: build: Building WiFiNetwork object for wifi ap: WifiAp(wifiSsid=3F-ZDX-2-5G, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Initiating pre-build check(s)... 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Skipping wifi ap validation 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: buildConfigurations: Building configuration(s) for the wifi network... 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: Building and Setting WifiConfiguration for WiFiAp: WifiAp(wifiSsid=3F-ZDX-2-5G, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.211 3324 3405 D WiFiConfigurationBuilder: populateSecurityBasedConfiguration: Populating security based configuration for security type: WPA2 09-23 07:58:44.211 3324 3405 D WiFiSecurityType :: WPA2: populateConfiguration: Error setting WPA2 configuration. Reason: password is null. 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: wifiConfiguration => [ ssid = "3F-ZDX-2-5G", hidden = false, wifi_enterprise = ocsp: 0 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: ] 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: build: Building WiFiNetwork object for wifi ap: WifiAp(wifiSsid=3F-QC-V-2P, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.211 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Initiating pre-build check(s)... 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Skipping wifi ap validation 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildConfigurations: Building configuration(s) for the wifi network... 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: Building and Setting WifiConfiguration for WiFiAp: WifiAp(wifiSsid=3F-QC-V-2P, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.212 3324 3405 D WiFiConfigurationBuilder: populateSecurityBasedConfiguration: Populating security based configuration for security type: WPA2 09-23 07:58:44.212 3324 3405 D WiFiSecurityType :: WPA2: populateConfiguration: Error setting WPA2 configuration. Reason: password is null. 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: wifiConfiguration => [ ssid = "3F-QC-V-2P", hidden = false, wifi_enterprise = ocsp: 0 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: ] 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: build: Building WiFiNetwork object for wifi ap: WifiAp(wifiSsid=mt, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Initiating pre-build check(s)... 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: initPreBuildChecks: Skipping wifi ap validation 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildConfigurations: Building configuration(s) for the wifi network... 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: Building and Setting WifiConfiguration for WiFiAp: WifiAp(wifiSsid=mt, wifiPassword=null, wifiSecurityType=WPA2, wifiPhase2Auth=null, wifiEapMethod=null, identity=null, anonymousIdentity=null, domain=null, hidden=null, signalStrength=0, certificateFilePath=null, certificateFilePassword=null) 09-23 07:58:44.212 3324 3405 D WiFiConfigurationBuilder: populateSecurityBasedConfiguration: Populating security based configuration for security type: WPA2 09-23 07:58:44.212 3324 3405 D WiFiSecurityType :: WPA2: populateConfiguration: Error setting WPA2 configuration. Reason: password is null. 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: buildAndSetWifiConfiguration: wifiConfiguration => [ ssid = "mt", hidden = false, wifi_enterprise = ocsp: 0 09-23 07:58:44.212 3324 3405 D WiFiNetworkBuilder: ]
09-24
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值