Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8997 set region not working #366

Open
borislevin1984 opened this issue Jun 30, 2019 · 16 comments
Open

8997 set region not working #366

borislevin1984 opened this issue Jun 30, 2019 · 16 comments

Comments

@borislevin1984
Copy link

Hello,

I have tried to change region with iw application and hostapd.

In hostapd attempt to change region fails after timeout.

With iw application you can see below there is just no effect for the industrial module:

Please see iw output:

iw reg get
global
country 98: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), NO-OUTDOOR, DFS, AUTO-BW

phy#0
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)

iw reg set GB

iw reg get
global
country 98: DFS-UNSET
(2402 - 2472 @ 40), (N/A, 20), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), NO-OUTDOOR, AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), NO-OUTDOOR, DFS, AUTO-BW

phy#0
country US: DFS-FCC
(2402 - 2472 @ 40), (N/A, 30), (N/A)
(5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
(5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
(5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
(5735 - 5835 @ 80), (N/A, 30), (N/A)
(57240 - 63720 @ 2160), (N/A, 40), (N/A)

Is there any issue with changing region with this chipset?

Thanks.

@ValCher1961
Copy link

I think this driver does not allow to change the region as well as on chips 8864/8964.

@borislevin1984
Copy link
Author

I have another Marvell chipset 8897 and with mwlwifi driver region change works perfectly.
Only in 8997/8864/8964 region change will not work?

@ValCher1961
Copy link

Try this patch - https://github.com/ValCher1961/McDebian_WRT3200ACM/blob/master/kernel-4.19.X/regfree.patch . I use it to change the region to 8964. I do not know if it is suitable for 8997.

@borislevin1984
Copy link
Author

Thanks! i will try it

@borislevin1984
Copy link
Author

After going over your patch it will not solve the problem for 8997 chip...

@ValCher1961
Copy link

Sorry, I do not have a card with 8997 chip

@porsche613
Copy link

The same issue happened at 88w8864 chipset in WRT1900ACSv2, but I may have to install OpenWRT Snapshot to try the patch.

@ValCher1961
Copy link

I can't verify this patch, since I don't have 8864, but you can try.

@porsche613
Copy link

Another way can be tried, reghack (and v2), can be found at this reposity. There are discussing in OpenWrt fourm, thread 1, thread 2.

@borkra
Copy link
Contributor

borkra commented Sep 4, 2019

Sounds like you purchased router for US market. And yes it will not work anywhere else.
Modern wireless certification especially US one, require AP manufacturer to make sure that router transmit only on allowed frequencies and with power values for the country, and prevent users from altering them.

@borislevin1984
Copy link
Author

With mwifiex driver activated in AP mode region change working as expected so i'm pretty sure this is mwlwifi limitation.

@borkra
Copy link
Contributor

borkra commented Sep 4, 2019

Yes, mwiflex is client driver it allowed to change region using 802.11d.
But for AP it is prohibited. I can refer you to appropriate FCC standards if you are interested..

@borislevin1984
Copy link
Author

Sorry, what do you mean "for AP it is prohibited"?

@borkra
Copy link
Contributor

borkra commented Sep 4, 2019

Per FCC regulations (and if I am not mistaken now days ETSI as well), it is illegal for AP manufacturer to permit user selection of transmission frequency or power level outside permitted.

Permits are issued by the government agency on individual basis. Usually most actual compliance work outsourced to 3rd party labs qualified by the government, but the final permit is issued by the government agency.

Permitted transmission frequencies and power levels are validated during device certification to meet standards and other regulation and listed on the certificate for the device. This certification is per country as each country have different allocation for Wireless spectrum.

So yes it is driver "issue", and it was done this way to meet government regulations.

@derosier
Copy link

derosier commented Sep 4, 2019 via email

@borkra
Copy link
Contributor

borkra commented Sep 4, 2019

For 8997 you need to contact your module manufacturer for proper driver and firmware, and EEPROM configuration and AP (Access Point) certification for your country.

And yes it's a custom work that your Wi-Fi module provider together with Marvell can do. And likely be expensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants