| 45 | } |
| 46 | |
| 47 | String 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 | |
| 65 | String getChannelWidth(wifi_second_chan_t secondChannel) { |
| 66 | switch (secondChannel) { |