MCPcopy Create free account
hub / github.com/BruceDevices/firmware / phyModes2String

Function phyModes2String

src/modules/wifi/ap_info.cpp:47–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47String phyModes2String(wifi_ap_record_t record) {
48 String modes;
49 if (record.phy_11b || record.phy_11g || record.phy_11g || record.phy_11n) modes = "11";
50 if (record.phy_11b) modes += "b/";
51 if (record.phy_11g) modes += "g/";
52 if (record.phy_11n) modes += "n/";
53 if (record.phy_lr) modes += "low/";
54 if (!modes.isEmpty()) modes[modes.length() - 1] = ' ';
55
56 if (record.ftm_responder || record.ftm_initiator) {
57 modes += "FTM: ";
58 if (record.ftm_responder) modes += "RESP ";
59 if (record.ftm_initiator) modes += "INIT ";
60 }
61
62 return modes.isEmpty() ? "None" : modes;
63}
64
65String getChannelWidth(wifi_second_chan_t secondChannel) {
66 switch (secondChannel) {

Callers 1

fillInfoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected