File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11# 2.1.1
22
3- Changes:
4- * SSID detection no longer works in macOS Sonoma. It will be marked as ` <unknown ssid> ` before I find a solution (Wifi, macOS)
5-
63Features:
74* Support opkg (Packages, Linux)
85* Support GNOME Console terminal version and font detection (Terminal, Linux)
Original file line number Diff line number Diff line change 11#include " wifi.h"
2+ #include " common/processing.h"
23
34#import < CoreWLAN/CoreWLAN.h>
45
3334
3435 if (inf.ssid )
3536 ffStrbufAppendS (&item->conn .ssid , inf.ssid .UTF8String );
37+ else if (!ffProcessAppendStdOut (&item->conn .ssid , (char * []) {
38+ " /usr/sbin/networksetup" ,
39+ " -getairportnetwork" ,
40+ item->inf .description .chars ,
41+ NULL
42+ }) && item->conn .ssid .length > 0 )
43+ {
44+ uint32_t index = ffStrbufFirstIndexC (&item->conn .ssid , ' :' );
45+ if (index < item->conn .ssid .length )
46+ ffStrbufSubstrAfter (&item->conn .ssid , index + 1 );
47+ }
3648 else
3749 ffStrbufSetStatic (&item->conn .ssid , " <unknown ssid>" ); // https://developer.apple.com/forums/thread/732431
3850
You can’t perform that action at this time.
0 commit comments