]> git.ipfire.org Git - thirdparty/hostap.git/commit
AP: Fix checking if DFS is required
authorMarek Puzyniak <marek.puzyniak@tieto.com>
Wed, 16 Apr 2014 10:22:14 +0000 (12:22 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 17 Apr 2014 14:12:52 +0000 (17:12 +0300)
commit8a0f3bf6135d9e5d5e50de46c4755de0864f6c66
treeb9d51f1da9a966f335b518e4364d533136513401
parentd41cc8ccf67ec14fae779d1a048719726a26aabe
AP: Fix checking if DFS is required

Sometimes function hostapd_is_dfs_required() returns -1 which indicates
that it was not possible to check if DFS was required. This happens for
channels from the 2.4 GHz band where DFS checking should not happen.
This can be fixed by returning DFS-not-required for mode different from
IEEE80211A and when DFS support is not available (ieee80211h not set).

Signed-off-by: Marek Puzyniak <marek.puzyniak@tieto.com>
src/ap/dfs.c