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

luci-mod-network: wireless.js: implement method to set Operating Channel Validation #6957

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

huaracheguarache
Copy link
Contributor

@huaracheguarache huaracheguarache commented Mar 2, 2024

Setting Operating Channel Validation has long been possible in the wireless config file with the ocv parameter, and this pull request implements a method to set it in luci. It is done by adding a drop-down menu below the 802.11w settings in the wireless security tab as seen in the screenshot below:

Screenshot from 2024-03-02 23-02-13

OCV can only be used in conjunction with 802.11w, so I've added a dependency check that makes sure that 802.11w is either set to optional or mandatory. The OCV setting has two enabled values, where one is a workaround mode that allows buggy clients to connect. This setting is only relevant in ap or ap-wds mode, so I've added a validator function that will warn the user if they've selected this option while in sta or sta-wds mode.

I've done some limited testing on my setup with an R7800 running in ap mode with WPA3-SAE+802.11r encryption. It's probably a good idea if more people could take this for a spin to make sure that it works properly. I've also added a commit that updates the associated translation files, as per @dannil's suggestion. I would appreciate any comments about the positioning of the drop-down menu, the text strings I've used etc.

  • This PR is not from my main or master branch 💩, but a separate branch ✅
  • Each commit has a valid ✒️ Signed-off-by: <my@email.address> row (via git commit --signoff)
  • Each commit and PR title has a valid 📝 <package name>: title first line subject for packages
  • Tested on: (ipq806x, 25381-336a531c15, Firefox 123.0) ✅
  • ( Preferred ) Screenshot or mp4 of changes:
  • Description: (describe the changes proposed in this PR)

@dannil
Copy link
Contributor

dannil commented Mar 3, 2024

For full completeness you should run ./build/i18n-sync.sh (or more likely ./build/mkbasepot.sh && ./build/i18n-update.pl since you're changing a component of the base system) so the translation files gets updated with your new strings, see https://github.com/openwrt/luci/wiki/i18n#translation-files.

@huaracheguarache
Copy link
Contributor Author

Ok, now I've included a commit that updates the translation files. Thanks for the tip, @dannil!

@systemcrash
Copy link
Contributor

@huaracheguarache could you rebase your changes please?

Required for luci to check whether installed hostapd or wpa_supplicant is
built with the Operating Channel Validation feature.

Signed-off-by: Michael Yartys <mail@yartys.no>
Make it possible to set Operating Channel Validation through luci.

Signed-off-by: Michael Yartys <mail@yartys.no>
Update translation files after adding option to set Operating Channel
Validation.

Signed-off-by: Michael Yartys <mail@yartys.no>
@huaracheguarache
Copy link
Contributor Author

@systemcrash Ok, done!

@systemcrash systemcrash merged commit f488d28 into openwrt:master Jul 25, 2024
5 checks passed
@huaracheguarache huaracheguarache deleted the luci_ocv branch July 26, 2024 16:02
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

Successfully merging this pull request may close these issues.

3 participants