aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/driver_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-02-15 13:38:59 (GMT)
committerJouni Malinen <j@w1.fi>2017-02-16 10:08:22 (GMT)
commitc06fca04fd43be1498d36e6eefe6d69a2ca7863f (patch)
treed6cccba227ef9d17fb9e9855410cb8bb5c6fd2a2 /wpa_supplicant/driver_i.h
parentb4d56efb1a237e4ed91de97b1615747082de7fd3 (diff)
downloadhostap-c06fca04fd43be1498d36e6eefe6d69a2ca7863f.zip
hostap-c06fca04fd43be1498d36e6eefe6d69a2ca7863f.tar.gz
hostap-c06fca04fd43be1498d36e6eefe6d69a2ca7863f.tar.bz2
Add wpa_supplicant SET get_pref_freq_list_override
This can be used to override driver get_pref_freq_list() operation for more convenient testing of preferred frequency list functionality. Override string format: <if_type1>:<freq1>,<freq2>,... <if_type2>:... if_type: 0=STATION, 2=AP, 3=P2P_GO, 4=P2P_CLIENT, 8=TDLS, 9=IBSS Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/driver_i.h')
-rw-r--r--wpa_supplicant/driver_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
index 4758c16..0af63c9 100644
--- a/wpa_supplicant/driver_i.h
+++ b/wpa_supplicant/driver_i.h
@@ -902,6 +902,11 @@ static inline int wpa_drv_get_pref_freq_list(struct wpa_supplicant *wpa_s,
unsigned int *num,
unsigned int *freq_list)
{
+#ifdef CONFIG_TESTING_OPTIONS
+ if (wpa_s->get_pref_freq_list_override)
+ return wpas_ctrl_iface_get_pref_freq_list_override(
+ wpa_s, if_type, num, freq_list);
+#endif /* CONFIG_TESTING_OPTIONS */
if (!wpa_s->driver->get_pref_freq_list)
return -1;
return wpa_s->driver->get_pref_freq_list(wpa_s->drv_priv, if_type,