TPC(Transmit Power Control)发送功率控制,本觉得就是控制一下发送功率,原理很简单,但看原版协议死活每搞懂什么意思,恼羞成怒!!!!
后来又看了一些贴子和cisco的相关功能介绍,再回头看协议,好像是这么一回事:
1、所谓TPC,是AP控制STA的发送功率的一种手段。在802.11d中,已定义了使用Country Element传递区域无线通信规定的信道和最大发送功率信息:
通过获取这些信息,STA可以确定自己应该遵守什么规则,可以用什么发送功率在哪些信道上通信。
2、在这基础上,802.11h定义了TPC和DFS,是基于spectrum management capability的。这个在Capability Information字段中有一个位标识:
B8位就是Spectrum Management标识位,1表示支持802.11h,即含TPC的功能。
AP和STA均可能支持或不支持Spectrum Management功能。AP在beacon、probe response帧中带有Capability Information字段,用于告知各STA其工作能力。
2、支持TPC的AP,在beacon等帧中带有Power Constraint Element:
这里的Local Power Constraint是一个正整数,用于在当前Country Element定义的规则基础上对发送功率值进行调整:Country Element中的Max Transmit Power Level减去Local Power Constraint值,就是调整后的发送功率值。
3、另外,还有一个extended方式传递发送功率最大值。先在Extended Capabilities字段中打开extended spectrum management capable;然后在beacon、probe response等帧中带上Transmit Power Envelope Element字段:
指定20MHz、40MHz、80MHz、160MHz不同频宽时的最大发送功率。这种方式比之前的更为细致。
4、STA在发送association关联帧时,带上Power Capability Element,报告期发送功率范围:
发送功率单位为dBm。
5、用表格来总结一下:
功能开关 | AP操作 | STA操作 |
---|---|---|
不使用802.11h | 通过Country Element告知STA发送功率的规范 | 无回应 |
使用802.11h,不使用extended方式 | 通过Country Element和Power Constraint Element告知STA发送功率 | 在association帧中回应Power Capability。 |
使用802.11h,使用extended方式 | 通过Country Element和Power Constraint Element、Transmit Power Envelope告知STA发送功率 | 在association帧中回应Power Capability。 |
其中STA回应Power Capability的最小最大发送功率要满足AP所告知的发送功率要求。