aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-12-29 11:59:17 (GMT)
committerJouni Malinen <j@w1.fi>2010-12-29 11:59:17 (GMT)
commit190b9062b2d5f0bb2afa08acdc82f11d69d98643 (patch)
tree7502a5a34a0eba869fbc54394e1230390f25bfaf /wpa_supplicant/driver_i.h
parent0d7e5a3a29efd4bc138e74b19657e750d22c2887 (diff)
downloadhostap-190b9062b2d5f0bb2afa08acdc82f11d69d98643.zip
hostap-190b9062b2d5f0bb2afa08acdc82f11d69d98643.tar.gz
hostap-190b9062b2d5f0bb2afa08acdc82f11d69d98643.tar.bz2
P2P: Add option for offloading off-channel TX to the driver
With the new kernel functionality coming to Linux to allow off-channel TX, we can take advantage of that in the P2P code that currently uses remain-on-channel. If a driver advertises support for it, it will be asked to handle off-channel TX by itself. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index af8232a..3436481 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -383,17 +383,24 @@ static inline int wpa_drv_set_supp_port(struct wpa_supplicant *wpa_s,
static inline int wpa_drv_send_action(struct wpa_supplicant *wpa_s,
unsigned int freq,
+ unsigned int wait,
const u8 *dst, const u8 *src,
const u8 *bssid,
const u8 *data, size_t data_len)
{
if (wpa_s->driver->send_action)
return wpa_s->driver->send_action(wpa_s->drv_priv, freq,
- dst, src, bssid, data,
- data_len);
+ wait, dst, src, bssid,
+ data, data_len);
return -1;
}
+static inline void wpa_drv_send_action_cancel_wait(struct wpa_supplicant *wpa_s)
+{
+ if (wpa_s->driver->send_action_cancel_wait)
+ wpa_s->driver->send_action_cancel_wait(wpa_s->drv_priv);
+}
+
static inline int wpa_drv_set_freq(struct wpa_supplicant *wpa_s,
struct hostapd_freq_params *freq)
{