aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorAhmad Kholaif <akholaif@qca.qualcomm.com>2015-07-23 23:32:58 (GMT)
committerJouni Malinen <j@w1.fi>2015-07-29 16:46:31 (GMT)
commit983422088f0066068fd364013623d1e475031e6b (patch)
tree953ae90d2210ecbf981f283f66d4aad479875ab7 /wpa_supplicant/driver_i.h
parent7c813acf9ca69f3c6d442ce820237249a6216201 (diff)
downloadhostap-983422088f0066068fd364013623d1e475031e6b.zip
hostap-983422088f0066068fd364013623d1e475031e6b.tar.gz
hostap-983422088f0066068fd364013623d1e475031e6b.tar.bz2
nl80211: Add means to query preferred channels
Extend the QCA vendor specific nl80211 interface to query the preferred frequency list from driver and add a new wpa_cli command to query this information. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 6ce4c27..909515b 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -893,6 +893,17 @@ static inline int wpa_drv_setband(struct wpa_supplicant *wpa_s,
return wpa_s->driver->set_band(wpa_s->drv_priv, band);
}
+static inline int wpa_drv_get_pref_freq_list(struct wpa_supplicant *wpa_s,
+ enum wpa_driver_if_type if_type,
+ unsigned int *num,
+ unsigned int *freq_list)
+{
+ if (!wpa_s->driver->get_pref_freq_list)
+ return 0;
+ return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type,
+ num, freq_list);
+}
+
static inline int wpa_drv_set_prob_oper_freq(struct wpa_supplicant *wpa_s,
unsigned int freq)
{