样例描述
ht_capab: HT capabilities (list of flags) # LDPC coding capability: [LDPC] = supported # Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary # channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz # with secondary channel below the primary channel # (20 MHz only if neither is set) # Note: There are limits on which channels can be used with HT40- and # HT40+. Following table shows the channels that may be available for # HT40- and HT40+ use per IEEE 802.11n Annex J: # freq HT40- HT40+ # 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan) # 5 GHz 40,48,56,64 36,44,52,60 # (depending on the location, not all of these channels may be available # for use) # Please note that 40 MHz channels may switch their primary and secondary # channels if needed or creation of 40 MHz channel maybe rejected based # on overlapping BSSes. These changes are done automatically when hostapd # is setting up the 40 MHz channel. # Spatial Multiplexing (SM) Power Save: [SMPS-STATIC] or [SMPS-DYNAMIC] # (SMPS disabled if neither is set) # HT-greenfield: [GF] (disabled if not set) # Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set) # Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set) # Tx STBC: [TX-STBC] (disabled if not set) # Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial # streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC # disabled if none of these set # HT-delayed Block Ack: [DELAYED-BA] (disabled if not set) # Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not # set) # DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set) # PSMP support: [PSMP] (disabled if not set) # L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set) #ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]
802.11n有两种频宽模式:HT(High Throughput)20和HT40
- HT20是出于兼容性考虑
比如,一个区域内存在802.11b/g信号,那么为了尽量减少对它们的干扰,需要设定为HT20,以减少频带的重叠。
在2.4G频段下5-13信道设置40MHz时使用[HT40-],1-7信道使用[HT40+],
因为40MHz分为两个通道:主通道和次通道,主通道频段较低即为1-7信道时,此时的次通道的频段则会大于主通道。
主通道频段较高即为5-13信道时,此时的次通道的频段则会小于主通道。
- HT40是出于高性能考虑
HT40将两个相邻的20MHz信道捆绑在一起形成一个40MHz的信道,一个是主,一个是辅。主信道发送beacon报文和部分数据报文,辅信道发送其他报文。
若捆绑两个相邻的20MHz信道时,辅助20MHz带宽的中心频率低于主信道的中心频率,则为plus,反之则为minus。
这里的plus和minus都是针对主信道说的,所以802.11n/a_ht40plus代表40M频宽时的2个信道叠加向上加的叠加,例如当前信道是149,配成40M频宽需要叠加另外一个信道,就是149+153两个信道组成的40MHz频宽,149plus表示40MHz信道是由中心频率149所在的20MHz信道,加上中心频率153所在的20MHz信道捆绑结合,802.11n/a_ht40minus代表信道叠加时是向下减的叠加,例如配了这个,信道161,就等于是161+157组成了40M频宽的新信道。
802.11g也如a是一样的意思,只不过。由于802.11g只有1、6、11这3个信道,所以使用40M频宽的信道时只剩下了一个不重叠信道,在一个蜂窝式无线覆盖区域最好不要在2.4GHz使用,最好在5GHz使用。在2.4G使用HT40,则有效通道有3~13,非重叠的只有3,11.所以在使用802.11ng时,不建议使用40MHz的频宽,使用默认的20MHz频宽即可。
HT40-:次通道低于主通道:所选的通道对应的次通道必须为allowed中的数据
HT40+:次通道高于主通道:所选的通道必须为allowed中的数据