]> git.ipfire.org Git - thirdparty/hostap.git/commit
DFS: Fix hostapd operation without hw_mode driver data
authorJouni Malinen <j@w1.fi>
Sun, 16 Nov 2014 23:14:35 +0000 (01:14 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 16 Nov 2014 23:14:35 +0000 (01:14 +0200)
commitafbe57d981042f5abcd7c21016c6979016bbc81f
treeed993b14947126bdcb63114200a717f2768a8d02
parente9b783d58c23a7bb50b2f25bce7157f1f3b5d58b
DFS: Fix hostapd operation without hw_mode driver data

If DFS implementation was built in, some configurations with drivers
that do not provide mode information could end up dereferencing a NULL
pointer. Fix this by skipping DFS operations in such cases since not
having information about modes and channels means that hostapd could not
perform DFS anyway (i.e., either this is not a wireless driver or the
driver takes care of DFS internally).

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/dfs.c