[LEDE-DEV] [PATCH rpcd] iwinfo: add info about frequency restrictions
Jonas Gorski
jonas.gorski at gmail.com
Tue Dec 12 14:11:11 PST 2017
Hi,
On 12 December 2017 at 23:05, Jo-Philipp Wich <jo at mein.io> wrote:
> Hi Rafał,
>
> in principle fine with me - but I guess all restrictions will be in the
> form { <restriction>: true } so I'd rather make it an array.
>
> Also since a restriction implies something not possible, I'd drop the
> "no_" prefix too. So in the end it would look like:
>
> {
> "channel": 1,
> "mhz": 2412,
> "restricted": false,
> "active": false,
> "restrictions": [
> "ht40minus",
> "80mhz"
> }
Do these value say what the device is restricted from, or restricted to?
I'd argue the no_ prefix makes it more clear that these restrictions
say what is prohibited, not what is allowed.
Regards
Jonas
More information about the Lede-dev
mailing list