I am working with a Morse Micro dev board (model: [your board], firmware: [from dmesg or morse_cli -v]). When running morse_cli -i wlan1 country_code, it returns “Country code is not set.” All attempts to set a channel with allowed parameters (channel 44/36, 1 MHz BW, index) fail with error -32755 (“Invalid combination of parameters”).
The morse_cli utility does not provide a program_country_code command or any means to set the regulatory domain.
Could you please provide instructions, tooling, or firmware update steps to set the country code/OTP for my board? This seems to be preventing any S1G channel configuration and HaLow operation.
You should use wpa_supplicant_s1g and hostapd_s1g to bring up stations or APs. If you want to set a non-default country, do so via passing the country modparam. You do NOT need to access/think about the OTP bits, which are for locking a module to a particular country so it can’t be changed. Is there some documentation that suggested this? (if so, we should get it changed)
If you try using hostapd_s1g/wpa_supplicant_s1g, and it still doesn’t work, let me know exactly what commands you’re running and their output, as well as what actual board/module you’re using and what country you’re trying to set.
You should not need to use morse_cli at all (and indeed it wouldn’t help). However, when you did you morse_cli to set the channel, I suspect you provided the wrong parameters, so if you do want us to debug that please show the exact command you ran.
It looks like channel isn’t a supported parameter for morse_cli.
Is there a different tool or method I should use to set the channel on wlan1 for the HaLow interface?
As the error indicates, channel is not a valid parameter for the set command.
If you do want to set the channel via morse_cli - which isn’t generally something you would do unless using monitor mode, as wpa_supplicant_s1g and hostapd_s1g can manage the channel selection, an example command is morse_cli -i wlan1 channel -c 924000 -o 8 -p 2 -n 3. Have a look at morse_cli -i wlan1 channel --help to view the documentation for that particularl command.
There are many ways to manage a wireless interface, and in our Linux based evaluation kits (which run OpenWrt), we use UCI to set both the country and the channel. There are only a very small number of commands which differ from the documentation in the OpenWrt documentation, though admittedly these aren’t clearly documented.
They’re not documented clearly because we’ve provided a WebUI for making these easier for the vast majority of users. You can find the documentation for Web UI configuration here: https://www.morsemicro.com/resources/user_guides/MM6108_MM8108-Eval-Kit-User-Guide-2.9.pdf
Can you please let us know which evaluation kit you are using, and the version?