From 071f8ac4dfe2f3f2d1948f09fd3467d16292606b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Tue, 14 Apr 2009 13:12:58 +0300 Subject: [PATCH] nl80211: Fix management frame sending after driver_ops cleanup hostapd ended up with unregistered send_mlme() in commit 9f324b61babe2fb2a80544a8739eee065e73cd7b. Fix this by registering the handler both for wpa_supplicant-AP and hostapd use. [Bug 310] --- src/drivers/driver_nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 07b9396a6..f8d5ed055 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -4541,9 +4541,9 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = { .set_country = wpa_driver_nl80211_set_country, #ifdef CONFIG_AP .set_beacon = wpa_driver_nl80211_set_beacon, - .send_mlme = wpa_driver_nl80211_send_mlme, #endif /* CONFIG_AP */ #if defined(CONFIG_AP) || defined(HOSTAPD) + .send_mlme = wpa_driver_nl80211_send_mlme, .set_beacon_int = wpa_driver_nl80211_set_beacon_int, .get_hw_feature_data = wpa_driver_nl80211_get_hw_feature_data, #endif /* CONFIG_AP || HOSTAPD */