Match a by-AP search to BSSIDs only when it looks like one #167
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "networks-search-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What this PR does
Fixes the Captured networks search in the by-access-point view, where searching for a network name listed most access points.
A by-AP search also matches BSSIDs, so a pasted MAC finds its radio. It built the BSSID fragment by keeping the query's hex characters (
0-9,a-f) whatever the query was. A name's letters a–f became the fragment: "Home" becameeand matched nearly every BSSID, and "Library WiFi" becamebaf.web.py: a new_mac_query()treats the query as a BSSID only when it's made of hex digits and MAC separators (:,-,.), with a separator or at least six digits (AA:BB,00-00-5e,aabbcc). Any other query matches names only, as the search box suggests.Checklist
make lint(ansible--syntax-check,yamllint,shellcheck --severity=error, and the real-data check). The Lint workflow runs this on the PR.make test: 1674 passed locally, with the two tests that only fail off a device deselected (test_main_ignores_sighup,test_gps_serial_reader_recovers_from_a_stalled_link). The Test workflow runs it on the PR.Release impact
kestrel_pipackage only.Notes for review
test_networks_ap_search_by_name_ignores_bssid_hexfails on main ("Home" matched all three radios) and passes here. It also checks that a fragment with separators, a full MAC with dashes, and six bare digits still find the radio.test_mac_query_only_reads_mac_shaped_searchescovers the helper.🤖 Generated with Claude Code