Skip to content

Commit 3d7c631

Browse files
committed
Wifi: fix code smells
1 parent abe7882 commit 3d7c631

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/detection/wifi/wifi_apple.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ static bool getWifiInfoByIpconfig(FFstrbuf* ipconfig, const char* prefix, FFstrb
3838
const char* end = strchr(start, '\n');
3939
if (!end) return false;
4040
ffStrbufSetNS(result, (uint32_t) (end - start), start);
41-
return false;
41+
return true;
4242
}
4343

4444
const char* ffDetectWifi(FFlist* result)

src/detection/wifi/wifi_bsd.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ const char* ffDetectWifi(FFlist* result)
9898
ffStrbufSetStatic(&item->conn.protocol, "802.11n (Wi-Fi 4)");
9999
if (IEEE80211_IS_CHAN_VHT(&curchan))
100100
ffStrbufSetStatic(&item->conn.protocol, "802.11ac (Wi-Fi 5)");
101+
#ifdef IEEE80211_IS_CHAN_HE // for future use
102+
if (IEEE80211_IS_CHAN_HE(&curchan))
103+
ffStrbufSetStatic(&item->conn.protocol, "802.11ax (Wi-Fi 6)");
104+
#endif
101105
}
102106

103107
union {

0 commit comments

Comments
 (0)