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

查看:448
本文介绍了是否有定义有效的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天全站免登陆