Applying a custom driver regulatory from FMAC.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
YoTa_1693656
Level 6
Level 6
Distributor - Marubun (Japan)
250 replies posted 250 sign-ins 100 replies posted

Hello Cypress IOT team.

[Info]

- FMAC: 2020-01-15

https://community.cypress.com/docs/DOC-19000

- wpa_supplicant: version 2.9

[Background]

THE current FMAC driver does not call "wiphy_apply_custom_regulatory" when cfg80211 up. The "wiphy_apply_custom_regulatory" means applying a custom driver regulatory to the kernel.

Because of it, regulatory info does not match between chip side① and kernel side② like below.

====

wl channels

1 2 3 4 5 6 7 8 9 10 11 ... ①

./wpa_cli

> get_capability channels

Mode Channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...②

====

To call "wiphy_apply_custom_regulatory" when cfg80211 up, I modified FMAC source code "cfg80211.c". The patch is attached.

Then I can see an expected behavior.

[Need Help]

Please review the attached patch.

Thanks,

Yoshinori

0 Likes
1 Solution
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

Hi,

Thank you for the patch. It work with the current setup. The regulatory info is taken from the clm_blob that goes with the firmware. We currently dont use the information from the kernel regulatory information

Regards

View solution in original post

0 Likes
1 Reply
VinayakS_26
Moderator
Moderator
Moderator
100 replies posted 50 replies posted 25 replies posted

Hi,

Thank you for the patch. It work with the current setup. The regulatory info is taken from the clm_blob that goes with the firmware. We currently dont use the information from the kernel regulatory information

Regards

0 Likes