Chadster766 / McDebian

Linksys WRT3200ACM, WRT1900AC, WRT1900ACS, WRT1200AC and WRT32X Router Debian Implementation
98 stars 14 forks source link

Enable 40MHz channels in hostapd Wifi N 2.4 Ghz #54

Closed Lovator closed 5 years ago

Lovator commented 5 years ago

Good afternoon, how to enable the mode of operation HT40 ?

changed the /etc/hostapd/wlp2s0.conf parameter ht_capab = [HT40 +] [SHORT-GI-40] [DSSS_CCK-40] ht_capab = [HT40 -] [SHORT-GI-40] [DSSS_CCK-40] but the channel width of 40 Mhz never turned on.

Chadster766 commented 5 years ago

AFAIK it should work with the McDebian default config but that the 40mhz co-existence rule is enforced by the wireless driver.

I have an AP broadcasting on 40mhz so I will have to power it off for testing later this evening.

This can be hacked with at hostapd patch file available from many sources but I don't plan to implement it since 2.4Ghz typically runs best at 20mhz for most devices anyway.

Lovator commented 5 years ago

I correctly understood that in your mcdebian there is no support for 40 Mhz for Wifi N ?

Chadster766 commented 5 years ago

No 2.4ghz 40mhz is supported but so is the FCC 40Mhz co-existence rule.

Chadster766 commented 5 years ago

I did some testing for you.

To get 40Mhz enabled on 2.4Ghz you only need to add [HT40+] or [HT40-] (no space between the HT40 and plus\minux) to the default McDebian 2.4Ghz wireless config.

I discovered something new that if you set 2.4Ghz channel to 11 and use [HT40+] hostapd will fail to start. I believe this is because you need at 4 channels above 11 when using [HT40+] which don't exist. To resolve this issue I changed it to [HT40-]. This cause hostapt to use channels 11+7 hence the "-" in [HT40-].

I tested with channel 1 and [HT40+] which caused hostapt to use channels 1+5.

To get my AP which was using 40 Mhz channel 1+5 to work with my WRT I set the WRT to [HT40-] 40Mhz channels 11+7. This made sure the FCC 40Mhz rule did not come into effect and drop the WRT down to 20Mhz.