]> git.ipfire.org Git - thirdparty/hostap.git/commit
ACS: Extract bw40/80/160 freqs out of acs_usable_bwXXX_chan()
authorNicolas Escande <nico.escande@gmail.com>
Wed, 27 Apr 2022 13:36:59 +0000 (15:36 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 28 Nov 2022 21:22:30 +0000 (23:22 +0200)
commited8e13decc716eb8c5e1543d48300dd4bb1962c7
treebd016dbe2973899d87678137b8d2e54f1fa06662
parentcd4be06c2b4763b0716f26128f54018f5569e4b5
ACS: Extract bw40/80/160 freqs out of acs_usable_bwXXX_chan()

This extracts the 3 lists of allowed channels for 40/80/160 MHz
bandwidth out of their respective functions. It also adds for each
segment the frequency of the segment's last channel and the index of the
segment's "center" channel.

This is preparative work to allow selecting a channel which is not the
first of its segment for 40/80/160 MHz. In addition, this adds the 5 GHz
160 MHz channel defined for 5735-5895 MHz (channels 149-177).

Signed-off-by: Nicolas Escande <nico.escande@gmail.com>
src/ap/acs.c