Fix AP build without NEED_AP_MLME
authorJouni Malinen <j@w1.fi>
Sat, 7 Jul 2012 09:34:48 +0000 (12:34 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 7 Jul 2012 09:34:48 +0000 (12:34 +0300)
commitc7803a0294d8a22c2e2d35645a2a57d66bfe0a04
tree290a64dae4f05043c3016bc3efbf6606e2c3f93f
parentdf6901dd1a84a1ab2ce65e1f8419ac4e3fa7da7d
Fix AP build without NEED_AP_MLME

Commit 1b487b8b1e95e1fbd9e00d52d883ba0ac4c2e4bf added CH_SWITCH
event for nl80211, but ended up using hostapd_hw_get_channel()
regardless of build configuration for driver interfaces. This
function is not always available, so make its use conditional
on NEED_AP_MLME.

Signed-hostap: Jouni Malinen <j@w1.fi>
src/ap/drv_callbacks.c