aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorVictor Goldenshtein <victorg@ti.com>2011-11-21 15:19:52 +0200
committerArik Nemtsov <arik@wizery.com>2012-09-13 14:53:28 +0300
commitff0a677405533513777ed413abff97483f5fda6d (patch)
tree345897e5425f8e1aa37f39ce603163a3deec7998 /src/drivers
parent7b65de18e8276ed3b5d2cbb64dc06c347f3b0e78 (diff)
downloadexternal_wpa_supplicant_8_ti-ff0a677405533513777ed413abff97483f5fda6d.zip
external_wpa_supplicant_8_ti-ff0a677405533513777ed413abff97483f5fda6d.tar.gz
external_wpa_supplicant_8_ti-ff0a677405533513777ed413abff97483f5fda6d.tar.bz2
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 <victorg@ti.com>
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/driver.h9
-rw-r--r--src/drivers/driver_common.c1
2 files changed, 9 insertions, 1 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index b25b4b9..6446593 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -3060,7 +3060,12 @@ enum wpa_event_type {
*
* Described in wpa_event_data.ch_switch
* */
- EVENT_CH_SWITCH
+ EVENT_CH_SWITCH,
+
+ /**
+ * EVENT_REQ_CH_SW - a request to perform a channel switch for GO/AP
+ */
+ EVENT_REQ_CH_SW
};
@@ -3723,6 +3728,8 @@ static inline void drv_event_eapol_rx(void *ctx, const u8 *src, const u8 *data,
/* driver_common.c */
void wpa_scan_results_free(struct wpa_scan_results *res);
+int ieee802_11_start_channel_switch(struct hostapd_data *hapd,
+ int freq, u8 radar_detected);
/* Convert wpa_event_type to a string for logging */
const char * event_to_string(enum wpa_event_type event);
diff --git a/src/drivers/driver_common.c b/src/drivers/driver_common.c
index 5e4dc89..a0ada97 100644
--- a/src/drivers/driver_common.c
+++ b/src/drivers/driver_common.c
@@ -82,6 +82,7 @@ const char * event_to_string(enum wpa_event_type event)
E2S(ROAMING_ENABLED);
E2S(ROAMING_DISABLED);
E2S(START_ROAMING);
+ E2S(REQ_CH_SW);
}
return "UNKNOWN";