6cabd48cf76473ec01761c5983adf6b31ebe1b03
Sonoma WiFi Fix.md
... | ... | @@ -1,4 +1,22 @@ |
1 | 1 | ``` |
2 | +% poetry show |grep pyobjc |
|
3 | +pyobjc-core 9.2 Python<->ObjC Interoperabilit... |
|
4 | +pyobjc-framework-cocoa 9.2 Wrappers for the Cocoa framew... |
|
5 | +pyobjc-framework-corebluetooth 9.2 Wrappers for the framework Co... |
|
6 | +pyobjc-framework-corelocation 9.2 Wrappers for the framework Co... |
|
7 | +pyobjc-framework-corewlan 9.2 Wrappers for the framework Co... |
|
8 | +pyobjc-framework-libdispatch 9.2 Wrappers for libdispatch on m... |
|
9 | + |
|
10 | +% poetry run python3 --version |
|
11 | +Python 3.11.8 |
|
12 | + |
|
13 | +% sw_vers |
|
14 | +ProductName: macOS |
|
15 | +ProductVersion: 14.4.1 |
|
16 | +BuildVersion: 23E224 |
|
17 | +``` |
|
18 | + |
|
19 | +``` |
|
2 | 20 | % poetry run python3 |
3 | 21 | Python 3.11.8 (main, Feb 6 2024, 21:21:21) [Clang 15.0.0 (clang-1500.1.0.2.5)] on darwin |
4 | 22 | Type "help", "copyright", "credits" or "license" for more information. |
... | ... | @@ -20,4 +38,38 @@ Type "help", "copyright", "credits" or "license" for more information. |
20 | 38 | <CWNetwork: 0x60000289c9b0> [ssid=Tara, bssid=<redacted>, security=WPA/WPA2 Personal, rssi=-94, channel=<CWChannel: 0x60000289cc40> [channelNumber=6(2GHz), channelWidth={40MHz(+1)}], ibss=0], |
21 | 39 | <CWNetwork: 0x60000289ca90> [ssid=Administración, bssid=<redacted>, security=WPA2 Personal, rssi=-84, channel=<CWChannel: 0x60000289cc70> [channelNumber=8(2GHz), channelWidth={20MHz}], ibss=0] |
22 | 40 | )} |
23 | -``` |
|
... | ... | \ No newline at end of file |
0 | +``` |
|
1 | + |
|
2 | +``` |
|
3 | +% sw_vers |
|
4 | +ProductName: macOS |
|
5 | +ProductVersion: 14.4.1 |
|
6 | +BuildVersion: 23E224 |
|
7 | + |
|
8 | +% python3 -m venv /tmp/scantest |
|
9 | +% /tmp/scantest/bin/pip3 install pyobjc |
|
10 | + |
|
11 | +% /tmp/scantest/bin/pip3 list |egrep "(CoreWLAN|CoreLocation)" |
|
12 | +pyobjc-framework-CoreLocation 10.2 |
|
13 | +pyobjc-framework-CoreWLAN 10.2 |
|
14 | + |
|
15 | +% /tmp/scantest/bin/python3 |
|
16 | +Python 3.9.6 (default, Feb 3 2024, 15:58:28) |
|
17 | +[Clang 15.0.0 (clang-1500.3.9.4)] on darwin |
|
18 | +Type "help", "copyright", "credits" or "license" for more information. |
|
19 | +>>> import CoreLocation |
|
20 | +>>> from CoreWLAN import CWInterface, CWWiFiClient |
|
21 | +>>> wifi_client: CWWiFiClient = CWWiFiClient.sharedWiFiClient() |
|
22 | +>>> interface = wifi_client.interface() |
|
23 | +>>> location_manager = CoreLocation.CLLocationManager.alloc().init() |
|
24 | +>>> location_manager.startUpdatingLocation() |
|
25 | +>>> networks, error = interface.scanForNetworksWithName_error_( None, None ) |
|
26 | +>>> print(networks) |
|
27 | +{( |
|
28 | + <CWNetwork: 0x600002080200> [ssid=lar 2, bssid=(null), security=WPA/WPA2 Personal, rssi=-84, channel=<CWChannel: 0x600002088000> [channelNumber=7(2GHz), channelWidth={40MHz(+1)}], ibss=0], |
|
29 | + <CWNetwork: 0x6000020802d0> [ssid=LAR14, bssid=(null), security=WPA/WPA2 Personal, rssi=-91, channel=<CWChannel: 0x600002095300> [channelNumber=5(2GHz), channelWidth={40MHz(-1)}], ibss=0], |
|
30 | + <CWNetwork: 0x600002080380> [ssid=ETAZLA, bssid=(null), security=WPA2 Personal, rssi=-85, channel=<CWChannel: 0x600002095330> [channelNumber=4(2GHz), channelWidth={40MHz(+1)}], ibss=0], |
|
31 | + <CWNetwork: 0x6000020802c0> [ssid=LAR1, bssid=(null), security=WPA2 Personal, rssi=-55, channel=<CWChannel: 0x600002095360> [channelNumber=2(2GHz), channelWidth={40MHz(+1)}], ibss=0], |
|
32 | + <CWNetwork: 0x600002080460> [ssid=DIR-615-0914, bssid=(null), security=WPA2 Personal, rssi=-84, channel=<CWChannel: 0x600002095390> [channelNumber=13(2GHz), channelWidth={40MHz(-1)}], ibss=0] |
|
33 | +)} |
|
34 | +``` |