File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,14 @@ const char* ffDetectWifi(FFlist* result)
37
37
item -> conn .channel = 0 ;
38
38
item -> conn .frequency = 0 ;
39
39
40
+ ffParsePropLines (ifconfig .chars , "status: " , & item -> conn .status );
41
+ if (!ffStrbufEqualS (& item -> conn .status , "associated" ))
42
+ continue ;
43
+
40
44
ffParsePropLines (ifconfig .chars , "ssid " , & item -> conn .ssid );
41
45
if (item -> conn .ssid .length )
42
46
{
47
+ // This doesn't work for quoted SSID values
43
48
uint32_t idx = ffStrbufFirstIndexS (& item -> conn .ssid , " bssid " );
44
49
if (idx < item -> conn .ssid .length )
45
50
{
@@ -69,8 +74,6 @@ const char* ffDetectWifi(FFlist* result)
69
74
ffStrbufPrependS (& item -> conn .protocol , "802." );
70
75
}
71
76
}
72
-
73
- ffParsePropLines (ifconfig .chars , "status: " , & item -> conn .status );
74
77
}
75
78
}
76
79
You can’t perform that action at this time.
0 commit comments