(label, mac)
| 141 | |
| 142 | // pretty print a MAC depending if it's an IP endpoint or WiFi access point |
| 143 | function decorateAddress(label, mac) { |
| 144 | if( mac in db.endpoints ) { |
| 145 | return label + ":\n" + decorateEndpoint(db.endpoints[mac], ' '); |
| 146 | } else if( mac in db.aps ) { |
| 147 | return label + ":\n" + decorateAP(db.aps[mac], ' '); |
| 148 | } else { |
| 149 | return label + ': ' + mac + "\n"; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | // triggered when a WiFi deauthentication frame is detected |
| 154 | function onDeauthentication(event) { |
no test coverage detected