Design #337
tancat5GHz 40 MHz channel bandwidth (HT40)
Descripció
It seems that, at least with some ath9k devices, not all 5 GHz channels with 40 MHz bandwidth combinations are valid. For instance:
36-
36
36+
40-
4040+44-
44
44+
...
Actually, putting HT40+/HT40- in /etc/config/wireless has no effect on the side used to extend to the 40MHz:
Channel 36 HT20
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 36 (5.180 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -95 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 44 wdev 0xf addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 36 (5180 MHz), width: 20 MHz, center1: 5180 MHz
Channel 36 HT40
wlan0 ESSID: "community-lab.net" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 36 (5.180 GHz) Tx-Power: 17 dBm Link Quality: 20/70 Signal: -90 dBm Noise: -94 dBm Bit Rate: 6.0 MBit/s Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 46 wdev 0x10 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
Channel 36 HT40-
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 36 (5.180 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -94 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 48 wdev 0x11 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
Channel 36 HT40+
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 36 (5.180 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -94 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 50 wdev 0x12 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
Channel 40 HT20
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 40 (5.200 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -93 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 52 wdev 0x13 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 40 (5200 MHz), width: 20 MHz, center1: 5200 MHz
Channel 40 HT40
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 40 (5.200 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -93 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 54 wdev 0x14 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 40 (5200 MHz), width: 40 MHz, center1: 5190 MHz
Channel 40 HT40-
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 40 (5.200 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -93 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 72 wdev 0x1d addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 40 (5200 MHz), width: 40 MHz, center1: 5190 MHz
Channel 40 HT40+
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 40 (5.200 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -91 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 56 wdev 0x15 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 40 (5200 MHz), width: 40 MHz, center1: 5190 MHz
Channel 44 HT20
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 44 (5.220 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -95 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 60 wdev 0x17 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 44 (5220 MHz), width: 20 MHz, center1: 5220 MHz
Channel 44 HT40
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 44 (5.220 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -94 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 62 wdev 0x18 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 44 (5220 MHz), width: 40 MHz, center1: 5230 MHz
Channel 44 HT40-
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 44 (5.220 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -93 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 64 wdev 0x19 addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 44 (5220 MHz), width: 40 MHz, center1: 5230 MHz
Channel 44 HT40+
wlan0 ESSID: "qMp" Access Point: 02:CA:FF:EE:BA:BE Mode: Ad-Hoc Channel: 44 (5.220 GHz) Tx-Power: 17 dBm Link Quality: unknown/70 Signal: unknown Noise: -93 dBm Bit Rate: unknown Encryption: unknown Type: nl80211 HW Mode(s): 802.11an Hardware: 168C:0033 19B6:D014 [Generic MAC80211] TX power offset: unknown Frequency offset: unknown Supports VAPs: yes PHY name: phy0 Interface wlan0 ifindex 66 wdev 0x1a addr 4c:5e:0c:10:05:2f ssid qMp type IBSS wiphy 0 channel 44 (5220 MHz), width: 40 MHz, center1: 5230 MHz
etc.
So, the pattern is: starting from the lowest channel, use the upper and the lower side alternatively. See:
36 HT20
36 HT40 (+)
40 HT20
40 HT40 (-)
44 HT20
44 HT40 (+)
48 HT20
48 HT40 (-)
52 HT20
52 HT40 (+)
56 HT20
56 HT40 (-)
60 HT20
60 HT40 (+)
64 HT20
64 HT40 (-)
No problem up to here. Then:
100 HT20
100 HT40 (+)
104 HT20
104 HT40 (-)
108 HT20
108 HT40 (+)
112 HT20
112 HT40 (-)
116 HT20
116 HT40 (+)
120 HT20
120 HT40 (-)
124 HT20
124 HT40 (+)
128 HT20
128 HT40 (-)
132 HT20
132 HT40 (+)
136 HT20
136 HT40 (-)
140 HT20
140 HT40 This one won't work, neither HT40, HT40- nor HT40+
And the upper channels:
149 HT20
149 HT40 (+)
153 HT20
153 HT40 (-)
157 HT20
157 HT40 (+)
161 HT20
161 HT40 (-)
165 HT20
165 HT40 This one won't work, neither HT40, HT40- nor HT40+
So, the routine that provides the available channels should be reviewed.
Actualitzat per Roger Pueyo Centelles fa més de 9 anys
- Estat ha canviat de Nou a Tancat
- Assignat a ha canviat de Pau Escrich a Roger Pueyo Centelles
Fixed in commit 6d93e80822f077cedbc74acc581471983d4a6ca3.
qmpinfo channels (dev) now returns the valid HT40+/HT40- property for each 5 GHz channel, if applicable, to only use those valid in OpenWrt.