Suppose a test Wi-Fi password contains §. That character is encoded in UTF-8 as C2 A7. Typing the literal text %C2%A7 stores six ASCII bytes. A URL, a Wi-Fi QR payload and a wireless configuration have different encoding rules. Use a made-up password to identify where the values diverge.
Compare the two inputs over SSH
The commands create a UCI file in a temporary directory. LAB53 is a sample name. They do not create an access point or reload your wireless configuration. Use a UTF-8 terminal.
work=$(mktemp -d) || exit 1
cat > "$work/wireless" <<'WIRELESS'
config wifi-iface 'sample'
option ssid 'LAB53'
option key 'lab53-§-sample'
WIRELESS
uci -c "$work" get wireless.sample.key | hexdump -C
printf '%s' '%C2%A7' | hexdump -C

Read the test key as bytes in the terminal
In the first dump, c2 a7 sits between two 2d bytes. The final 0a is the newline printed by the command. The second output contains exactly six bytes. If yours differs, check the terminal encoding, input method and pasted characters. Matching output verifies this UCI sample only. It does not test wireless authentication.
Compare QR entry and manual entry on one test SSID
On a test AP authorized for maintenance, set up the same temporary network and password, retaining the existing wired management entry. First, manually enter the test password to connect, verify that the device connects to LAB53, obtains an IP address, and can access the test gateway. Then, have the phone forget this test network and reconnect via the pending-check QR code. If manual entry fails, first verify the authentication method, wireless configuration, and association logs; if only QR code scanning fails, use a local offline QR scanning tool to extract the text content from the test code, and manually verify each character in the SSID and password fields, especially § and %C2%A7. Avoid submitting your actual home password to online decoding websites.
If the decoding output is correct, use another mobile phone supporting the same wireless security mode for testing to differentiate between the generation end, scanning end, and association process. Finally, delete the test SSID and restore the original client's connectivity method. This recording uses an x86 virtual router with no wireless RF; inspecting terminal output cannot replace on-device scanning and connection verification.
Comments