From ff0a677405533513777ed413abff97483f5fda6d Mon Sep 17 00:00:00 2001 From: Victor Goldenshtein Date: Mon, 21 Nov 2011 15:19:52 +0200 Subject: hostap: add channel switch ability to AP & GO (INTERNAL) Add channel switch command and handle channel switch request/complete events. New hostapd_eid_csa() which builds the channel switch announcement IE. Add this CSA to the beacon frame prior performing a channel switch and remove it once it's completed. New EVENT_REQ_CH_SW which indicates that the driver has requested to perform a channel switch. Signed-hostap: Victor Goldenshtein --- wpa_supplicant/events.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wpa_supplicant') diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 56ae94c..c3e9ed6 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2556,6 +2556,12 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, data->ch_switch.ch_offset); #endif /* CONFIG_AP */ break; + case EVENT_REQ_CH_SW: + if (!data) + break; + ieee802_11_start_channel_switch(wpa_s->ap_iface->bss[0], + data->ch_switch.freq, FALSE); + break; case EVENT_RX_MGMT: { u16 fc, stype; const struct ieee80211_mgmt *mgmt; -- cgit v1.1