Search Linux Wireless
iw hex escapes SSID, but not other fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "open list:MEDIATEK MT76 WIRELESS LAN DRIVER" <linux-wireless@xxxxxxxxxxxxxxx>
- Subject: iw hex escapes SSID, but not other fields
- From: James Prestwood <prestwoj@xxxxxxxxx>
- Date: Mon, 11 Mar 2024 05:32:18 -0700
- User-agent: Mozilla Thunderbird
Hi,
It was reported to me that some of our tooling (which parses iw output)
fails due to a network using a WPS device name with non utf-8
characters. I see that for SSID fields there is specific handling for
escaping non utf8 bytes, but not for the WPS Device Name (nor any other
fields AFAICT).
Before you rip me a new one for using iw output like this I have since
removed this and now use IWD's DBus API :) But older versions of the
software do still parse iw output. Just wanted to report this since iw
does print to stdout, so it does seem like it should try and escape
those bytes when possible, like it does for SSIDs.
Side note, I see the JSON patches are progressing which is probably
going to be the proper way to use iw as an automated tool going forward.
I haven't looked at those in detail (maybe its already taken care of),
but the above issue will likely need to be handled since JSON requires
utf-8.
Thanks,
James
[Index of Archives]
[Linux Host AP]
[ATH6KL]
[Linux Wireless Personal Area Network]
[Linux Bluetooth]
[Wireless Regulations]
[Linux Netdev]
[Kernel Newbies]
[Linux Kernel]
[IDE]
[Git]
[Netfilter]
[Bugtraq]
[Yosemite Hiking]
[MIPS Linux]
[ARM Linux]
[Linux RAID]