aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-07-18 21:30:24 (GMT)
committerJouni Malinen <j@w1.fi>2010-09-09 14:17:16 (GMT)
commit75bde05d53cb85662b61bacf438e6562613eafca (patch)
tree0c0e2c6406e7708ccc71e0c2bc672069e7d5e8c8 /wpa_supplicant/driver_i.h
parent2ff99b3c387accafa0714e0234c176419b42cd38 (diff)
downloadhostap-75bde05d53cb85662b61bacf438e6562613eafca.zip
hostap-75bde05d53cb85662b61bacf438e6562613eafca.tar.gz
hostap-75bde05d53cb85662b61bacf438e6562613eafca.tar.bz2
P2P: Add driver operations for P2P use
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index a70aa6a..80bff26 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -394,6 +394,14 @@ static inline int wpa_drv_send_action(struct wpa_supplicant *wpa_s,
return -1;
}
+static inline int wpa_drv_set_freq(struct wpa_supplicant *wpa_s,
+ struct hostapd_freq_params *freq)
+{
+ if (wpa_s->driver->set_freq)
+ return wpa_s->driver->set_freq(wpa_s->drv_priv, freq);
+ return -1;
+}
+
static inline int wpa_drv_if_add(struct wpa_supplicant *wpa_s,
enum wpa_driver_if_type type,
const char *ifname, const u8 *addr,
@@ -491,4 +499,27 @@ static inline int wpa_drv_set_ap_wps_ie(struct wpa_supplicant *wpa_s,
proberesp);
}
+static inline int wpa_drv_shared_freq(struct wpa_supplicant *wpa_s)
+{
+ if (!wpa_s->driver->shared_freq)
+ return -1;
+ return wpa_s->driver->shared_freq(wpa_s->drv_priv);
+}
+
+static inline int wpa_drv_get_noa(struct wpa_supplicant *wpa_s,
+ u8 *buf, size_t buf_len)
+{
+ if (!wpa_s->driver->get_noa)
+ return -1;
+ return wpa_s->driver->get_noa(wpa_s->drv_priv, buf, buf_len);
+}
+
+static inline int wpa_drv_set_noa(struct wpa_supplicant *wpa_s, u8 count,
+ int start, int duration)
+{
+ if (!wpa_s->driver->set_noa)
+ return -1;
+ return wpa_s->driver->set_noa(wpa_s->drv_priv, count, start, duration);
+}
+
#endif /* DRIVER_I_H */