Repository navigation
Linux: prázdné SSID z iw nepřebírá další řádek (L52) - #46
Merged
Merged
Conversation
Regex za "SSID:" přeskočil konec řádku a u prázdného SSID vzal "freq: …". Teď jen mezery a tabulátory na témže řádku; prázdné SSID = None. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Záložní čtení Wi-Fi přes
iw dev <iface> linkhledalo SSID regexem^\s*SSID:\s*(.+)$.\s*za dvojtečkoupřejde i konec řádku, takže u prázdného
SSID:se jako název sítě vzal další řádek (freq: 2412.0). Ten se pakzobrazil v přehledu a stal se klíčem vazby profilu.
Oprava: regex bere jen mezery a tabulátory na témže řádku. Prázdné SSID je
Nonea hodnota znmcli,pokud odpověděl, zůstane.
Ověření (AI-assisted: implementace Codex, audit Claude Code, nezávislý review subagentem):
test_wifi_ssid_iw_emptyvtests/test_linux_wifi_ssid.py(falešnýrun_cmd):SSID:s mezerou i bez,s odpovědí
nmclii bez ní;nmcli) hodnotoufreq: 2412.0, s opravou projdou všechny;případy s
nmclihlídají, že prázdné SSID ziwnepřepíše hodnotu znmcli;tools/qa.sh(pytest offscreen, ShellCheck, Pyright na změněných souborech,git diff --check): PASS, 1035 passed / 3 skipped;Návrh do CHANGELOG: „Linux: prázdný název Wi-Fi z
iwse už nezobrazí jako text dalšího řádku.“🤖 Generated with Claude Code