aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorSrinivas Dasari <dasaris@qti.qualcomm.com>2015-07-27 10:14:22 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-28 18:00:18 (GMT)
commit844dfeb804af7e6934b5d8e5ffbe2e813dabff54 (patch)
treeb470ce2868e56791a7d8d5aee99f2f5f16062a51 /wpa_supplicant/driver_i.h
parent06836013d33b63c2aaa9bcde391e79a4113f101d (diff)
downloadhostap-844dfeb804af7e6934b5d8e5ffbe2e813dabff54.zip
hostap-844dfeb804af7e6934b5d8e5ffbe2e813dabff54.tar.gz
hostap-844dfeb804af7e6934b5d8e5ffbe2e813dabff54.tar.bz2
QCA vendor command support to set band to driver
Add vendor command to pass SET setband command to the driver and read the updated channel list from driver when this notification succeeds. This allows the driver to update its internal channel lists based on setband configuration. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.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 1fcb180..d1f9f8b 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -885,4 +885,12 @@ static inline int wpa_drv_disable_transmit_sa(struct wpa_supplicant *wpa_s,
}
#endif /* CONFIG_MACSEC */
+static inline int wpa_drv_setband(struct wpa_supplicant *wpa_s,
+ enum set_band band)
+{
+ if (!wpa_s->driver->set_band)
+ return -1;
+ return wpa_s->driver->set_band(wpa_s->drv_priv, band);
+}
+
#endif /* DRIVER_I_H */