aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJithu Jance <jithu@broadcom.com>2012-06-10 17:54:31 (GMT)
committerJouni Malinen <j@w1.fi>2012-06-10 17:54:31 (GMT)
commitef35f5a0fd2c41f92a3ecc29995c5de1f407d2af (patch)
tree282383b0f3a08367c8526739860a85ace0c61676 /wpa_supplicant/driver_i.h
parentb9cfc09a81b1f6449bbd0754a2bdc4d790766662 (diff)
downloadhostap-ef35f5a0fd2c41f92a3ecc29995c5de1f407d2af.zip
hostap-ef35f5a0fd2c41f92a3ecc29995c5de1f407d2af.tar.gz
hostap-ef35f5a0fd2c41f92a3ecc29995c5de1f407d2af.tar.bz2
P2P: Add driver op for requesting GO/AP channel switch
Signed-hostap: Jithu Jance <jithu@broadcom.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index e1e921d..2ab455b 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -672,4 +672,12 @@ static inline int wpa_drv_radio_disable(struct wpa_supplicant *wpa_s,
return wpa_s->driver->radio_disable(wpa_s->drv_priv, disabled);
}
+static inline int wpa_drv_switch_channel(struct wpa_supplicant *wpa_s,
+ unsigned int freq)
+{
+ if (!wpa_s->driver->switch_channel)
+ return -1;
+ return wpa_s->driver->switch_channel(wpa_s->drv_priv, freq);
+}
+
#endif /* DRIVER_I_H */