get supported-bands not working in 6.33

I recently upgraded from 6.18 to 6.33 and have found that the command “:put [get wlan1 supported-bands]” from the “interface wireless info” menu no longer works! I get an error message “bad command name get …”. That command in 6.18 and lower used to show results like “2ghz-b;2ghz-g;2ghz-10mhz;2ghz-5mhz;2ghz-n;2ghz-n-10mhz;2ghz-n-5mhz”. How do I get this information now in 6.33?

You can use “hw-info” to see all possible bands, channel widths, and frequency ranges of device:

:put [interface wireless info hw-info wlan1]

Ok! Thank you! When I issue that command, I get back “2200-2700/0.5/b,g,gn20,gn40”. Can you tell me what the 0.5 represents shown between the frequency range and 802.11 mode list?

We’ve just upgraded from 6.11 to 6.3x.x and this change is bad.

Listing “allowed channels” doesn’t list all the possible channels. It lists what the allowed channels are for the current configuration.

ex - If you are using (what used to be called) 20/40Mhz-ht-above, the list does not include 5825 mhz, as that’s the extension channel for ht-above.

The list is like: …5805/20/a,5810/20/a,5815/20/a,5820/20/a,5825/20/a …which only pertains to the current configuration.

/interface wireless info allowed-channels

Will show you all available settings depending on your current configuration, but
/interface wireless info hw-info

Will show all possible settings allowed by hardware, the output will be:

ranges: 2312-2732/5/b,g,gn20,gn40

Where “2312-2732” is available frequency range.
5 = step between frequencies.
b,g,gn20 = wireless standard and channel-width.

The problem is that the output from this command can’t be captured by a script. We used to be able to to this:

	:local foo [/interface wireless info get wlan1 supported-bands];
	:local fooArray [:toarray $foo];
	:local supportedband [:pick $fooArray 0 1];
		or
	:foreach b in=$fooArray do={ . . .

But I find that in 6.34.6, the following:

	:local foo [/interface wireless info hw-info wlan1];
	:local fooArray [:toarray $foo];

leaves fooArray empty! How can we capture output from hw-info for use in scripts?