是否有定义有效 SSID 和密码的标准? [英] Is there a standard that defines what is a valid SSID and password?

查看:22
本文介绍了是否有定义有效 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..

推荐答案

802.11-2007 规范 (http://standards.ieee.org/getieee802/download/802.11-2007.pdf) 的第 7.3.2.1 节定义了 SSID.

Section 7.3.2.1 of the 802.11-2007 specification (http://standards.ieee.org/getieee802/download/802.11-2007.pdf) defines SSIDs.

有效的 SSID 是具有任意内容的 0-32 个八位字节.长度为 0 的 SSID 表示通配符 SSID(例如在探测请求帧中).

A valid SSID is 0-32 octets with arbitrary contents. A 0-length SSID indicates the wildcard SSID (in probe request frames for instance).

没有与 SSID 关联的字符集 - 一个 32 字节的 NUL 字节字符串是有效的 SSID.

There's no character set associated with the SSID - a 32-byte string of NUL-bytes is a valid SSID.

这意味着:

  • 在操作通用 SSID(strcpy() 和朋友)时,永远不要使用普通的字符串函数.

  • you should never use normal string functions when manipulating generic SSIDs (strcpy() and friends).

您不应假设 SSID 是可打印的,例如,将其记录到磁盘

you should not assume that the SSID is printable when, for instance, logging it to disk

这篇关于是否有定义有效 SSID 和密码的标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆