是否有一个标准来定义什么是有效的 SSID 和密码?
我们正在开发一个无线 n/w 配置 UI,需要检查 SSID 是否有效? 字符集有限制吗?长度 ?还有什么..
We are developing a wireless n/w configuration UI and need to check if a SSID is a valid one?
Are there any restrictions on the character set? length ? anything more..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
802.11-2007 规范第 7.3.2.1 节 (http://standards.ieee .org/getieee802/download/802.11-2007.pdf)定义了 SSID。
有效的 SSID 是 0-32 个八位位组,具有任意内容。长度为 0 的 SSID 表示通配符 SSID(例如在探测请求帧中)。
没有与 SSID 关联的字符集 - 32 字节的 NUL 字节字符串是有效的 SSID。
这意味着:
在操作通用 SSID(strcpy() 等)时,切勿使用普通字符串函数。
例如,在将 SSID 记录到磁盘时,您不应假设 SSID 是可打印的
Section 7.3.2.1 of the 802.11-2007 specification (http://standards.ieee.org/getieee802/download/802.11-2007.pdf) defines SSIDs.
A valid SSID is 0-32 octets with arbitrary contents. A 0-length SSID indicates the wildcard SSID (in probe request frames for instance).
There's no character set associated with the SSID - a 32-byte string of NUL-bytes is a valid SSID.
This implies that:
you should never use normal string functions when manipulating generic SSIDs (strcpy() and friends).
you should not assume that the SSID is printable when, for instance, logging it to disk