ubus: fix channel for active probing
authorDavid Bauer <mail@david-bauer.net>
Mon, 18 Oct 2021 11:25:52 +0000 (13:25 +0200)
committerDavid Bauer <mail@david-bauer.net>
Fri, 29 Oct 2021 17:28:14 +0000 (19:28 +0200)
commitae32cb9632e6712b487b035770e12245e5b0bf8d
tree9a32a96e41a9876bebace4e21adff0705c4bd1ae
parent8dc07533a80903d5ae714e4aab0b0554f828df13
ubus: fix channel for active probing

The IEEE802.11-2016 specification says:

[...] a Channel Number field value of 255 indicates a request
to make iterative measurements for all supported channels in the
current operating class listed in the latest AP Channel Report
received from the serving AP.

The problem with this is, no AP Channel report is sent to the STA with
the measurement request.

To scan the whole Operating class, a channel number of 0 is desired:

[...] Channel Number field value of 0 indicates a request to make
iterative measurements for all supported channels in the operating
class [...]

Signed-off-by: David Bauer <mail@david-bauer.net>
ubus.c