Wifi-Mediatek Canada Country Regulatory Issue

Hello

Just running into a regulatory issue with the Canada country code and Mediatek wifi drivers (hAP BE Lite and hAP AX S). When set to auto channel mode, it likes to pick eC 2472 on 2.4Ghz and eeeeC 5885 which both are now legal in Canada.

The issue is that some devices will not connect because this hasn't always been the case. Since these channels are not used by any other routers that I have seen so far, the Auto channel mode reeeeaaalllly like to choose them since they are "clean". I have gotten around it by setting the following settings:

/interface wifi set wifi1 channel.frequency=2412-2437
/interface wifi set wifi2 channel.width=20/40/80mhz
/interface wifi set wifi2 channel.frequency=5180-5785

With the fix above, the issue I then run into is that the center channel can never be eC 2462 (or channel 11). If frequency is set to 2412-2462, it will pick 2452 Ce, and some older devices will not even see it. I am not too worried about the top end of 5.8Ghz as we have tons of DFS frequencies that do just fine, but it just means in places where there are multiple 2.4Ghz APs, primary channel 2462 is not an option with 20/40Mhz channel width.

Is there a way to have the extension channels where they would obey the frequency selection? I could probably throw a script together to randomly swap between a bunch of presets, but that sounds like reinventing the wheel.

As a side note, I haven't seen this issue with any of the Wifi6 qcom stuff (AX2, AX3 ect)

Thanks!

Something like:

/interface wifi set [find default-name=wifi1] channel.frequency=2412-2447,2457-2472

?
But it would work only if width is set to 20 MHz, I believe.

Unfortunately the frequency only defines the center of the control channel, so 20Mhz at 2472 would cause the same issue. 2472 and 2467 being used for control or extension channel just makes some devices very mad here.

If only a 20Mhz channel is being used, channel.frequency=2412-2462 works just fine.

If you really want to run 20/40 MHz channels on 2.4GHz band (and you better know really well why that's good for you and your neighbours), then you might want to set width=20/40-Ce to make sure that control channel is always the lower half of the 40MHz "chunk".

For sure! Keeping the control frequency locked to the lower channel makes a lot of sense.

For reference, these are routers are pre-programed with a script for our members. In most cases, these are installed in rural places where the distance to neighbours is measured in kilometers, so setting 2412-2437 Ce works fine. However, when we add a second wifi AP for better coverage for their farm or home, they can interfere with each other unless we manually select channels for everything.

I was just hoping there could be a way that it would be smart enough to do 2462 20/40-eC in auto mode when the frequency is set to 2412-2462 without it doing 2452-Ce as that is using 2452mhz control and 2472mhz extension.

It would be nice if the frequency range actually applied to all the extension channels and not just the control channel