diff options
author | Victor Goldenshtein <victorg@ti.com> | 2011-11-21 17:02:52 +0200 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-09-13 14:53:28 +0300 |
commit | 7b65de18e8276ed3b5d2cbb64dc06c347f3b0e78 (patch) | |
tree | 7f5bc133d990acb5e39e64f0894ee66cff5b8c58 /src/drivers/driver.h | |
parent | 7973c9ed86ff9694d4cb4fa81eeb5b6bf7267e64 (diff) | |
download | external_wpa_supplicant_8_ti-7b65de18e8276ed3b5d2cbb64dc06c347f3b0e78.zip external_wpa_supplicant_8_ti-7b65de18e8276ed3b5d2cbb64dc06c347f3b0e78.tar.gz external_wpa_supplicant_8_ti-7b65de18e8276ed3b5d2cbb64dc06c347f3b0e78.tar.bz2 |
hostapd: implement channel switch request drv ops (INTERNAL)
New hostapd_channel_switch – to handle channel switch request.
Signed-hostap: Victor Goldenshtein <victorg@ti.com>
Diffstat (limited to 'src/drivers/driver.h')
-rw-r--r-- | src/drivers/driver.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 7afbda1..b25b4b9 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -898,6 +898,16 @@ struct hostapd_freq_params { * enabled, secondary channel above primary */ }; +struct hostapd_channel_switch { + int freq; + int tx_block; /* immediately block the tx on the + * operational channel + * (prior channel switch) */ + int post_switch_block_tx; /* block tx on the target ch (after + * channel switch) */ + int ch_switch_count; +}; + enum wpa_driver_if_type { /** * WPA_IF_STATION - Station mode interface @@ -2587,6 +2597,15 @@ struct wpa_driver_ops { * Returns: 0 on success, -1 on failure */ int (*driver_cmd)(void *priv, char *cmd, char *buf, size_t buf_len); + + /** + * hapd_channel_switch - Perform an AP channel switch + * @priv: Private driver interface data + * @params: Channels switch parameters + * Returns: 0 on success, -1 on failure + */ + int (*hapd_channel_switch)(void *priv, + struct hostapd_channel_switch *params); }; |