feat(webui,recon): drop PineAP mode card, sort recon report APs by signal
- Remove the Passive/Active/Advanced mode card from the PineAP dashboard and move the RF Role (radio1) card into its slot, along with the now dead mode state machinery and mode-card-only CSS. - Sort recon HTML report access points by signal strength (strongest first).
This commit is contained in:
@@ -2281,9 +2281,10 @@ def _recon_html_download(scan_id, data, client_count, archive=None):
|
||||
body_parts.append(_html_table(['Band', 'Channel', 'Access Points'], chan_rows))
|
||||
else:
|
||||
body_parts.append('<p class="empty">No access points with a known channel.</p>')
|
||||
# AP table with color-coded signal.
|
||||
# AP table with color-coded signal, strongest signal first.
|
||||
ap_rows = []
|
||||
for a in aps:
|
||||
for a in sorted(aps, key=lambda row: row.get('signal')
|
||||
if row.get('signal') is not None else -200, reverse=True):
|
||||
ap_rows.append([a.get('ssid') or '(hidden)', a.get('bssid'),
|
||||
a.get('band') or '--',
|
||||
a.get('channel') if a.get('channel') is not None else '--',
|
||||
|
||||
Reference in New Issue
Block a user