hostapd: Get channel number from frequency based on other modes as well

When getting the channel number from a frequency, all supported modes
should be checked rather than just the current mode. This is needed when
hostapd switches to a channel in different band.

Change-Id: If16e4cc6adb1ec951d8a033b924ba968b364e6ff
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 5b9f46df0e19111a64c6036df59076f879777988
Git-repo: git://w1.fi/srv/git/hostap.git
CRs-fixed: 2013544
1 file changed