]> git.ipfire.org Git - thirdparty/hostap.git/commit
Add functions to convert channel bandwidth to an integer
authorMathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
Mon, 6 Aug 2018 19:46:23 +0000 (15:46 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 16 Dec 2018 16:35:30 +0000 (18:35 +0200)
commitd706e0d7a335edbdf9a8d7012318f27d24a9b971
treef400cec3fbf8b58e6c1c94a4d4e706ac06a8a9b7
parentdbe473fd22777ec349b28d16ef5d8b9a48176a2a
Add functions to convert channel bandwidth to an integer

This adds two utility functions to convert both operating classes and
and the chan_width enum to an integer representing the channel
bandwidth. This can then be used to compare bandwidth parameters in an
uniform manner.

Signed-off-by: Mathy Vanhoef <Mathy.Vanhoef@cs.kuleuven.be>
src/common/ieee802_11_common.c
src/common/ieee802_11_common.h
src/drivers/driver.h
src/drivers/driver_common.c